0s autopkgtest [15:50:24]: starting date and time: 2025-05-02 15:50:24+0000 0s autopkgtest [15:50:24]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [15:50:24]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.aidc8yv9/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:tzdata --apt-upgrade glib2.0 --timeout-short=1200 --timeout-copy=80000 --timeout-build=80000 --env=ADT_TEST_TRIGGERS=tzdata/2025b-3ubuntu1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor builder-cpu2-ram4-disk20 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-riscv64-5.secgroup --name adt-questing-riscv64-glib2.0-20250502-155024-juju-7f2275-prod-proposed-migration-environment-15-852cb378-98ec-4252-99ce-c12ef883d384 --image adt/ubuntu-questing-riscv64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-riscv64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 330s autopkgtest [15:55:54]: testbed dpkg architecture: riscv64 332s autopkgtest [15:55:56]: testbed apt version: 3.0.0 335s autopkgtest [15:55:59]: @@@@@@@@@@@@@@@@@@@@ test bed setup 337s autopkgtest [15:56:01]: testbed release detected to be: None 344s autopkgtest [15:56:08]: updating testbed package index (apt update) 348s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 349s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 349s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 349s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 350s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [164 kB] 351s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.2 kB] 351s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2024 kB] 352s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [181 kB] 352s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [799 kB] 353s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8048 B] 359s Fetched 3331 kB in 9s (367 kB/s) 386s Reading package lists... 394s autopkgtest [15:56:58]: upgrading testbed (apt dist-upgrade and autopurge) 396s Reading package lists... 399s Building dependency tree... 399s Reading state information... 403s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 404s Starting 2 pkgProblemResolver with broken count: 0 404s Done 409s Entering ResolveByKeep 411s 412s Calculating upgrade... 415s The following packages will be upgraded: 415s fwupd htop libftdi1-2 libfwupd3 libnpth0t64 libperl5.40 libsensors-config 415s libsensors5 liburcu8t64 nano perl perl-base perl-modules-5.40 tzdata usb.ids 416s 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 416s Need to get 16.4 MB of archives. 416s After this operation, 48.1 kB of additional disk space will be used. 416s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libperl5.40 riscv64 5.40.1-3 [4483 kB] 417s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl riscv64 5.40.1-3 [262 kB] 417s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-base riscv64 5.40.1-3 [1845 kB] 418s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-modules-5.40 all 5.40.1-3 [3217 kB] 419s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 419s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 tzdata all 2025b-3ubuntu1 [198 kB] 419s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors-config all 1:3.6.2-2 [6756 B] 419s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors5 riscv64 1:3.6.2-2 [30.4 kB] 419s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 liburcu8t64 riscv64 0.15.2-2 [67.0 kB] 419s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 419s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 419s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 fwupd riscv64 2.0.8-3 [5406 kB] 420s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libfwupd3 riscv64 2.0.8-3 [140 kB] 420s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 420s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libftdi1-2 riscv64 1.5-10 [31.3 kB] 429s Preconfiguring packages ... 431s Fetched 16.4 MB in 5s (3371 kB/s) 434s (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 ... 114049 files and directories currently installed.) 434s Preparing to unpack .../libperl5.40_5.40.1-3_riscv64.deb ... 434s Unpacking libperl5.40:riscv64 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 442s Preparing to unpack .../perl_5.40.1-3_riscv64.deb ... 442s Unpacking perl (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 443s Preparing to unpack .../perl-base_5.40.1-3_riscv64.deb ... 443s Unpacking perl-base (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 448s Setting up perl-base (5.40.1-3) ... 451s (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 ... 114049 files and directories currently installed.) 451s Preparing to unpack .../perl-modules-5.40_5.40.1-3_all.deb ... 452s Unpacking perl-modules-5.40 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 462s Preparing to unpack .../libnpth0t64_1.8-3_riscv64.deb ... 462s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 463s Setting up libnpth0t64:riscv64 (1.8-3) ... 466s (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 ... 114049 files and directories currently installed.) 466s Preparing to unpack .../0-tzdata_2025b-3ubuntu1_all.deb ... 466s Unpacking tzdata (2025b-3ubuntu1) over (2025b-1ubuntu1) ... 468s Preparing to unpack .../1-libsensors-config_1%3a3.6.2-2_all.deb ... 468s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 469s Preparing to unpack .../2-libsensors5_1%3a3.6.2-2_riscv64.deb ... 469s Unpacking libsensors5:riscv64 (1:3.6.2-2) over (1:3.6.0-10) ... 470s Preparing to unpack .../3-liburcu8t64_0.15.2-2_riscv64.deb ... 470s Unpacking liburcu8t64:riscv64 (0.15.2-2) over (0.15.1-1) ... 471s Preparing to unpack .../4-nano_8.4-1_riscv64.deb ... 471s Unpacking nano (8.4-1) over (8.3-1) ... 473s Preparing to unpack .../5-usb.ids_2025.04.01-1_all.deb ... 473s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 474s Preparing to unpack .../6-fwupd_2.0.8-3_riscv64.deb ... 485s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 495s Preparing to unpack .../7-libfwupd3_2.0.8-3_riscv64.deb ... 495s Unpacking libfwupd3:riscv64 (2.0.8-3) over (2.0.7-1) ... 496s Preparing to unpack .../8-htop_3.4.1-4_riscv64.deb ... 496s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 497s Preparing to unpack .../9-libftdi1-2_1.5-10_riscv64.deb ... 497s Unpacking libftdi1-2:riscv64 (1.5-10) over (1.5-8build1) ... 499s Setting up liburcu8t64:riscv64 (0.15.2-2) ... 499s Setting up htop (3.4.1-4) ... 499s Setting up libsensors-config (1:3.6.2-2) ... 499s Installing new version of config file /etc/sensors3.conf ... 499s Setting up libfwupd3:riscv64 (2.0.8-3) ... 499s Setting up tzdata (2025b-3ubuntu1) ... 504s 504s Current default time zone: 'Etc/UTC' 504s Local time is now: Fri May 2 15:58:48 UTC 2025. 504s Universal Time is now: Fri May 2 15:58:48 UTC 2025. 504s Run 'dpkg-reconfigure tzdata' if you wish to change it. 504s 504s Setting up libftdi1-2:riscv64 (1.5-10) ... 504s Setting up usb.ids (2025.04.01-1) ... 504s Setting up libsensors5:riscv64 (1:3.6.2-2) ... 504s Setting up nano (8.4-1) ... 504s Installing new version of config file /etc/nanorc ... 505s Setting up perl-modules-5.40 (5.40.1-3) ... 505s Setting up fwupd (2.0.8-3) ... 529s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 530s fwupd.service is a disabled or a static unit not running, not starting it. 532s Setting up libperl5.40:riscv64 (5.40.1-3) ... 532s Setting up perl (5.40.1-3) ... 533s Processing triggers for install-info (7.1.1-1) ... 537s Processing triggers for libc-bin (2.41-6ubuntu1) ... 538s Processing triggers for man-db (2.13.0-1) ... 546s Processing triggers for dbus (1.16.2-2ubuntu1) ... 558s Reading package lists... 562s Building dependency tree... 562s Reading state information... 565s Starting pkgProblemResolver with broken count: 0 566s Starting 2 pkgProblemResolver with broken count: 0 566s Done 569s Solving dependencies... 571s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 574s autopkgtest [15:59:58]: rebooting testbed after setup commands that affected boot 611s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 644s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 677s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 710s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 743s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 776s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 800s autopkgtest [16:03:44]: testbed running kernel: Linux 6.14.0-13-generic #13.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 6 05:26:54 UTC 2025 821s autopkgtest [16:04:05]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 963s Get:1 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (dsc) [4812 B] 963s Get:2 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [661 kB] 963s Get:3 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [5615 kB] 963s Get:4 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (diff) [136 kB] 967s gpgv: Signature made Fri Apr 4 19:02:25 2025 UTC 967s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 967s gpgv: Can't check signature: No public key 967s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.84.1-1.dsc: no acceptable signature found 984s autopkgtest [16:06:48]: testing package glib2.0 version 2.84.1-1 991s autopkgtest [16:06:55]: build not needed 1010s autopkgtest [16:07:14]: test build: preparing testbed 1016s Reading package lists... 1020s Building dependency tree... 1020s Reading state information... 1022s Starting pkgProblemResolver with broken count: 0 1022s Starting 2 pkgProblemResolver with broken count: 0 1022s Done 1028s The following NEW packages will be installed: 1028s build-essential cpp cpp-14 cpp-14-riscv64-linux-gnu cpp-riscv64-linux-gnu 1028s g++ g++-14 g++-14-riscv64-linux-gnu g++-riscv64-linux-gnu gcc gcc-14 1028s gcc-14-riscv64-linux-gnu gcc-riscv64-linux-gnu libasan8 libblkid-dev 1028s libcc1-0 libffi-dev libgcc-14-dev libgio-2.0-dev libgomp1 libisl23 libitm1 1028s liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 1028s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 1028s libsysprof-capture-4-dev libtsan2 libubsan1 pkgconf pkgconf-bin uuid-dev 1028s zlib1g-dev 1029s 0 upgraded, 40 newly installed, 0 to remove and 0 not upgraded. 1029s Need to get 95.7 MB of archives. 1029s After this operation, 457 MB of additional disk space will be used. 1029s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 libisl23 riscv64 0.27-1 [722 kB] 1029s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 libmpc3 riscv64 1.3.1-1build2 [61.5 kB] 1030s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [15.2 MB] 1033s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14 riscv64 14.2.0-19ubuntu2 [1028 B] 1033s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [5554 B] 1033s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp riscv64 4:14.2.0-1ubuntu1 [22.4 kB] 1033s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libcc1-0 riscv64 15-20250404-0ubuntu1 [46.1 kB] 1033s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libgomp1 riscv64 15-20250404-0ubuntu1 [149 kB] 1033s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 libitm1 riscv64 15-20250404-0ubuntu1 [29.7 kB] 1033s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 libasan8 riscv64 15-20250404-0ubuntu1 [3300 kB] 1034s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 liblsan0 riscv64 15-20250404-0ubuntu1 [1470 kB] 1034s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 libtsan2 riscv64 15-20250404-0ubuntu1 [2983 kB] 1035s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libubsan1 riscv64 15-20250404-0ubuntu1 [1310 kB] 1035s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 libgcc-14-dev riscv64 14.2.0-19ubuntu2 [5994 kB] 1036s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [29.9 MB] 1042s Get:16 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14 riscv64 14.2.0-19ubuntu2 [529 kB] 1042s Get:17 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [1198 B] 1042s Get:18 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc riscv64 4:14.2.0-1ubuntu1 [4998 B] 1042s Get:19 http://ftpmaster.internal/ubuntu questing/main riscv64 libstdc++-14-dev riscv64 14.2.0-19ubuntu2 [6141 kB] 1043s Get:20 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [16.8 MB] 1048s Get:21 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14 riscv64 14.2.0-19ubuntu2 [23.0 kB] 1048s Get:22 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [960 B] 1048s Get:23 http://ftpmaster.internal/ubuntu questing/main riscv64 g++ riscv64 4:14.2.0-1ubuntu1 [1080 B] 1048s Get:24 http://ftpmaster.internal/ubuntu questing/main riscv64 build-essential riscv64 12.12ubuntu1 [5090 B] 1048s Get:25 http://ftpmaster.internal/ubuntu questing/main riscv64 libffi-dev riscv64 3.4.7-1 [88.8 kB] 1048s Get:26 http://ftpmaster.internal/ubuntu questing/main riscv64 uuid-dev riscv64 2.40.2-14ubuntu1 [73.6 kB] 1048s Get:27 http://ftpmaster.internal/ubuntu questing/main riscv64 libblkid-dev riscv64 2.40.2-14ubuntu1 [586 kB] 1048s Get:28 http://ftpmaster.internal/ubuntu questing/main riscv64 libsepol-dev riscv64 3.7-1 [1216 kB] 1048s Get:29 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-16-0 riscv64 10.45-1 [246 kB] 1048s Get:30 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-32-0 riscv64 10.45-1 [232 kB] 1048s Get:31 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-posix3 riscv64 10.45-1 [6820 B] 1048s Get:32 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-dev riscv64 10.45-1 [2204 kB] 1049s Get:33 http://ftpmaster.internal/ubuntu questing/main riscv64 libselinux1-dev riscv64 3.7-3ubuntu3 [321 kB] 1049s Get:34 http://ftpmaster.internal/ubuntu questing/main riscv64 libmount-dev riscv64 2.40.2-14ubuntu1 [34.6 kB] 1049s Get:35 http://ftpmaster.internal/ubuntu questing/main riscv64 libsysprof-capture-4-dev riscv64 48.0-2 [132 kB] 1049s Get:36 http://ftpmaster.internal/ubuntu questing/main riscv64 libpkgconf3 riscv64 1.8.1-4 [31.6 kB] 1049s Get:37 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf-bin riscv64 1.8.1-4 [21.8 kB] 1049s Get:38 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf riscv64 1.8.1-4 [16.7 kB] 1049s Get:39 http://ftpmaster.internal/ubuntu questing/main riscv64 zlib1g-dev riscv64 1:1.3.dfsg+really1.3.1-1ubuntu1 [968 kB] 1049s Get:40 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev riscv64 2.84.1-1 [4889 kB] 1062s Fetched 95.7 MB in 22s (4291 kB/s) 1063s Selecting previously unselected package libisl23:riscv64. 1065s (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 ... 114049 files and directories currently installed.) 1065s Preparing to unpack .../00-libisl23_0.27-1_riscv64.deb ... 1065s Unpacking libisl23:riscv64 (0.27-1) ... 1066s Selecting previously unselected package libmpc3:riscv64. 1066s Preparing to unpack .../01-libmpc3_1.3.1-1build2_riscv64.deb ... 1066s Unpacking libmpc3:riscv64 (1.3.1-1build2) ... 1067s Selecting previously unselected package cpp-14-riscv64-linux-gnu. 1067s Preparing to unpack .../02-cpp-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 1067s Unpacking cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 1081s Selecting previously unselected package cpp-14. 1081s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_riscv64.deb ... 1081s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 1082s Selecting previously unselected package cpp-riscv64-linux-gnu. 1082s Preparing to unpack .../04-cpp-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 1082s Unpacking cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 1083s Selecting previously unselected package cpp. 1083s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_riscv64.deb ... 1083s Unpacking cpp (4:14.2.0-1ubuntu1) ... 1084s Selecting previously unselected package libcc1-0:riscv64. 1084s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_riscv64.deb ... 1084s Unpacking libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 1085s Selecting previously unselected package libgomp1:riscv64. 1085s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_riscv64.deb ... 1085s Unpacking libgomp1:riscv64 (15-20250404-0ubuntu1) ... 1086s Selecting previously unselected package libitm1:riscv64. 1086s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_riscv64.deb ... 1086s Unpacking libitm1:riscv64 (15-20250404-0ubuntu1) ... 1087s Selecting previously unselected package libasan8:riscv64. 1087s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_riscv64.deb ... 1087s Unpacking libasan8:riscv64 (15-20250404-0ubuntu1) ... 1091s Selecting previously unselected package liblsan0:riscv64. 1091s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_riscv64.deb ... 1092s Unpacking liblsan0:riscv64 (15-20250404-0ubuntu1) ... 1093s Selecting previously unselected package libtsan2:riscv64. 1094s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_riscv64.deb ... 1094s Unpacking libtsan2:riscv64 (15-20250404-0ubuntu1) ... 1097s Selecting previously unselected package libubsan1:riscv64. 1097s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_riscv64.deb ... 1097s Unpacking libubsan1:riscv64 (15-20250404-0ubuntu1) ... 1099s Selecting previously unselected package libgcc-14-dev:riscv64. 1099s Preparing to unpack .../13-libgcc-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 1099s Unpacking libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 1111s Selecting previously unselected package gcc-14-riscv64-linux-gnu. 1111s Preparing to unpack .../14-gcc-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 1111s Unpacking gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 1136s Selecting previously unselected package gcc-14. 1136s Preparing to unpack .../15-gcc-14_14.2.0-19ubuntu2_riscv64.deb ... 1136s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 1137s Selecting previously unselected package gcc-riscv64-linux-gnu. 1137s Preparing to unpack .../16-gcc-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 1137s Unpacking gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 1138s Selecting previously unselected package gcc. 1139s Preparing to unpack .../17-gcc_4%3a14.2.0-1ubuntu1_riscv64.deb ... 1139s Unpacking gcc (4:14.2.0-1ubuntu1) ... 1139s Selecting previously unselected package libstdc++-14-dev:riscv64. 1139s Preparing to unpack .../18-libstdc++-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 1139s Unpacking libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 1152s Selecting previously unselected package g++-14-riscv64-linux-gnu. 1152s Preparing to unpack .../19-g++-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 1152s Unpacking g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 1166s Selecting previously unselected package g++-14. 1166s Preparing to unpack .../20-g++-14_14.2.0-19ubuntu2_riscv64.deb ... 1166s Unpacking g++-14 (14.2.0-19ubuntu2) ... 1166s Selecting previously unselected package g++-riscv64-linux-gnu. 1167s Preparing to unpack .../21-g++-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 1167s Unpacking g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 1167s Selecting previously unselected package g++. 1168s Preparing to unpack .../22-g++_4%3a14.2.0-1ubuntu1_riscv64.deb ... 1168s Unpacking g++ (4:14.2.0-1ubuntu1) ... 1168s Selecting previously unselected package build-essential. 1168s Preparing to unpack .../23-build-essential_12.12ubuntu1_riscv64.deb ... 1168s Unpacking build-essential (12.12ubuntu1) ... 1169s Selecting previously unselected package libffi-dev:riscv64. 1169s Preparing to unpack .../24-libffi-dev_3.4.7-1_riscv64.deb ... 1169s Unpacking libffi-dev:riscv64 (3.4.7-1) ... 1170s Selecting previously unselected package uuid-dev:riscv64. 1170s Preparing to unpack .../25-uuid-dev_2.40.2-14ubuntu1_riscv64.deb ... 1170s Unpacking uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 1171s Selecting previously unselected package libblkid-dev:riscv64. 1171s Preparing to unpack .../26-libblkid-dev_2.40.2-14ubuntu1_riscv64.deb ... 1171s Unpacking libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 1173s Selecting previously unselected package libsepol-dev:riscv64. 1173s Preparing to unpack .../27-libsepol-dev_3.7-1_riscv64.deb ... 1173s Unpacking libsepol-dev:riscv64 (3.7-1) ... 1176s Selecting previously unselected package libpcre2-16-0:riscv64. 1177s Preparing to unpack .../28-libpcre2-16-0_10.45-1_riscv64.deb ... 1177s Unpacking libpcre2-16-0:riscv64 (10.45-1) ... 1177s Selecting previously unselected package libpcre2-32-0:riscv64. 1178s Preparing to unpack .../29-libpcre2-32-0_10.45-1_riscv64.deb ... 1178s Unpacking libpcre2-32-0:riscv64 (10.45-1) ... 1178s Selecting previously unselected package libpcre2-posix3:riscv64. 1179s Preparing to unpack .../30-libpcre2-posix3_10.45-1_riscv64.deb ... 1179s Unpacking libpcre2-posix3:riscv64 (10.45-1) ... 1179s Selecting previously unselected package libpcre2-dev:riscv64. 1179s Preparing to unpack .../31-libpcre2-dev_10.45-1_riscv64.deb ... 1179s Unpacking libpcre2-dev:riscv64 (10.45-1) ... 1184s Selecting previously unselected package libselinux1-dev:riscv64. 1184s Preparing to unpack .../32-libselinux1-dev_3.7-3ubuntu3_riscv64.deb ... 1184s Unpacking libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 1185s Selecting previously unselected package libmount-dev:riscv64. 1186s Preparing to unpack .../33-libmount-dev_2.40.2-14ubuntu1_riscv64.deb ... 1186s Unpacking libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 1186s Selecting previously unselected package libsysprof-capture-4-dev:riscv64. 1187s Preparing to unpack .../34-libsysprof-capture-4-dev_48.0-2_riscv64.deb ... 1187s Unpacking libsysprof-capture-4-dev:riscv64 (48.0-2) ... 1187s Selecting previously unselected package libpkgconf3:riscv64. 1188s Preparing to unpack .../35-libpkgconf3_1.8.1-4_riscv64.deb ... 1188s Unpacking libpkgconf3:riscv64 (1.8.1-4) ... 1188s Selecting previously unselected package pkgconf-bin. 1189s Preparing to unpack .../36-pkgconf-bin_1.8.1-4_riscv64.deb ... 1189s Unpacking pkgconf-bin (1.8.1-4) ... 1189s Selecting previously unselected package pkgconf:riscv64. 1190s Preparing to unpack .../37-pkgconf_1.8.1-4_riscv64.deb ... 1190s Unpacking pkgconf:riscv64 (1.8.1-4) ... 1190s Selecting previously unselected package zlib1g-dev:riscv64. 1191s Preparing to unpack .../38-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_riscv64.deb ... 1191s Unpacking zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 1192s Selecting previously unselected package libgio-2.0-dev:riscv64. 1192s Preparing to unpack .../39-libgio-2.0-dev_2.84.1-1_riscv64.deb ... 1192s Unpacking libgio-2.0-dev:riscv64 (2.84.1-1) ... 1202s Setting up libgomp1:riscv64 (15-20250404-0ubuntu1) ... 1202s Setting up libffi-dev:riscv64 (3.4.7-1) ... 1202s Setting up libpcre2-16-0:riscv64 (10.45-1) ... 1202s Setting up libsysprof-capture-4-dev:riscv64 (48.0-2) ... 1202s Setting up libpcre2-32-0:riscv64 (10.45-1) ... 1202s Setting up libpkgconf3:riscv64 (1.8.1-4) ... 1202s Setting up uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 1202s Setting up libmpc3:riscv64 (1.3.1-1build2) ... 1202s Setting up libsepol-dev:riscv64 (3.7-1) ... 1202s Setting up pkgconf-bin (1.8.1-4) ... 1202s Setting up libubsan1:riscv64 (15-20250404-0ubuntu1) ... 1202s Setting up zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 1202s Setting up libpcre2-posix3:riscv64 (10.45-1) ... 1202s Setting up libasan8:riscv64 (15-20250404-0ubuntu1) ... 1202s Setting up libtsan2:riscv64 (15-20250404-0ubuntu1) ... 1202s Setting up libisl23:riscv64 (0.27-1) ... 1202s Setting up libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 1202s Setting up liblsan0:riscv64 (15-20250404-0ubuntu1) ... 1202s Setting up libitm1:riscv64 (15-20250404-0ubuntu1) ... 1202s Setting up libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 1202s Setting up libpcre2-dev:riscv64 (10.45-1) ... 1203s Setting up libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 1203s Setting up cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 1203s Setting up pkgconf:riscv64 (1.8.1-4) ... 1203s Setting up cpp-14 (14.2.0-19ubuntu2) ... 1203s Setting up libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 1203s Setting up cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 1203s Setting up libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 1203s Setting up libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 1203s Setting up libgio-2.0-dev:riscv64 (2.84.1-1) ... 1203s Setting up gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 1203s Setting up cpp (4:14.2.0-1ubuntu1) ... 1203s Setting up g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 1203s Setting up gcc-14 (14.2.0-19ubuntu2) ... 1203s Setting up gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 1203s Setting up g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 1203s Setting up g++-14 (14.2.0-19ubuntu2) ... 1203s Setting up gcc (4:14.2.0-1ubuntu1) ... 1204s Setting up g++ (4:14.2.0-1ubuntu1) ... 1204s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 1204s Setting up build-essential (12.12ubuntu1) ... 1204s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1204s Processing triggers for man-db (2.13.0-1) ... 1214s Processing triggers for libglib2.0-0t64:riscv64 (2.84.1-1) ... 1215s No schema files found: doing nothing. 1215s Processing triggers for install-info (7.1.1-1) ... 1235s autopkgtest [16:10:59]: test build: [----------------------- 1238s + mode=dynamic 1238s + getopt -o --long static -n debian/tests/build -- 1238s + getopt_temp= -- 1238s + eval set -- -- 1238s + set -- -- 1238s + true 1238s + shift 1238s + break 1238s + mktemp -d 1238s + WORKDIR=/tmp/tmp.fzCDgiFoYN 1238s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 1238s + cd /tmp/tmp.fzCDgiFoYN 1238s + [ -n ] 1238s + CROSS_COMPILE= 1238s + cat 1239s + cat 1239s + cat 1239s + cat 1239s + cat 1239s + cat 1239s + cflags= 1239s + pcflags= 1239s + packages=glib-2.0 1239s + pkg-config --cflags --libs glib-2.0 1239s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 1244s build (glib, dynamic): OK 1244s + echo build (glib, dynamic): OK 1244s + [ -x glib-dynamic ] 1244s + foo=bar ./glib-dynamic 1244s + echo run (glib, dynamic): OK 1244s + cflags= 1244s + pcflags= 1244s + packages=gobject-2.0 1244s run (glib, dynamic): OK 1244s + pkg-config --cflags --libs gobject-2.0 1244s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 1248s + echo build (gobject, dynamic): OK 1248s build (gobject, dynamic): OK 1248s run (gobject, dynamic): OK 1248s + [ -x gobject-dynamic ] 1248s + foo=bar ./gobject-dynamic 1248s + echo run (gobject, dynamic): OK 1248s + cflags= 1248s + pcflags= 1248s + packages=gio-2.0 1248s + pkg-config --cflags --libs gio-2.0 1248s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 1254s build (gio, dynamic): OK 1254s + echo build (gio, dynamic): OK 1254s + [ -x gio-dynamic ] 1254s + foo=bar ./gio-dynamic 1254s run (gio, dynamic): OK 1254s + echo run (gio, dynamic): OK 1254s + cflags= 1254s + pcflags= 1254s + packages=gio-unix-2.0 1254s + pkg-config --cflags --libs gio-unix-2.0 1254s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 1260s build (gio-unix, dynamic): OK 1260s + echo build (gio-unix, dynamic): OK 1260s + [ -x gio-unix-dynamic ] 1260s + foo=bar ./gio-unix-dynamic 1260s run (gio-unix, dynamic): OK 1260s + echo run (gio-unix, dynamic): OK 1260s + cflags= 1260s + pcflags= 1260s + packages=gmodule-2.0 1260s + pkg-config --cflags --libs gmodule-2.0 1260s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 1263s build (gmodule, dynamic): OK 1263s + echo build (gmodule, dynamic): OK 1263s + [ -x gmodule-dynamic ] 1263s + foo=bar ./gmodule-dynamic 1263s + echo run (gmodule, dynamic): OK 1263s run (gmodule, dynamic): OK 1263s + cflags= 1263s + pcflags= 1263s + packages=gthread-2.0 1263s + pkg-config --cflags --libs gthread-2.0 1263s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 1267s build (gthread, dynamic): OK 1267s + echo build (gthread, dynamic): OK 1267s + [ -x gthread-dynamic ] 1267s + foo=bar ./gthread-dynamic 1267s + echo run (gthread, dynamic): OK 1267s + rm -rf /tmp/tmp.fzCDgiFoYN 1267s run (gthread, dynamic): OK 1269s autopkgtest [16:11:33]: test build: -----------------------] 1272s autopkgtest [16:11:36]: test build: - - - - - - - - - - results - - - - - - - - - - 1272s build PASS (superficial) 1275s autopkgtest [16:11:39]: test build-static: preparing testbed 1281s Reading package lists... 1284s Building dependency tree... 1284s Reading state information... 1287s Starting pkgProblemResolver with broken count: 0 1288s Starting 2 pkgProblemResolver with broken count: 0 1288s Done 1293s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1300s autopkgtest [16:12:04]: test build-static: [----------------------- 1303s + mode=dynamic 1303s + getopt -o --long static -n debian/tests/build -- --static 1303s + getopt_temp= --static -- 1303s + eval set -- --static -- 1303s + set -- --static -- 1303s + true 1303s + mode=static 1303s + shift 1303s + continue 1303s + true 1303s + shift 1303s + break 1303s + mktemp -d 1303s + WORKDIR=/tmp/tmp.pa84vgzNhu 1303s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 1303s + cd /tmp/tmp.pa84vgzNhu 1303s + [ -n ] 1303s + CROSS_COMPILE= 1303s + cat 1303s + cat 1303s + cat 1303s + cat 1303s + cat 1303s + cat 1303s + cflags= 1303s + pcflags= 1303s + packages=glib-2.0 1303s + cflags=-static 1303s + pcflags=--static 1303s + pkg-config --static --cflags --libs glib-2.0 1303s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 1309s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1309s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1309s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1309s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1319s + echo build (glib, static): OK 1319s build (glib, static): OK 1319s + [ -x glib-static ] 1319s + foo=bar ./glib-static 1319s + echo run (glib, static): OK 1319s + cflags= 1319s + pcflags= 1319s + packages=gobject-2.0 1319s + cflags=-static 1319s + pcflags=--static 1319s run (glib, static): OK 1319s + pkg-config --static --cflags --libs gobject-2.0 1319s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 1325s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1325s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1325s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1325s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1336s + echobuild (gobject, static): OK 1336s build (gobject, static): OK 1336s + [ -x gobject-static ] 1336s + foo=bar ./gobject-static 1336s + run (gobject, static): OK 1336s echo run (gobject, static): OK 1336s + cflags= 1336s + pcflags= 1336s + packages=gio-2.0 1336s + cflags=-static 1336s + pcflags=--static 1336s + continue 1336s + cflags= 1336s + pcflags= 1336s + packages=gio-unix-2.0 1336s + cflags=-static 1336s + pcflags=--static 1336s + continue 1336s + cflags= 1336s + pcflags= 1336s + packages=gmodule-2.0 1336s + cflags=-static 1336s + pcflags=--static 1336s + pkg-config --static --cflags --libs gmodule-2.0 1336s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 1339s /usr/bin/ld: /lib/riscv64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 1339s (.text+0x596): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1340s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1340s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1340s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1340s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1350s build (gmodule, static): OK 1350s + echo build (gmodule, static): OK 1350s + [ -x gmodule-static ] 1350s + foo=bar ./gmodule-static 1350s + echo run (gmodule, static): OK 1350s + cflags= 1350s + pcflags= 1350s + packages=gthread-2.0 1350s + cflags=-static 1350s + pcflags=--static 1350s run (gmodule, static): OK 1350s + pkg-config --static --cflags --libs gthread-2.0 1350s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 1355s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1355s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1355s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1355s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1365s + echo build (gthread, static): OK 1365s + [ -x gthread-static ] 1365s + foo=bar ./gthread-static 1365s build (gthread, static): OK 1365s run (gthread, static): OK 1365s + echo run (gthread, static): OK 1365s + rm -rf /tmp/tmp.pa84vgzNhu 1367s autopkgtest [16:13:11]: test build-static: -----------------------] 1371s autopkgtest [16:13:15]: test build-static: - - - - - - - - - - results - - - - - - - - - - 1371s build-static PASS (superficial) 1375s autopkgtest [16:13:19]: test girepository-tools: preparing testbed 1804s autopkgtest [16:20:28]: testbed dpkg architecture: riscv64 1806s autopkgtest [16:20:30]: testbed apt version: 3.0.0 1810s autopkgtest [16:20:34]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1813s autopkgtest [16:20:37]: testbed release detected to be: questing 1821s autopkgtest [16:20:45]: updating testbed package index (apt update) 1826s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 1827s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 1827s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 1827s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 1828s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [164 kB] 1829s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2024 kB] 1830s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.2 kB] 1830s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [181 kB] 1830s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [799 kB] 1831s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8048 B] 1837s Fetched 3331 kB in 9s (364 kB/s) 1862s Reading package lists... 1869s autopkgtest [16:21:33]: upgrading testbed (apt dist-upgrade and autopurge) 1871s Reading package lists... 1874s Building dependency tree... 1874s Reading state information... 1880s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1880s Starting 2 pkgProblemResolver with broken count: 0 1880s Done 1886s Entering ResolveByKeep 1888s 1889s Calculating upgrade... 1891s The following packages will be upgraded: 1891s fwupd htop libftdi1-2 libfwupd3 libnpth0t64 libperl5.40 libsensors-config 1891s libsensors5 liburcu8t64 nano perl perl-base perl-modules-5.40 tzdata usb.ids 1891s 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1891s Need to get 16.4 MB of archives. 1891s After this operation, 48.1 kB of additional disk space will be used. 1891s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libperl5.40 riscv64 5.40.1-3 [4483 kB] 1893s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl riscv64 5.40.1-3 [262 kB] 1893s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-base riscv64 5.40.1-3 [1845 kB] 1893s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-modules-5.40 all 5.40.1-3 [3217 kB] 1894s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 1894s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 tzdata all 2025b-3ubuntu1 [198 kB] 1894s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors-config all 1:3.6.2-2 [6756 B] 1894s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors5 riscv64 1:3.6.2-2 [30.4 kB] 1894s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 liburcu8t64 riscv64 0.15.2-2 [67.0 kB] 1894s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 1894s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 1894s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 fwupd riscv64 2.0.8-3 [5406 kB] 1895s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libfwupd3 riscv64 2.0.8-3 [140 kB] 1896s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 1896s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libftdi1-2 riscv64 1.5-10 [31.3 kB] 1903s Preconfiguring packages ... 1907s Fetched 16.4 MB in 5s (3417 kB/s) 1909s (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 ... 114049 files and directories currently installed.) 1909s Preparing to unpack .../libperl5.40_5.40.1-3_riscv64.deb ... 1909s Unpacking libperl5.40:riscv64 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 1917s Preparing to unpack .../perl_5.40.1-3_riscv64.deb ... 1917s Unpacking perl (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 1918s Preparing to unpack .../perl-base_5.40.1-3_riscv64.deb ... 1918s Unpacking perl-base (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 1923s Setting up perl-base (5.40.1-3) ... 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 ... 114049 files and directories currently installed.) 1926s Preparing to unpack .../perl-modules-5.40_5.40.1-3_all.deb ... 1926s Unpacking perl-modules-5.40 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 1935s Preparing to unpack .../libnpth0t64_1.8-3_riscv64.deb ... 1936s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 1936s Setting up libnpth0t64:riscv64 (1.8-3) ... 1939s (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 ... 114049 files and directories currently installed.) 1939s Preparing to unpack .../0-tzdata_2025b-3ubuntu1_all.deb ... 1939s Unpacking tzdata (2025b-3ubuntu1) over (2025b-1ubuntu1) ... 1942s Preparing to unpack .../1-libsensors-config_1%3a3.6.2-2_all.deb ... 1942s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 1943s Preparing to unpack .../2-libsensors5_1%3a3.6.2-2_riscv64.deb ... 1943s Unpacking libsensors5:riscv64 (1:3.6.2-2) over (1:3.6.0-10) ... 1944s Preparing to unpack .../3-liburcu8t64_0.15.2-2_riscv64.deb ... 1944s Unpacking liburcu8t64:riscv64 (0.15.2-2) over (0.15.1-1) ... 1945s Preparing to unpack .../4-nano_8.4-1_riscv64.deb ... 1945s Unpacking nano (8.4-1) over (8.3-1) ... 1947s Preparing to unpack .../5-usb.ids_2025.04.01-1_all.deb ... 1947s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 1948s Preparing to unpack .../6-fwupd_2.0.8-3_riscv64.deb ... 1959s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 1968s Preparing to unpack .../7-libfwupd3_2.0.8-3_riscv64.deb ... 1968s Unpacking libfwupd3:riscv64 (2.0.8-3) over (2.0.7-1) ... 1969s Preparing to unpack .../8-htop_3.4.1-4_riscv64.deb ... 1969s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 1970s Preparing to unpack .../9-libftdi1-2_1.5-10_riscv64.deb ... 1970s Unpacking libftdi1-2:riscv64 (1.5-10) over (1.5-8build1) ... 1971s Setting up liburcu8t64:riscv64 (0.15.2-2) ... 1971s Setting up htop (3.4.1-4) ... 1971s Setting up libsensors-config (1:3.6.2-2) ... 1971s Installing new version of config file /etc/sensors3.conf ... 1971s Setting up libfwupd3:riscv64 (2.0.8-3) ... 1971s Setting up tzdata (2025b-3ubuntu1) ... 1976s 1976s Current default time zone: 'Etc/UTC' 1976s Local time is now: Fri May 2 16:23:20 UTC 2025. 1976s Universal Time is now: Fri May 2 16:23:20 UTC 2025. 1976s Run 'dpkg-reconfigure tzdata' if you wish to change it. 1976s 1976s Setting up libftdi1-2:riscv64 (1.5-10) ... 1976s Setting up usb.ids (2025.04.01-1) ... 1976s Setting up libsensors5:riscv64 (1:3.6.2-2) ... 1976s Setting up nano (8.4-1) ... 1976s Installing new version of config file /etc/nanorc ... 1977s Setting up perl-modules-5.40 (5.40.1-3) ... 1977s Setting up fwupd (2.0.8-3) ... 1999s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 2000s fwupd.service is a disabled or a static unit not running, not starting it. 2003s Setting up libperl5.40:riscv64 (5.40.1-3) ... 2003s Setting up perl (5.40.1-3) ... 2003s Processing triggers for install-info (7.1.1-1) ... 2008s Processing triggers for libc-bin (2.41-6ubuntu1) ... 2008s Processing triggers for man-db (2.13.0-1) ... 2017s Processing triggers for dbus (1.16.2-2ubuntu1) ... 2029s Reading package lists... 2031s Building dependency tree... 2031s Reading state information... 2034s Starting pkgProblemResolver with broken count: 0 2035s Starting 2 pkgProblemResolver with broken count: 0 2035s Done 2038s Solving dependencies... 2040s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2043s autopkgtest [16:24:27]: rebooting testbed after setup commands that affected boot 2055s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2088s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2121s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2154s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2187s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2220s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2253s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2317s Reading package lists... 2320s Building dependency tree... 2320s Reading state information... 2323s Starting pkgProblemResolver with broken count: 0 2324s Starting 2 pkgProblemResolver with broken count: 0 2324s Done 2330s The following NEW packages will be installed: 2330s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 2330s native-architecture 2331s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 2331s Need to get 1104 kB of archives. 2331s After this operation, 12.7 MB of additional disk space will be used. 2331s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 gir1.2-glib-2.0-dev riscv64 2.84.1-1 [862 kB] 2332s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 native-architecture all 0.2.6 [2140 B] 2332s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 libgirepository-2.0-0 riscv64 2.84.1-1 [118 kB] 2332s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 girepository-tools riscv64 2.84.1-1 [121 kB] 2341s Fetched 1104 kB in 1s (759 kB/s) 2342s Selecting previously unselected package gir1.2-glib-2.0-dev:riscv64. 2344s (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 ... 114049 files and directories currently installed.) 2344s Preparing to unpack .../gir1.2-glib-2.0-dev_2.84.1-1_riscv64.deb ... 2344s Unpacking gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 2346s Selecting previously unselected package native-architecture. 2347s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 2347s Unpacking native-architecture (0.2.6) ... 2347s Selecting previously unselected package libgirepository-2.0-0:riscv64. 2348s Preparing to unpack .../libgirepository-2.0-0_2.84.1-1_riscv64.deb ... 2348s Unpacking libgirepository-2.0-0:riscv64 (2.84.1-1) ... 2348s Selecting previously unselected package girepository-tools:riscv64. 2349s Preparing to unpack .../girepository-tools_2.84.1-1_riscv64.deb ... 2349s Unpacking girepository-tools:riscv64 (2.84.1-1) ... 2350s Setting up native-architecture (0.2.6) ... 2350s Setting up libgirepository-2.0-0:riscv64 (2.84.1-1) ... 2350s Setting up gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 2350s Setting up girepository-tools:riscv64 (2.84.1-1) ... 2350s Processing triggers for man-db (2.13.0-1) ... 2355s Processing triggers for libc-bin (2.41-6ubuntu1) ... 2404s autopkgtest [16:30:27]: test girepository-tools: [----------------------- 2406s + cd /tmp/autopkgtest.AUrJM5/autopkgtest_tmp 2406s + dpkg-architecture -qDEB_HOST_GNU_TYPE 2408s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 2408s + DEB_HOST_GNU_TYPE=riscv64-linux-gnu 2408s + dpkg-architecture -qDEB_HOST_MULTIARCH 2410s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 2410s + DEB_HOST_MULTIARCH=riscv64-linux-gnu 2410s + riscv64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 2410s typelib: GLib-2.0 2410s + riscv64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir 2414s + riscv64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 2416s autopkgtest [16:30:40]: test girepository-tools: -----------------------] 2421s autopkgtest [16:30:45]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 2421s girepository-tools PASS (superficial) 2424s autopkgtest [16:30:48]: test libgio-2.0-dev-bin: preparing testbed 2731s autopkgtest [16:35:55]: testbed dpkg architecture: riscv64 2732s autopkgtest [16:35:56]: testbed apt version: 3.0.0 2735s autopkgtest [16:35:59]: @@@@@@@@@@@@@@@@@@@@ test bed setup 2737s autopkgtest [16:36:01]: testbed release detected to be: questing 2743s autopkgtest [16:36:07]: updating testbed package index (apt update) 2746s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 2747s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 2747s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 2747s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 2749s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2024 kB] 2751s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.2 kB] 2751s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [164 kB] 2751s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [181 kB] 2751s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [799 kB] 2752s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8048 B] 2758s Fetched 3331 kB in 10s (331 kB/s) 2780s Reading package lists... 2787s autopkgtest [16:36:51]: upgrading testbed (apt dist-upgrade and autopurge) 2789s Reading package lists... 2792s Building dependency tree... 2792s Reading state information... 2797s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 2797s Starting 2 pkgProblemResolver with broken count: 0 2797s Done 2801s Entering ResolveByKeep 2803s 2805s Calculating upgrade... 2807s The following packages will be upgraded: 2807s fwupd htop libftdi1-2 libfwupd3 libnpth0t64 libperl5.40 libsensors-config 2807s libsensors5 liburcu8t64 nano perl perl-base perl-modules-5.40 tzdata usb.ids 2808s 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2808s Need to get 16.4 MB of archives. 2808s After this operation, 48.1 kB of additional disk space will be used. 2808s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libperl5.40 riscv64 5.40.1-3 [4483 kB] 2809s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl riscv64 5.40.1-3 [262 kB] 2809s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-base riscv64 5.40.1-3 [1845 kB] 2810s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-modules-5.40 all 5.40.1-3 [3217 kB] 2810s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 2810s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 tzdata all 2025b-3ubuntu1 [198 kB] 2810s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors-config all 1:3.6.2-2 [6756 B] 2810s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors5 riscv64 1:3.6.2-2 [30.4 kB] 2810s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 liburcu8t64 riscv64 0.15.2-2 [67.0 kB] 2810s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 2811s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 2811s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 fwupd riscv64 2.0.8-3 [5406 kB] 2812s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libfwupd3 riscv64 2.0.8-3 [140 kB] 2812s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 2812s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libftdi1-2 riscv64 1.5-10 [31.3 kB] 2819s Preconfiguring packages ... 2821s Fetched 16.4 MB in 4s (4211 kB/s) 2824s (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 ... 114049 files and directories currently installed.) 2824s Preparing to unpack .../libperl5.40_5.40.1-3_riscv64.deb ... 2824s Unpacking libperl5.40:riscv64 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 2832s Preparing to unpack .../perl_5.40.1-3_riscv64.deb ... 2832s Unpacking perl (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 2833s Preparing to unpack .../perl-base_5.40.1-3_riscv64.deb ... 2833s Unpacking perl-base (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 2837s Setting up perl-base (5.40.1-3) ... 2839s (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 ... 114049 files and directories currently installed.) 2839s Preparing to unpack .../perl-modules-5.40_5.40.1-3_all.deb ... 2839s Unpacking perl-modules-5.40 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 2848s Preparing to unpack .../libnpth0t64_1.8-3_riscv64.deb ... 2848s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 2849s Setting up libnpth0t64:riscv64 (1.8-3) ... 2851s (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 ... 114049 files and directories currently installed.) 2851s Preparing to unpack .../0-tzdata_2025b-3ubuntu1_all.deb ... 2851s Unpacking tzdata (2025b-3ubuntu1) over (2025b-1ubuntu1) ... 2853s Preparing to unpack .../1-libsensors-config_1%3a3.6.2-2_all.deb ... 2853s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 2854s Preparing to unpack .../2-libsensors5_1%3a3.6.2-2_riscv64.deb ... 2854s Unpacking libsensors5:riscv64 (1:3.6.2-2) over (1:3.6.0-10) ... 2855s Preparing to unpack .../3-liburcu8t64_0.15.2-2_riscv64.deb ... 2855s Unpacking liburcu8t64:riscv64 (0.15.2-2) over (0.15.1-1) ... 2856s Preparing to unpack .../4-nano_8.4-1_riscv64.deb ... 2856s Unpacking nano (8.4-1) over (8.3-1) ... 2858s Preparing to unpack .../5-usb.ids_2025.04.01-1_all.deb ... 2858s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 2859s Preparing to unpack .../6-fwupd_2.0.8-3_riscv64.deb ... 2869s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 2876s Preparing to unpack .../7-libfwupd3_2.0.8-3_riscv64.deb ... 2876s Unpacking libfwupd3:riscv64 (2.0.8-3) over (2.0.7-1) ... 2877s Preparing to unpack .../8-htop_3.4.1-4_riscv64.deb ... 2877s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 2878s Preparing to unpack .../9-libftdi1-2_1.5-10_riscv64.deb ... 2878s Unpacking libftdi1-2:riscv64 (1.5-10) over (1.5-8build1) ... 2879s Setting up liburcu8t64:riscv64 (0.15.2-2) ... 2879s Setting up htop (3.4.1-4) ... 2879s Setting up libsensors-config (1:3.6.2-2) ... 2879s Installing new version of config file /etc/sensors3.conf ... 2879s Setting up libfwupd3:riscv64 (2.0.8-3) ... 2879s Setting up tzdata (2025b-3ubuntu1) ... 2884s 2884s Current default time zone: 'Etc/UTC' 2884s Local time is now: Fri May 2 16:38:28 UTC 2025. 2884s Universal Time is now: Fri May 2 16:38:28 UTC 2025. 2884s Run 'dpkg-reconfigure tzdata' if you wish to change it. 2884s 2885s Setting up libftdi1-2:riscv64 (1.5-10) ... 2885s Setting up usb.ids (2025.04.01-1) ... 2885s Setting up libsensors5:riscv64 (1:3.6.2-2) ... 2885s Setting up nano (8.4-1) ... 2885s Installing new version of config file /etc/nanorc ... 2885s Setting up perl-modules-5.40 (5.40.1-3) ... 2885s Setting up fwupd (2.0.8-3) ... 2905s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 2907s fwupd.service is a disabled or a static unit not running, not starting it. 2909s Setting up libperl5.40:riscv64 (5.40.1-3) ... 2909s Setting up perl (5.40.1-3) ... 2910s Processing triggers for install-info (7.1.1-1) ... 2913s Processing triggers for libc-bin (2.41-6ubuntu1) ... 2913s Processing triggers for man-db (2.13.0-1) ... 2921s Processing triggers for dbus (1.16.2-2ubuntu1) ... 2931s Reading package lists... 2934s Building dependency tree... 2934s Reading state information... 2937s Starting pkgProblemResolver with broken count: 0 2938s Starting 2 pkgProblemResolver with broken count: 0 2938s Done 2942s Solving dependencies... 2943s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2947s autopkgtest [16:39:31]: rebooting testbed after setup commands that affected boot 2956s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2959s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 2992s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 3025s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 3058s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 3091s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 3159s Reading package lists... 3163s Building dependency tree... 3163s Reading state information... 3166s Starting pkgProblemResolver with broken count: 0 3166s Starting 2 pkgProblemResolver with broken count: 0 3167s Done 3171s The following NEW packages will be installed: 3171s libgio-2.0-dev-bin python3-packaging 3172s 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 3172s Need to get 184 kB of archives. 3172s After this operation, 949 kB of additional disk space will be used. 3172s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 python3-packaging all 24.2-1 [51.5 kB] 3173s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev-bin riscv64 2.84.1-1 [133 kB] 3180s Fetched 184 kB in 1s (181 kB/s) 3181s Selecting previously unselected package python3-packaging. 3183s (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 ... 114049 files and directories currently installed.) 3183s Preparing to unpack .../python3-packaging_24.2-1_all.deb ... 3183s Unpacking python3-packaging (24.2-1) ... 3184s Selecting previously unselected package libgio-2.0-dev-bin. 3184s Preparing to unpack .../libgio-2.0-dev-bin_2.84.1-1_riscv64.deb ... 3184s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 3185s Setting up python3-packaging (24.2-1) ... 3190s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 3199s Processing triggers for man-db (2.13.0-1) ... 3247s autopkgtest [16:44:31]: test libgio-2.0-dev-bin: [----------------------- 3250s + gdbus-codegen --help 3251s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 3251s [--c-namespace NAMESPACE] [--c-generate-object-manager] 3251s [--c-generate-autocleanup {none,objects,all}] 3251s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 3251s [--generate-rst OUTFILES] [--pragma-once] 3251s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 3251s [--glib-min-required VERSION] 3251s [--glib-max-allowed VERSION] 3251s [--symbol-decorator SYMBOL_DECORATOR] 3251s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 3251s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 3251s [--generate-c-code OUTFILES | --header | --body | 3251s --interface-info-header | --interface-info-body] 3251s [--output FILE | --output-directory OUTDIR] 3251s FILE [FILE ...] 3251s 3251s D-Bus code and documentation generator 3251s 3251s positional arguments: 3251s FILE D-Bus introspection XML file 3251s 3251s options: 3251s -h, --help show this help message and exit 3251s --interface-prefix PREFIX 3251s String to strip from D-Bus interface names for code 3251s and docs 3251s --c-namespace NAMESPACE 3251s The namespace to use for generated C code 3251s --c-generate-object-manager 3251s Generate a GDBusObjectManagerClient subclass when 3251s generating C code 3251s --c-generate-autocleanup {none,objects,all} 3251s Generate autocleanup support 3251s --generate-docbook OUTFILES 3251s Generate Docbook in OUTFILES-org.Project.IFace.xml 3251s --generate-md OUTFILES 3251s Generate Markdown in OUTFILES-org.Project.IFace.md 3251s --generate-rst OUTFILES 3251s Generate reStructuredText in OUTFILES- 3251s org.Project.IFace.rst 3251s --pragma-once Use "pragma once" as the inclusion guard 3251s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 3251s Add annotation (may be used several times) 3251s --glib-min-required VERSION 3251s Minimum version of GLib to be supported by the 3251s outputted code (default: 2.30) 3251s --glib-max-allowed VERSION 3251s Maximum version of GLib to be used by the outputted 3251s code (default: current GLib version) 3251s --symbol-decorator SYMBOL_DECORATOR 3251s Macro used to decorate a symbol in the outputted 3251s header, possibly to export symbols 3251s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 3251s Additional header required for decorator specified by 3251s --symbol-decorator 3251s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 3251s Additional define required for decorator specified by 3251s --symbol-decorator 3251s --generate-c-code OUTFILES 3251s Generate C code in OUTFILES.[ch] 3251s --header Generate C headers 3251s --body Generate C code 3251s --interface-info-header 3251s Generate GDBusInterfaceInfo C header 3251s --interface-info-body 3251s Generate GDBusInterfaceInfo C code 3251s --output FILE Write output into the specified file 3251s --output-directory OUTDIR 3251s Location to output generated files 3251s + glib-compile-resources --version 3251s 2.84.1 3251s + glib-genmarshal --version 3252s glib-genmarshal version 2.84.1 3252s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 3252s You may redistribute copies of glib-genmarshal under the terms of 3252s the GNU General Public License which can be found in the 3252s GLib source package. Sources, examples and contact 3252s information are available at http://www.gtk.org 3252s + glib-gettextize --version 3252s /usr/bin/glib-gettextize (GNU glib) 2.84.1 3252s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 3252s This is free software; see the source for copying conditions. There is NO 3252s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 3252s Written by Ulrich Drepper 3252s + glib-mkenums --version 3253s glib-mkenums version 2.84.1 3253s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 3253s You may redistribute copies of glib-mkenums under the terms of 3253s the GNU General Public License which can be found in the 3253s GLib source package. Sources, examples and contact 3253s information are available at http://www.gtk.org 3253s + gobject-query tree 3253s GObject 3253s + gtester --version 3253s gtester version 2.84.1 3253s + gtester-report --version 3254s gtester-report (GLib utils) version 2.84.1. 3256s autopkgtest [16:44:40]: test libgio-2.0-dev-bin: -----------------------] 3259s autopkgtest [16:44:43]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 3259s libgio-2.0-dev-bin PASS (superficial) 3262s autopkgtest [16:44:46]: test libglib2.0-dev: preparing testbed 3651s autopkgtest [16:51:15]: testbed dpkg architecture: riscv64 3654s autopkgtest [16:51:18]: testbed apt version: 3.0.0 3658s autopkgtest [16:51:22]: @@@@@@@@@@@@@@@@@@@@ test bed setup 3660s autopkgtest [16:51:24]: testbed release detected to be: questing 3669s autopkgtest [16:51:33]: updating testbed package index (apt update) 3673s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 3674s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 3674s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 3674s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 3675s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.2 kB] 3676s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [164 kB] 3676s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2024 kB] 3678s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [181 kB] 3678s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [799 kB] 3679s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8048 B] 3686s Fetched 3331 kB in 12s (286 kB/s) 3715s Reading package lists... 3724s autopkgtest [16:52:28]: upgrading testbed (apt dist-upgrade and autopurge) 3727s Reading package lists... 3730s Building dependency tree... 3730s Reading state information... 3736s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 3736s Starting 2 pkgProblemResolver with broken count: 0 3737s Done 3743s Entering ResolveByKeep 3746s 3748s Calculating upgrade... 3750s The following packages will be upgraded: 3750s fwupd htop libftdi1-2 libfwupd3 libnpth0t64 libperl5.40 libsensors-config 3750s libsensors5 liburcu8t64 nano perl perl-base perl-modules-5.40 tzdata usb.ids 3751s 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3751s Need to get 16.4 MB of archives. 3751s After this operation, 48.1 kB of additional disk space will be used. 3751s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libperl5.40 riscv64 5.40.1-3 [4483 kB] 3753s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl riscv64 5.40.1-3 [262 kB] 3753s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-base riscv64 5.40.1-3 [1845 kB] 3754s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-modules-5.40 all 5.40.1-3 [3217 kB] 3755s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 3755s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 tzdata all 2025b-3ubuntu1 [198 kB] 3755s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors-config all 1:3.6.2-2 [6756 B] 3755s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors5 riscv64 1:3.6.2-2 [30.4 kB] 3755s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 liburcu8t64 riscv64 0.15.2-2 [67.0 kB] 3755s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 3755s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 3755s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 fwupd riscv64 2.0.8-3 [5406 kB] 3756s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libfwupd3 riscv64 2.0.8-3 [140 kB] 3756s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 3756s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libftdi1-2 riscv64 1.5-10 [31.3 kB] 3767s Preconfiguring packages ... 3770s Fetched 16.4 MB in 6s (2563 kB/s) 3773s (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 ... 114049 files and directories currently installed.) 3773s Preparing to unpack .../libperl5.40_5.40.1-3_riscv64.deb ... 3773s Unpacking libperl5.40:riscv64 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 3782s Preparing to unpack .../perl_5.40.1-3_riscv64.deb ... 3782s Unpacking perl (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 3783s Preparing to unpack .../perl-base_5.40.1-3_riscv64.deb ... 3783s Unpacking perl-base (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 3789s Setting up perl-base (5.40.1-3) ... 3792s (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 ... 114049 files and directories currently installed.) 3792s Preparing to unpack .../perl-modules-5.40_5.40.1-3_all.deb ... 3792s Unpacking perl-modules-5.40 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 3803s Preparing to unpack .../libnpth0t64_1.8-3_riscv64.deb ... 3803s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 3804s Setting up libnpth0t64:riscv64 (1.8-3) ... 3807s (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 ... 114049 files and directories currently installed.) 3808s Preparing to unpack .../0-tzdata_2025b-3ubuntu1_all.deb ... 3808s Unpacking tzdata (2025b-3ubuntu1) over (2025b-1ubuntu1) ... 3811s Preparing to unpack .../1-libsensors-config_1%3a3.6.2-2_all.deb ... 3811s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 3812s Preparing to unpack .../2-libsensors5_1%3a3.6.2-2_riscv64.deb ... 3812s Unpacking libsensors5:riscv64 (1:3.6.2-2) over (1:3.6.0-10) ... 3813s Preparing to unpack .../3-liburcu8t64_0.15.2-2_riscv64.deb ... 3813s Unpacking liburcu8t64:riscv64 (0.15.2-2) over (0.15.1-1) ... 3814s Preparing to unpack .../4-nano_8.4-1_riscv64.deb ... 3814s Unpacking nano (8.4-1) over (8.3-1) ... 3816s Preparing to unpack .../5-usb.ids_2025.04.01-1_all.deb ... 3816s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 3817s Preparing to unpack .../6-fwupd_2.0.8-3_riscv64.deb ... 3829s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 3839s Preparing to unpack .../7-libfwupd3_2.0.8-3_riscv64.deb ... 3839s Unpacking libfwupd3:riscv64 (2.0.8-3) over (2.0.7-1) ... 3840s Preparing to unpack .../8-htop_3.4.1-4_riscv64.deb ... 3840s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 3842s Preparing to unpack .../9-libftdi1-2_1.5-10_riscv64.deb ... 3842s Unpacking libftdi1-2:riscv64 (1.5-10) over (1.5-8build1) ... 3843s Setting up liburcu8t64:riscv64 (0.15.2-2) ... 3843s Setting up htop (3.4.1-4) ... 3843s Setting up libsensors-config (1:3.6.2-2) ... 3843s Installing new version of config file /etc/sensors3.conf ... 3843s Setting up libfwupd3:riscv64 (2.0.8-3) ... 3843s Setting up tzdata (2025b-3ubuntu1) ... 3850s 3850s Current default time zone: 'Etc/UTC' 3850s Local time is now: Fri May 2 16:54:34 UTC 2025. 3850s Universal Time is now: Fri May 2 16:54:34 UTC 2025. 3850s Run 'dpkg-reconfigure tzdata' if you wish to change it. 3850s 3851s Setting up libftdi1-2:riscv64 (1.5-10) ... 3851s Setting up usb.ids (2025.04.01-1) ... 3851s Setting up libsensors5:riscv64 (1:3.6.2-2) ... 3851s Setting up nano (8.4-1) ... 3851s Installing new version of config file /etc/nanorc ... 3851s Setting up perl-modules-5.40 (5.40.1-3) ... 3851s Setting up fwupd (2.0.8-3) ... 3875s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 3877s fwupd.service is a disabled or a static unit not running, not starting it. 3880s Setting up libperl5.40:riscv64 (5.40.1-3) ... 3880s Setting up perl (5.40.1-3) ... 3880s Processing triggers for install-info (7.1.1-1) ... 3886s Processing triggers for libc-bin (2.41-6ubuntu1) ... 3886s Processing triggers for man-db (2.13.0-1) ... 3896s Processing triggers for dbus (1.16.2-2ubuntu1) ... 3911s Reading package lists... 3914s Building dependency tree... 3914s Reading state information... 3918s Starting pkgProblemResolver with broken count: 0 3919s Starting 2 pkgProblemResolver with broken count: 0 3919s Done 3925s Solving dependencies... 3928s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3932s autopkgtest [16:55:56]: rebooting testbed after setup commands that affected boot 3942s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 3945s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 3978s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4011s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4045s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4077s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4110s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4143s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4174s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4207s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 4264s Reading package lists... 4267s Building dependency tree... 4267s Reading state information... 4271s Starting pkgProblemResolver with broken count: 0 4271s Starting 2 pkgProblemResolver with broken count: 0 4272s Done 4276s The following NEW packages will be installed: 4277s build-essential cpp cpp-14 cpp-14-riscv64-linux-gnu cpp-riscv64-linux-gnu 4277s g++ g++-14 g++-14-riscv64-linux-gnu g++-riscv64-linux-gnu gcc gcc-14 4277s gcc-14-riscv64-linux-gnu gcc-riscv64-linux-gnu gir1.2-glib-2.0-dev 4277s girepository-tools libasan8 libblkid-dev libcc1-0 libffi-dev libgcc-14-dev 4277s libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 libglib2.0-bin 4277s libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 libitm1 liblsan0 4277s libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 4277s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 4277s libsysprof-capture-4-dev libtsan2 libubsan1 native-architecture pkgconf 4277s pkgconf-bin python3-packaging uuid-dev zlib1g-dev 4278s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 4278s Need to get 97.1 MB of archives. 4278s After this operation, 472 MB of additional disk space will be used. 4278s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 libisl23 riscv64 0.27-1 [722 kB] 4279s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 libmpc3 riscv64 1.3.1-1build2 [61.5 kB] 4279s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [15.2 MB] 4283s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14 riscv64 14.2.0-19ubuntu2 [1028 B] 4283s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [5554 B] 4283s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp riscv64 4:14.2.0-1ubuntu1 [22.4 kB] 4283s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libcc1-0 riscv64 15-20250404-0ubuntu1 [46.1 kB] 4283s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libgomp1 riscv64 15-20250404-0ubuntu1 [149 kB] 4283s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 libitm1 riscv64 15-20250404-0ubuntu1 [29.7 kB] 4283s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 libasan8 riscv64 15-20250404-0ubuntu1 [3300 kB] 4284s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 liblsan0 riscv64 15-20250404-0ubuntu1 [1470 kB] 4284s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 libtsan2 riscv64 15-20250404-0ubuntu1 [2983 kB] 4285s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libubsan1 riscv64 15-20250404-0ubuntu1 [1310 kB] 4285s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 libgcc-14-dev riscv64 14.2.0-19ubuntu2 [5994 kB] 4286s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [29.9 MB] 4295s Get:16 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14 riscv64 14.2.0-19ubuntu2 [529 kB] 4295s Get:17 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [1198 B] 4295s Get:18 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc riscv64 4:14.2.0-1ubuntu1 [4998 B] 4295s Get:19 http://ftpmaster.internal/ubuntu questing/main riscv64 libstdc++-14-dev riscv64 14.2.0-19ubuntu2 [6141 kB] 4297s Get:20 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [16.8 MB] 4302s Get:21 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14 riscv64 14.2.0-19ubuntu2 [23.0 kB] 4302s Get:22 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [960 B] 4302s Get:23 http://ftpmaster.internal/ubuntu questing/main riscv64 g++ riscv64 4:14.2.0-1ubuntu1 [1080 B] 4302s Get:24 http://ftpmaster.internal/ubuntu questing/main riscv64 build-essential riscv64 12.12ubuntu1 [5090 B] 4302s Get:25 http://ftpmaster.internal/ubuntu questing/main riscv64 gir1.2-glib-2.0-dev riscv64 2.84.1-1 [862 kB] 4302s Get:26 http://ftpmaster.internal/ubuntu questing/main riscv64 native-architecture all 0.2.6 [2140 B] 4302s Get:27 http://ftpmaster.internal/ubuntu questing/main riscv64 libgirepository-2.0-0 riscv64 2.84.1-1 [118 kB] 4302s Get:28 http://ftpmaster.internal/ubuntu questing/main riscv64 girepository-tools riscv64 2.84.1-1 [121 kB] 4302s Get:29 http://ftpmaster.internal/ubuntu questing/main riscv64 libffi-dev riscv64 3.4.7-1 [88.8 kB] 4302s Get:30 http://ftpmaster.internal/ubuntu questing/main riscv64 uuid-dev riscv64 2.40.2-14ubuntu1 [73.6 kB] 4302s Get:31 http://ftpmaster.internal/ubuntu questing/main riscv64 libblkid-dev riscv64 2.40.2-14ubuntu1 [586 kB] 4302s Get:32 http://ftpmaster.internal/ubuntu questing/main riscv64 libsepol-dev riscv64 3.7-1 [1216 kB] 4302s Get:33 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-16-0 riscv64 10.45-1 [246 kB] 4302s Get:34 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-32-0 riscv64 10.45-1 [232 kB] 4303s Get:35 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-posix3 riscv64 10.45-1 [6820 B] 4303s Get:36 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-dev riscv64 10.45-1 [2204 kB] 4303s Get:37 http://ftpmaster.internal/ubuntu questing/main riscv64 libselinux1-dev riscv64 3.7-3ubuntu3 [321 kB] 4303s Get:38 http://ftpmaster.internal/ubuntu questing/main riscv64 libmount-dev riscv64 2.40.2-14ubuntu1 [34.6 kB] 4303s Get:39 http://ftpmaster.internal/ubuntu questing/main riscv64 libsysprof-capture-4-dev riscv64 48.0-2 [132 kB] 4303s Get:40 http://ftpmaster.internal/ubuntu questing/main riscv64 libpkgconf3 riscv64 1.8.1-4 [31.6 kB] 4303s Get:41 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf-bin riscv64 1.8.1-4 [21.8 kB] 4303s Get:42 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf riscv64 1.8.1-4 [16.7 kB] 4303s Get:43 http://ftpmaster.internal/ubuntu questing/main riscv64 zlib1g-dev riscv64 1:1.3.dfsg+really1.3.1-1ubuntu1 [968 kB] 4303s Get:44 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev riscv64 2.84.1-1 [4889 kB] 4305s Get:45 http://ftpmaster.internal/ubuntu questing/main riscv64 python3-packaging all 24.2-1 [51.5 kB] 4305s Get:46 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev-bin riscv64 2.84.1-1 [133 kB] 4305s Get:47 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-bin riscv64 2.84.1-1 [97.7 kB] 4305s Get:48 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-dev-bin riscv64 2.84.1-1 [18.1 kB] 4305s Get:49 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-dev riscv64 2.84.1-1 [18.9 kB] 4317s Fetched 97.1 MB in 28s (3495 kB/s) 4318s Selecting previously unselected package libisl23:riscv64. 4321s (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 ... 114049 files and directories currently installed.) 4321s Preparing to unpack .../00-libisl23_0.27-1_riscv64.deb ... 4321s Unpacking libisl23:riscv64 (0.27-1) ... 4323s Selecting previously unselected package libmpc3:riscv64. 4323s Preparing to unpack .../01-libmpc3_1.3.1-1build2_riscv64.deb ... 4323s Unpacking libmpc3:riscv64 (1.3.1-1build2) ... 4324s Selecting previously unselected package cpp-14-riscv64-linux-gnu. 4324s Preparing to unpack .../02-cpp-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 4324s Unpacking cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 4340s Selecting previously unselected package cpp-14. 4340s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_riscv64.deb ... 4340s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 4340s Selecting previously unselected package cpp-riscv64-linux-gnu. 4341s Preparing to unpack .../04-cpp-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 4341s Unpacking cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 4342s Selecting previously unselected package cpp. 4342s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_riscv64.deb ... 4342s Unpacking cpp (4:14.2.0-1ubuntu1) ... 4343s Selecting previously unselected package libcc1-0:riscv64. 4344s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_riscv64.deb ... 4344s Unpacking libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 4344s Selecting previously unselected package libgomp1:riscv64. 4344s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_riscv64.deb ... 4344s Unpacking libgomp1:riscv64 (15-20250404-0ubuntu1) ... 4345s Selecting previously unselected package libitm1:riscv64. 4346s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_riscv64.deb ... 4346s Unpacking libitm1:riscv64 (15-20250404-0ubuntu1) ... 4346s Selecting previously unselected package libasan8:riscv64. 4347s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_riscv64.deb ... 4347s Unpacking libasan8:riscv64 (15-20250404-0ubuntu1) ... 4351s Selecting previously unselected package liblsan0:riscv64. 4351s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_riscv64.deb ... 4351s Unpacking liblsan0:riscv64 (15-20250404-0ubuntu1) ... 4353s Selecting previously unselected package libtsan2:riscv64. 4353s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_riscv64.deb ... 4353s Unpacking libtsan2:riscv64 (15-20250404-0ubuntu1) ... 4357s Selecting previously unselected package libubsan1:riscv64. 4357s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_riscv64.deb ... 4357s Unpacking libubsan1:riscv64 (15-20250404-0ubuntu1) ... 4359s Selecting previously unselected package libgcc-14-dev:riscv64. 4360s Preparing to unpack .../13-libgcc-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 4360s Unpacking libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 4372s Selecting previously unselected package gcc-14-riscv64-linux-gnu. 4373s Preparing to unpack .../14-gcc-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 4373s Unpacking gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 4402s Selecting previously unselected package gcc-14. 4402s Preparing to unpack .../15-gcc-14_14.2.0-19ubuntu2_riscv64.deb ... 4402s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 4403s Selecting previously unselected package gcc-riscv64-linux-gnu. 4403s Preparing to unpack .../16-gcc-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 4403s Unpacking gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 4404s Selecting previously unselected package gcc. 4404s Preparing to unpack .../17-gcc_4%3a14.2.0-1ubuntu1_riscv64.deb ... 4404s Unpacking gcc (4:14.2.0-1ubuntu1) ... 4405s Selecting previously unselected package libstdc++-14-dev:riscv64. 4405s Preparing to unpack .../18-libstdc++-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 4405s Unpacking libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 4421s Selecting previously unselected package g++-14-riscv64-linux-gnu. 4421s Preparing to unpack .../19-g++-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 4421s Unpacking g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 4437s Selecting previously unselected package g++-14. 4437s Preparing to unpack .../20-g++-14_14.2.0-19ubuntu2_riscv64.deb ... 4437s Unpacking g++-14 (14.2.0-19ubuntu2) ... 4438s Selecting previously unselected package g++-riscv64-linux-gnu. 4438s Preparing to unpack .../21-g++-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 4438s Unpacking g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 4439s Selecting previously unselected package g++. 4439s Preparing to unpack .../22-g++_4%3a14.2.0-1ubuntu1_riscv64.deb ... 4439s Unpacking g++ (4:14.2.0-1ubuntu1) ... 4440s Selecting previously unselected package build-essential. 4440s Preparing to unpack .../23-build-essential_12.12ubuntu1_riscv64.deb ... 4440s Unpacking build-essential (12.12ubuntu1) ... 4441s Selecting previously unselected package gir1.2-glib-2.0-dev:riscv64. 4441s Preparing to unpack .../24-gir1.2-glib-2.0-dev_2.84.1-1_riscv64.deb ... 4441s Unpacking gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 4444s Selecting previously unselected package native-architecture. 4445s Preparing to unpack .../25-native-architecture_0.2.6_all.deb ... 4445s Unpacking native-architecture (0.2.6) ... 4446s Selecting previously unselected package libgirepository-2.0-0:riscv64. 4446s Preparing to unpack .../26-libgirepository-2.0-0_2.84.1-1_riscv64.deb ... 4446s Unpacking libgirepository-2.0-0:riscv64 (2.84.1-1) ... 4447s Selecting previously unselected package girepository-tools:riscv64. 4447s Preparing to unpack .../27-girepository-tools_2.84.1-1_riscv64.deb ... 4447s Unpacking girepository-tools:riscv64 (2.84.1-1) ... 4448s Selecting previously unselected package libffi-dev:riscv64. 4448s Preparing to unpack .../28-libffi-dev_3.4.7-1_riscv64.deb ... 4448s Unpacking libffi-dev:riscv64 (3.4.7-1) ... 4449s Selecting previously unselected package uuid-dev:riscv64. 4449s Preparing to unpack .../29-uuid-dev_2.40.2-14ubuntu1_riscv64.deb ... 4449s Unpacking uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 4450s Selecting previously unselected package libblkid-dev:riscv64. 4451s Preparing to unpack .../30-libblkid-dev_2.40.2-14ubuntu1_riscv64.deb ... 4451s Unpacking libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 4452s Selecting previously unselected package libsepol-dev:riscv64. 4453s Preparing to unpack .../31-libsepol-dev_3.7-1_riscv64.deb ... 4453s Unpacking libsepol-dev:riscv64 (3.7-1) ... 4456s Selecting previously unselected package libpcre2-16-0:riscv64. 4457s Preparing to unpack .../32-libpcre2-16-0_10.45-1_riscv64.deb ... 4457s Unpacking libpcre2-16-0:riscv64 (10.45-1) ... 4458s Selecting previously unselected package libpcre2-32-0:riscv64. 4458s Preparing to unpack .../33-libpcre2-32-0_10.45-1_riscv64.deb ... 4458s Unpacking libpcre2-32-0:riscv64 (10.45-1) ... 4459s Selecting previously unselected package libpcre2-posix3:riscv64. 4459s Preparing to unpack .../34-libpcre2-posix3_10.45-1_riscv64.deb ... 4459s Unpacking libpcre2-posix3:riscv64 (10.45-1) ... 4460s Selecting previously unselected package libpcre2-dev:riscv64. 4460s Preparing to unpack .../35-libpcre2-dev_10.45-1_riscv64.deb ... 4460s Unpacking libpcre2-dev:riscv64 (10.45-1) ... 4466s Selecting previously unselected package libselinux1-dev:riscv64. 4466s Preparing to unpack .../36-libselinux1-dev_3.7-3ubuntu3_riscv64.deb ... 4466s Unpacking libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 4468s Selecting previously unselected package libmount-dev:riscv64. 4468s Preparing to unpack .../37-libmount-dev_2.40.2-14ubuntu1_riscv64.deb ... 4468s Unpacking libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 4469s Selecting previously unselected package libsysprof-capture-4-dev:riscv64. 4469s Preparing to unpack .../38-libsysprof-capture-4-dev_48.0-2_riscv64.deb ... 4469s Unpacking libsysprof-capture-4-dev:riscv64 (48.0-2) ... 4470s Selecting previously unselected package libpkgconf3:riscv64. 4470s Preparing to unpack .../39-libpkgconf3_1.8.1-4_riscv64.deb ... 4470s Unpacking libpkgconf3:riscv64 (1.8.1-4) ... 4471s Selecting previously unselected package pkgconf-bin. 4471s Preparing to unpack .../40-pkgconf-bin_1.8.1-4_riscv64.deb ... 4471s Unpacking pkgconf-bin (1.8.1-4) ... 4472s Selecting previously unselected package pkgconf:riscv64. 4472s Preparing to unpack .../41-pkgconf_1.8.1-4_riscv64.deb ... 4473s Unpacking pkgconf:riscv64 (1.8.1-4) ... 4473s Selecting previously unselected package zlib1g-dev:riscv64. 4474s Preparing to unpack .../42-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_riscv64.deb ... 4474s Unpacking zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 4475s Selecting previously unselected package libgio-2.0-dev:riscv64. 4475s Preparing to unpack .../43-libgio-2.0-dev_2.84.1-1_riscv64.deb ... 4475s Unpacking libgio-2.0-dev:riscv64 (2.84.1-1) ... 4488s Selecting previously unselected package python3-packaging. 4488s Preparing to unpack .../44-python3-packaging_24.2-1_all.deb ... 4488s Unpacking python3-packaging (24.2-1) ... 4489s Selecting previously unselected package libgio-2.0-dev-bin. 4489s Preparing to unpack .../45-libgio-2.0-dev-bin_2.84.1-1_riscv64.deb ... 4489s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 4490s Selecting previously unselected package libglib2.0-bin. 4491s Preparing to unpack .../46-libglib2.0-bin_2.84.1-1_riscv64.deb ... 4491s Unpacking libglib2.0-bin (2.84.1-1) ... 4493s Selecting previously unselected package libglib2.0-dev-bin. 4493s Preparing to unpack .../47-libglib2.0-dev-bin_2.84.1-1_riscv64.deb ... 4493s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 4494s Selecting previously unselected package libglib2.0-dev:riscv64. 4494s Preparing to unpack .../48-libglib2.0-dev_2.84.1-1_riscv64.deb ... 4494s Unpacking libglib2.0-dev:riscv64 (2.84.1-1) ... 4496s Setting up native-architecture (0.2.6) ... 4496s Setting up libgirepository-2.0-0:riscv64 (2.84.1-1) ... 4496s Setting up libglib2.0-bin (2.84.1-1) ... 4496s Setting up libgomp1:riscv64 (15-20250404-0ubuntu1) ... 4496s Setting up libffi-dev:riscv64 (3.4.7-1) ... 4496s Setting up libpcre2-16-0:riscv64 (10.45-1) ... 4496s Setting up libsysprof-capture-4-dev:riscv64 (48.0-2) ... 4496s Setting up libpcre2-32-0:riscv64 (10.45-1) ... 4496s Setting up python3-packaging (24.2-1) ... 4503s Setting up libpkgconf3:riscv64 (1.8.1-4) ... 4503s Setting up uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 4503s Setting up libmpc3:riscv64 (1.3.1-1build2) ... 4503s Setting up libsepol-dev:riscv64 (3.7-1) ... 4503s Setting up pkgconf-bin (1.8.1-4) ... 4503s Setting up libubsan1:riscv64 (15-20250404-0ubuntu1) ... 4503s Setting up zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 4503s Setting up libpcre2-posix3:riscv64 (10.45-1) ... 4503s Setting up gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 4503s Setting up libasan8:riscv64 (15-20250404-0ubuntu1) ... 4503s Setting up libtsan2:riscv64 (15-20250404-0ubuntu1) ... 4503s Setting up libisl23:riscv64 (0.27-1) ... 4503s Setting up libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 4503s Setting up liblsan0:riscv64 (15-20250404-0ubuntu1) ... 4503s Setting up libitm1:riscv64 (15-20250404-0ubuntu1) ... 4503s Setting up libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 4503s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 4513s Setting up girepository-tools:riscv64 (2.84.1-1) ... 4513s Setting up libpcre2-dev:riscv64 (10.45-1) ... 4513s Setting up libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 4514s Setting up cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 4514s Setting up pkgconf:riscv64 (1.8.1-4) ... 4514s Setting up cpp-14 (14.2.0-19ubuntu2) ... 4514s Setting up libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 4514s Setting up cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 4514s Setting up libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 4514s Setting up libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 4514s Setting up libglib2.0-dev-bin (2.84.1-1) ... 4514s Setting up libgio-2.0-dev:riscv64 (2.84.1-1) ... 4514s Setting up gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 4514s Setting up cpp (4:14.2.0-1ubuntu1) ... 4514s Setting up g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 4514s Setting up gcc-14 (14.2.0-19ubuntu2) ... 4514s Setting up gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 4514s Setting up g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 4514s Setting up g++-14 (14.2.0-19ubuntu2) ... 4514s Setting up gcc (4:14.2.0-1ubuntu1) ... 4515s Setting up g++ (4:14.2.0-1ubuntu1) ... 4515s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 4515s Setting up build-essential (12.12ubuntu1) ... 4515s Processing triggers for install-info (7.1.1-1) ... 4521s Processing triggers for libc-bin (2.41-6ubuntu1) ... 4521s Processing triggers for man-db (2.13.0-1) ... 4532s Processing triggers for libglib2.0-0t64:riscv64 (2.84.1-1) ... 4532s No schema files found: doing nothing. 4532s Setting up libglib2.0-dev:riscv64 (2.84.1-1) ... 4598s autopkgtest [17:07:02]: test libglib2.0-dev: [----------------------- 4602s + debian/tests/build 4602s + mode=dynamic 4602s + getopt -o --long static -n debian/tests/build -- 4602s + getopt_temp= -- 4602s + eval set -- -- 4602s + set -- -- 4602s + true 4602s + shift 4602s + break 4602s + mktemp -d 4602s + WORKDIR=/tmp/tmp.LdaslSJHhJ 4602s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 4602s + cd /tmp/tmp.LdaslSJHhJ 4602s + [ -n ] 4602s + CROSS_COMPILE= 4602s + cat 4602s + cat 4602s + cat 4602s + cat 4602s + cat 4602s + cat 4602s + cflags= 4602s + pcflags= 4602s + packages=glib-2.0 4602s + pkg-config --cflags --libs glib-2.0 4602s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 4609s + echo build (glib, dynamic): OK 4609s + [ -x glib-dynamic ] 4609s + foo=bar ./glib-dynamic 4609s build (glib, dynamic): OK 4609s + echo run (glib, dynamic): OK 4609s run (glib, dynamic): OK 4609s + cflags= 4609s + pcflags= 4609s + packages=gobject-2.0 4609s + pkg-config --cflags --libs gobject-2.0 4609s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 4613s build (gobject, dynamic): OK 4613s + echo build (gobject, dynamic): OK 4613s + [ -x gobject-dynamic ] 4613s + foo=bar ./gobject-dynamic 4613s + echo run (gobject, dynamic): OK 4613s + cflags= 4613s run (gobject, dynamic): OK 4613s + pcflags= 4613s + packages=gio-2.0 4613s + pkg-config --cflags --libs gio-2.0 4614s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 4620s build (gio, dynamic): OK 4620s + echo build (gio, dynamic): OK 4620s + [ -x gio-dynamic ] 4620s + foo=bar ./gio-dynamic 4620s + echo run (gio, dynamic): OK 4620s + cflags= 4620s + pcflags= 4620s run (gio, dynamic): OK 4620s + packages=gio-unix-2.0 4620s + pkg-config --cflags --libs gio-unix-2.0 4620s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 4627s build (gio-unix, dynamic): OK 4627s + echo build (gio-unix, dynamic): OK 4627s + [ -x gio-unix-dynamic ] 4627s + foo=bar ./gio-unix-dynamic 4627s run (gio-unix, dynamic): OK 4627s + echo run (gio-unix, dynamic): OK 4627s + cflags= 4627s + pcflags= 4627s + packages=gmodule-2.0 4627s + pkg-config --cflags --libs gmodule-2.0 4628s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 4631s + echo build (gmodule, dynamic): OK 4631s build (gmodule, dynamic): OK 4631s + [ -x gmodule-dynamic ] 4631s + foo=bar ./gmodule-dynamic 4631s run (gmodule, dynamic): OK 4631s + echo run (gmodule, dynamic): OK 4631s + cflags= 4631s + pcflags= 4631s + packages=gthread-2.0 4631s + pkg-config --cflags --libs gthread-2.0 4631s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 4636s build (gthread, dynamic): OK 4636s + echo build (gthread, dynamic): OK 4636s + [ -x gthread-dynamic ] 4636s + foo=bar ./gthread-dynamic 4636s run (gthread, dynamic): OK 4636s + echo run (gthread, dynamic): OK 4636s + rm -rf /tmp/tmp.LdaslSJHhJ 4636s + debian/tests/build-static 4636s + mode=dynamic 4636s + getopt -o --long static -n debian/tests/build -- --static 4636s + getopt_temp= --static -- 4636s + eval set -- --static -- 4636s + set -- --static -- 4636s + true 4636s + mode=static 4636s + shift 4636s + continue 4636s + true 4636s + shift 4636s + break 4636s + mktemp -d 4636s + WORKDIR=/tmp/tmp.KI8F5gttRA 4636s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 4636s + cd /tmp/tmp.KI8F5gttRA 4636s + [ -n ] 4636s + CROSS_COMPILE= 4636s + cat 4636s + cat 4636s + cat 4636s + cat 4636s + cat 4636s + cat 4636s + cflags= 4636s + pcflags= 4636s + packages=glib-2.0 4636s + cflags=-static 4636s + pcflags=--static 4636s + pkg-config --static --cflags --libs glib-2.0 4636s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 4642s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 4642s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4642s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4642s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4655s + echo build (glib, static): OK 4655s build (glib, static): OK 4655s + [ -x glib-static ] 4655s + foo=bar ./glib-static 4655s run (glib, static): OK 4655s + echo run (glib, static): OK 4655s + cflags= 4655s + pcflags= 4655s + packages=gobject-2.0 4655s + cflags=-static 4655s + pcflags=--static 4655s + pkg-config --static --cflags --libs gobject-2.0 4655s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 4661s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 4661s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4661s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4661s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4673s build (gobject, static): OK 4673s + echo build (gobject, static): OK 4673s + [ -x gobject-static ] 4673s + foo=bar ./gobject-static 4673s run (gobject, static): OK 4673s + echo run (gobject, static): OK 4673s + cflags= 4673s + pcflags= 4673s + packages=gio-2.0 4673s + cflags=-static 4673s + pcflags=--static 4673s + continue 4673s + cflags= 4673s + pcflags= 4673s + packages=gio-unix-2.0 4673s + cflags=-static 4673s + pcflags=--static 4673s + continue 4673s + cflags= 4673s + pcflags= 4673s + packages=gmodule-2.0 4673s + cflags=-static 4673s + pcflags=--static 4673s + pkg-config --static --cflags --libs gmodule-2.0 4673s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 4678s /usr/bin/ld: /lib/riscv64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 4678s (.text+0x596): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4679s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 4679s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4679s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4679s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4693s build (gmodule, static): OK 4693s + echo build (gmodule, static): OK 4693s + [ -x gmodule-static ] 4693s + foo=bar ./gmodule-static 4693s + echo run (gmodule, static): OK 4693s + cflags= 4693s + pcflags= 4693s + packages=gthread-2.0 4693s + cflags=-static 4693s + pcflags=--static 4693s run (gmodule, static): OK 4693s + pkg-config --static --cflags --libs gthread-2.0 4693s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 4698s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 4698s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4698s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4698s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 4709s build (gthread, static): OK 4709s + echo build (gthread, static): OK 4709s + [ -x gthread-static ] 4709s + foo=bar ./gthread-static 4710s run (gthread, static): OK 4710s + echo run (gthread, static): OK 4710s + rm -rf /tmp/tmp.KI8F5gttRA 4710s + debian/tests/girepository-tools 4710s + cd /tmp/autopkgtest.AUrJM5/autopkgtest_tmp 4710s + dpkg-architecture -qDEB_HOST_GNU_TYPE 4712s + DEB_HOST_GNU_TYPE=riscv64-linux-gnu 4712s + dpkg-architecture -qDEB_HOST_MULTIARCH 4713s + DEB_HOST_MULTIARCH=riscv64-linux-gnu 4713s + riscv64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 4714s typelib: GLib-2.0 4714s + riscv64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir 4718s + riscv64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 4720s + debian/tests/libgio-2.0-dev-bin 4720s + gdbus-codegen --help 4721s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 4721s [--c-namespace NAMESPACE] [--c-generate-object-manager] 4721s [--c-generate-autocleanup {none,objects,all}] 4721s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 4721s [--generate-rst OUTFILES] [--pragma-once] 4721s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 4721s [--glib-min-required VERSION] 4721s [--glib-max-allowed VERSION] 4721s [--symbol-decorator SYMBOL_DECORATOR] 4721s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 4721s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 4721s [--generate-c-code OUTFILES | --header | --body | 4721s --interface-info-header | --interface-info-body] 4721s [--output FILE | --output-directory OUTDIR] 4721s FILE [FILE ...] 4721s 4721s D-Bus code and documentation generator 4721s 4721s positional arguments: 4721s FILE D-Bus introspection XML file 4721s 4721s options: 4721s -h, --help show this help message and exit 4721s --interface-prefix PREFIX 4721s String to strip from D-Bus interface names for code 4721s and docs 4721s --c-namespace NAMESPACE 4721s The namespace to use for generated C code 4721s --c-generate-object-manager 4721s Generate a GDBusObjectManagerClient subclass when 4721s generating C code 4721s --c-generate-autocleanup {none,objects,all} 4721s Generate autocleanup support 4721s --generate-docbook OUTFILES 4721s Generate Docbook in OUTFILES-org.Project.IFace.xml 4721s --generate-md OUTFILES 4721s Generate Markdown in OUTFILES-org.Project.IFace.md 4721s --generate-rst OUTFILES 4721s Generate reStructuredText in OUTFILES- 4721s org.Project.IFace.rst 4721s --pragma-once Use "pragma once" as the inclusion guard 4721s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 4721s Add annotation (may be used several times) 4721s --glib-min-required VERSION 4721s Minimum version of GLib to be supported by the 4721s outputted code (default: 2.30) 4721s --glib-max-allowed VERSION 4721s Maximum version of GLib to be used by the outputted 4721s code (default: current GLib version) 4721s --symbol-decorator SYMBOL_DECORATOR 4721s Macro used to decorate a symbol in the outputted 4721s header, possibly to export symbols 4721s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 4721s Additional header required for decorator specified by 4721s --symbol-decorator 4721s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 4721s Additional define required for decorator specified by 4721s --symbol-decorator 4721s --generate-c-code OUTFILES 4721s Generate C code in OUTFILES.[ch] 4721s --header Generate C headers 4721s --body Generate C code 4721s --interface-info-header 4721s Generate GDBusInterfaceInfo C header 4721s --interface-info-body 4721s Generate GDBusInterfaceInfo C code 4721s --output FILE Write output into the specified file 4721s --output-directory OUTDIR 4721s Location to output generated files 4722s + glib-compile-resources --version 4722s 2.84.1 4722s + glib-genmarshal --version 4723s glib-genmarshal version 2.84.1 4723s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 4723s You may redistribute copies of glib-genmarshal under the terms of 4723s the GNU General Public License which can be found in the 4723s GLib source package. Sources, examples and contact 4723s information are available at http://www.gtk.org 4723s + glib-gettextize --version 4723s /usr/bin/glib-gettextize (GNU glib) 2.84.1 4723s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 4723s This is free software; see the source for copying conditions. There is NO 4723s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 4723s Written by Ulrich Drepper 4723s + glib-mkenums --version 4725s glib-mkenums version 2.84.1 4725s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 4725s You may redistribute copies of glib-mkenums under the terms of 4725s the GNU General Public License which can be found in the 4725s GLib source package. Sources, examples and contact 4725s information are available at http://www.gtk.org 4725s + gobject-query tree 4725s GObject 4725s + gtester --version 4725s gtester version 2.84.1 4725s + gtester-report --version 4727s gtester-report (GLib utils) version 2.84.1. 4727s + cd /tmp/autopkgtest.AUrJM5/autopkgtest_tmp 4727s + dpkg-architecture -qDEB_HOST_MULTIARCH 4728s + DEB_HOST_MULTIARCH=riscv64-linux-gnu 4728s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 4729s typelib: GLib-2.0 4729s + gi-compile-repository -o GLib.typelib /usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir 4733s + gi-decompile-typelib -o GLib.gir GLib.typelib 4736s autopkgtest [17:09:20]: test libglib2.0-dev: -----------------------] 4740s autopkgtest [17:09:24]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 4740s libglib2.0-dev PASS (superficial) 4744s autopkgtest [17:09:28]: test installed-tests: preparing testbed 5120s autopkgtest [17:15:44]: testbed dpkg architecture: riscv64 5122s autopkgtest [17:15:46]: testbed apt version: 3.0.0 5126s autopkgtest [17:15:50]: @@@@@@@@@@@@@@@@@@@@ test bed setup 5128s autopkgtest [17:15:52]: testbed release detected to be: questing 5136s autopkgtest [17:16:00]: updating testbed package index (apt update) 5141s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 5142s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 5142s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 5142s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 5143s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [164 kB] 5144s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.2 kB] 5145s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2024 kB] 5146s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [181 kB] 5146s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [799 kB] 5147s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8048 B] 5154s Fetched 3331 kB in 12s (269 kB/s) 5182s Reading package lists... 5189s autopkgtest [17:16:53]: upgrading testbed (apt dist-upgrade and autopurge) 5192s Reading package lists... 5195s Building dependency tree... 5195s Reading state information... 5200s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 5200s Starting 2 pkgProblemResolver with broken count: 0 5200s Done 5206s Entering ResolveByKeep 5208s 5210s Calculating upgrade... 5211s The following packages will be upgraded: 5211s fwupd htop libftdi1-2 libfwupd3 libnpth0t64 libperl5.40 libsensors-config 5211s libsensors5 liburcu8t64 nano perl perl-base perl-modules-5.40 tzdata usb.ids 5212s 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5212s Need to get 16.4 MB of archives. 5212s After this operation, 48.1 kB of additional disk space will be used. 5212s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libperl5.40 riscv64 5.40.1-3 [4483 kB] 5214s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl riscv64 5.40.1-3 [262 kB] 5214s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-base riscv64 5.40.1-3 [1845 kB] 5214s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-modules-5.40 all 5.40.1-3 [3217 kB] 5215s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 5215s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 tzdata all 2025b-3ubuntu1 [198 kB] 5215s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors-config all 1:3.6.2-2 [6756 B] 5215s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors5 riscv64 1:3.6.2-2 [30.4 kB] 5215s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 liburcu8t64 riscv64 0.15.2-2 [67.0 kB] 5215s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 5215s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 5215s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 fwupd riscv64 2.0.8-3 [5406 kB] 5216s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libfwupd3 riscv64 2.0.8-3 [140 kB] 5216s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 5216s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libftdi1-2 riscv64 1.5-10 [31.3 kB] 5225s Preconfiguring packages ... 5229s Fetched 16.4 MB in 5s (3531 kB/s) 5233s (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 ... 114049 files and directories currently installed.) 5233s Preparing to unpack .../libperl5.40_5.40.1-3_riscv64.deb ... 5233s Unpacking libperl5.40:riscv64 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 5242s Preparing to unpack .../perl_5.40.1-3_riscv64.deb ... 5242s Unpacking perl (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 5244s Preparing to unpack .../perl-base_5.40.1-3_riscv64.deb ... 5244s Unpacking perl-base (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 5249s Setting up perl-base (5.40.1-3) ... 5253s (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 ... 114049 files and directories currently installed.) 5253s Preparing to unpack .../perl-modules-5.40_5.40.1-3_all.deb ... 5253s Unpacking perl-modules-5.40 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 5263s Preparing to unpack .../libnpth0t64_1.8-3_riscv64.deb ... 5263s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 5264s Setting up libnpth0t64:riscv64 (1.8-3) ... 5267s (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 ... 114049 files and directories currently installed.) 5267s Preparing to unpack .../0-tzdata_2025b-3ubuntu1_all.deb ... 5267s Unpacking tzdata (2025b-3ubuntu1) over (2025b-1ubuntu1) ... 5270s Preparing to unpack .../1-libsensors-config_1%3a3.6.2-2_all.deb ... 5270s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 5271s Preparing to unpack .../2-libsensors5_1%3a3.6.2-2_riscv64.deb ... 5271s Unpacking libsensors5:riscv64 (1:3.6.2-2) over (1:3.6.0-10) ... 5272s Preparing to unpack .../3-liburcu8t64_0.15.2-2_riscv64.deb ... 5272s Unpacking liburcu8t64:riscv64 (0.15.2-2) over (0.15.1-1) ... 5273s Preparing to unpack .../4-nano_8.4-1_riscv64.deb ... 5274s Unpacking nano (8.4-1) over (8.3-1) ... 5275s Preparing to unpack .../5-usb.ids_2025.04.01-1_all.deb ... 5275s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 5277s Preparing to unpack .../6-fwupd_2.0.8-3_riscv64.deb ... 5290s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 5299s Preparing to unpack .../7-libfwupd3_2.0.8-3_riscv64.deb ... 5299s Unpacking libfwupd3:riscv64 (2.0.8-3) over (2.0.7-1) ... 5301s Preparing to unpack .../8-htop_3.4.1-4_riscv64.deb ... 5301s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 5302s Preparing to unpack .../9-libftdi1-2_1.5-10_riscv64.deb ... 5302s Unpacking libftdi1-2:riscv64 (1.5-10) over (1.5-8build1) ... 5303s Setting up liburcu8t64:riscv64 (0.15.2-2) ... 5303s Setting up htop (3.4.1-4) ... 5303s Setting up libsensors-config (1:3.6.2-2) ... 5303s Installing new version of config file /etc/sensors3.conf ... 5303s Setting up libfwupd3:riscv64 (2.0.8-3) ... 5303s Setting up tzdata (2025b-3ubuntu1) ... 5308s 5308s Current default time zone: 'Etc/UTC' 5308s Local time is now: Fri May 2 17:18:52 UTC 2025. 5308s Universal Time is now: Fri May 2 17:18:52 UTC 2025. 5308s Run 'dpkg-reconfigure tzdata' if you wish to change it. 5308s 5309s Setting up libftdi1-2:riscv64 (1.5-10) ... 5309s Setting up usb.ids (2025.04.01-1) ... 5309s Setting up libsensors5:riscv64 (1:3.6.2-2) ... 5309s Setting up nano (8.4-1) ... 5309s Installing new version of config file /etc/nanorc ... 5309s Setting up perl-modules-5.40 (5.40.1-3) ... 5309s Setting up fwupd (2.0.8-3) ... 5332s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 5333s fwupd.service is a disabled or a static unit not running, not starting it. 5336s Setting up libperl5.40:riscv64 (5.40.1-3) ... 5336s Setting up perl (5.40.1-3) ... 5336s Processing triggers for install-info (7.1.1-1) ... 5341s Processing triggers for libc-bin (2.41-6ubuntu1) ... 5341s Processing triggers for man-db (2.13.0-1) ... 5351s Processing triggers for dbus (1.16.2-2ubuntu1) ... 5365s Reading package lists... 5368s Building dependency tree... 5368s Reading state information... 5373s Starting pkgProblemResolver with broken count: 0 5373s Starting 2 pkgProblemResolver with broken count: 0 5373s Done 5377s Solving dependencies... 5380s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5383s autopkgtest [17:20:07]: rebooting testbed after setup commands that affected boot 5395s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5398s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5431s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5464s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5497s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5530s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5562s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5595s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 5658s Reading package lists... 5662s Building dependency tree... 5662s Reading state information... 5666s Starting pkgProblemResolver with broken count: 0 5666s Starting 2 pkgProblemResolver with broken count: 0 5666s Done 5672s The following NEW packages will be installed: 5672s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 5672s gnome-desktop-testing libfontenc1 libgbm1 libgio-2.0-dev-bin 5672s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 5672s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 5672s libpixman-1-0 libsm6 libvulkan1 libwayland-server0 libx11-xcb1 libxaw7 5672s libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 5672s libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 5672s libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium 5672s native-architecture python3-dbusmock python3-packaging tzdata-legacy 5672s x11-common x11-xkb-utils xserver-common xvfb 5673s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 5673s Need to get 15.2 MB of archives. 5673s After this operation, 68.3 MB of additional disk space will be used. 5673s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 dbus-x11 riscv64 1.16.2-2ubuntu1 [23.8 kB] 5673s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 desktop-file-utils riscv64 0.28-1 [52.2 kB] 5673s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 gir1.2-glib-2.0-dev riscv64 2.84.1-1 [862 kB] 5674s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 native-architecture all 0.2.6 [2140 B] 5674s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libgirepository-2.0-0 riscv64 2.84.1-1 [118 kB] 5674s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 girepository-tools riscv64 2.84.1-1 [121 kB] 5674s Get:7 http://ftpmaster.internal/ubuntu questing/universe riscv64 gnome-desktop-testing riscv64 2021.1-4 [16.1 kB] 5674s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libfontenc1 riscv64 1:1.1.8-1build1 [14.2 kB] 5674s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 libwayland-server0 riscv64 1.23.1-3 [37.9 kB] 5674s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 libx11-xcb1 riscv64 2:1.8.10-2 [7884 B] 5674s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-dri3-0 riscv64 1.17.0-2 [7548 B] 5674s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-present0 riscv64 1.17.0-2 [6126 B] 5674s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-randr0 riscv64 1.17.0-2 [18.9 kB] 5674s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-sync1 riscv64 1.17.0-2 [9644 B] 5674s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-xfixes0 riscv64 1.17.0-2 [10.6 kB] 5674s Get:16 http://ftpmaster.internal/ubuntu questing/main riscv64 libxshmfence1 riscv64 1.3-1build5 [4704 B] 5674s Get:17 http://ftpmaster.internal/ubuntu questing/main riscv64 mesa-libgallium riscv64 25.0.3-1ubuntu2 [8170 kB] 5676s Get:18 http://ftpmaster.internal/ubuntu questing/main riscv64 libgbm1 riscv64 25.0.3-1ubuntu2 [36.8 kB] 5676s Get:19 http://ftpmaster.internal/ubuntu questing/main riscv64 python3-packaging all 24.2-1 [51.5 kB] 5676s Get:20 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev-bin riscv64 2.84.1-1 [133 kB] 5676s Get:21 http://ftpmaster.internal/ubuntu questing/main riscv64 libvulkan1 riscv64 1.4.304.0-1 [145 kB] 5676s Get:22 http://ftpmaster.internal/ubuntu questing/main riscv64 libgl1-mesa-dri riscv64 25.0.3-1ubuntu2 [34.1 kB] 5676s Get:23 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-bin riscv64 2.84.1-1 [97.7 kB] 5676s Get:24 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-dev-bin riscv64 2.84.1-1 [18.1 kB] 5676s Get:25 http://ftpmaster.internal/ubuntu questing/universe riscv64 python3-dbusmock all 0.34.3-1 [92.4 kB] 5676s Get:26 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 tzdata-legacy all 2025b-3ubuntu1 [99.3 kB] 5676s Get:27 http://ftpmaster.internal/ubuntu questing/universe riscv64 libglib2.0-tests riscv64 2.84.1-1 [2356 kB] 5677s Get:28 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-glx0 riscv64 1.17.0-2 [26.0 kB] 5677s Get:29 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-shm0 riscv64 1.17.0-2 [5950 B] 5677s Get:30 http://ftpmaster.internal/ubuntu questing/main riscv64 libxxf86vm1 riscv64 1:1.1.4-1build4 [10.3 kB] 5677s Get:31 http://ftpmaster.internal/ubuntu questing/main riscv64 libglx-mesa0 riscv64 25.0.3-1ubuntu2 [171 kB] 5677s Get:32 http://ftpmaster.internal/ubuntu questing/main riscv64 x11-common all 1:7.7+23ubuntu4 [21.8 kB] 5677s Get:33 http://ftpmaster.internal/ubuntu questing/main riscv64 libice6 riscv64 2:1.1.1-1 [44.2 kB] 5677s Get:34 http://ftpmaster.internal/ubuntu questing/main riscv64 libpixman-1-0 riscv64 0.44.0-3 [206 kB] 5677s Get:35 http://ftpmaster.internal/ubuntu questing/main riscv64 libsm6 riscv64 2:1.2.4-1 [17.5 kB] 5677s Get:36 http://ftpmaster.internal/ubuntu questing/main riscv64 libxt6t64 riscv64 1:1.2.1-1.2build1 [176 kB] 5677s Get:37 http://ftpmaster.internal/ubuntu questing/main riscv64 libxmu6 riscv64 2:1.1.3-3build2 [49.5 kB] 5677s Get:38 http://ftpmaster.internal/ubuntu questing/main riscv64 libxpm4 riscv64 1:3.5.17-1build2 [38.2 kB] 5677s Get:39 http://ftpmaster.internal/ubuntu questing/main riscv64 libxaw7 riscv64 2:1.0.16-1 [192 kB] 5677s Get:40 http://ftpmaster.internal/ubuntu questing/main riscv64 libxfont2 riscv64 1:2.0.6-1build1 [99.8 kB] 5677s Get:41 http://ftpmaster.internal/ubuntu questing/main riscv64 libxkbfile1 riscv64 1:1.1.0-1build4 [72.2 kB] 5677s Get:42 http://ftpmaster.internal/ubuntu questing/main riscv64 libxrender1 riscv64 1:0.9.10-1.1build1 [20.1 kB] 5677s Get:43 http://ftpmaster.internal/ubuntu questing/main riscv64 libxrandr2 riscv64 2:1.5.4-1 [20.8 kB] 5677s Get:44 http://ftpmaster.internal/ubuntu questing/main riscv64 x11-xkb-utils riscv64 7.7+9 [174 kB] 5677s Get:45 http://ftpmaster.internal/ubuntu questing/main riscv64 xserver-common all 2:21.1.16-1ubuntu1 [34.4 kB] 5677s Get:46 http://ftpmaster.internal/ubuntu questing/main riscv64 libglvnd0 riscv64 1.7.0-1build1 [98.9 kB] 5677s Get:47 http://ftpmaster.internal/ubuntu questing/main riscv64 libglx0 riscv64 1.7.0-1build1 [32.5 kB] 5678s Get:48 http://ftpmaster.internal/ubuntu questing/main riscv64 libgl1 riscv64 1.7.0-1build1 [138 kB] 5678s Get:49 http://ftpmaster.internal/ubuntu questing/universe riscv64 xvfb riscv64 2:21.1.16-1ubuntu1 [971 kB] 5691s Fetched 15.2 MB in 6s (2654 kB/s) 5692s Selecting previously unselected package dbus-x11. 5695s (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 ... 114049 files and directories currently installed.) 5695s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_riscv64.deb ... 5695s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 5695s Selecting previously unselected package desktop-file-utils. 5696s Preparing to unpack .../01-desktop-file-utils_0.28-1_riscv64.deb ... 5696s Unpacking desktop-file-utils (0.28-1) ... 5697s Selecting previously unselected package gir1.2-glib-2.0-dev:riscv64. 5697s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.84.1-1_riscv64.deb ... 5697s Unpacking gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 5700s Selecting previously unselected package native-architecture. 5701s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 5701s Unpacking native-architecture (0.2.6) ... 5701s Selecting previously unselected package libgirepository-2.0-0:riscv64. 5702s Preparing to unpack .../04-libgirepository-2.0-0_2.84.1-1_riscv64.deb ... 5702s Unpacking libgirepository-2.0-0:riscv64 (2.84.1-1) ... 5703s Selecting previously unselected package girepository-tools:riscv64. 5703s Preparing to unpack .../05-girepository-tools_2.84.1-1_riscv64.deb ... 5703s Unpacking girepository-tools:riscv64 (2.84.1-1) ... 5704s Selecting previously unselected package gnome-desktop-testing. 5704s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_riscv64.deb ... 5704s Unpacking gnome-desktop-testing (2021.1-4) ... 5705s Selecting previously unselected package libfontenc1:riscv64. 5705s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_riscv64.deb ... 5705s Unpacking libfontenc1:riscv64 (1:1.1.8-1build1) ... 5706s Selecting previously unselected package libwayland-server0:riscv64. 5706s Preparing to unpack .../08-libwayland-server0_1.23.1-3_riscv64.deb ... 5706s Unpacking libwayland-server0:riscv64 (1.23.1-3) ... 5707s Selecting previously unselected package libx11-xcb1:riscv64. 5707s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.10-2_riscv64.deb ... 5707s Unpacking libx11-xcb1:riscv64 (2:1.8.10-2) ... 5708s Selecting previously unselected package libxcb-dri3-0:riscv64. 5708s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2_riscv64.deb ... 5708s Unpacking libxcb-dri3-0:riscv64 (1.17.0-2) ... 5709s Selecting previously unselected package libxcb-present0:riscv64. 5710s Preparing to unpack .../11-libxcb-present0_1.17.0-2_riscv64.deb ... 5710s Unpacking libxcb-present0:riscv64 (1.17.0-2) ... 5711s Selecting previously unselected package libxcb-randr0:riscv64. 5711s Preparing to unpack .../12-libxcb-randr0_1.17.0-2_riscv64.deb ... 5711s Unpacking libxcb-randr0:riscv64 (1.17.0-2) ... 5712s Selecting previously unselected package libxcb-sync1:riscv64. 5712s Preparing to unpack .../13-libxcb-sync1_1.17.0-2_riscv64.deb ... 5712s Unpacking libxcb-sync1:riscv64 (1.17.0-2) ... 5713s Selecting previously unselected package libxcb-xfixes0:riscv64. 5713s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2_riscv64.deb ... 5713s Unpacking libxcb-xfixes0:riscv64 (1.17.0-2) ... 5714s Selecting previously unselected package libxshmfence1:riscv64. 5714s Preparing to unpack .../15-libxshmfence1_1.3-1build5_riscv64.deb ... 5714s Unpacking libxshmfence1:riscv64 (1.3-1build5) ... 5715s Selecting previously unselected package mesa-libgallium:riscv64. 5716s Preparing to unpack .../16-mesa-libgallium_25.0.3-1ubuntu2_riscv64.deb ... 5716s Unpacking mesa-libgallium:riscv64 (25.0.3-1ubuntu2) ... 5725s Selecting previously unselected package libgbm1:riscv64. 5725s Preparing to unpack .../17-libgbm1_25.0.3-1ubuntu2_riscv64.deb ... 5725s Unpacking libgbm1:riscv64 (25.0.3-1ubuntu2) ... 5726s Selecting previously unselected package python3-packaging. 5726s Preparing to unpack .../18-python3-packaging_24.2-1_all.deb ... 5726s Unpacking python3-packaging (24.2-1) ... 5727s Selecting previously unselected package libgio-2.0-dev-bin. 5727s Preparing to unpack .../19-libgio-2.0-dev-bin_2.84.1-1_riscv64.deb ... 5727s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 5728s Selecting previously unselected package libvulkan1:riscv64. 5729s Preparing to unpack .../20-libvulkan1_1.4.304.0-1_riscv64.deb ... 5729s Unpacking libvulkan1:riscv64 (1.4.304.0-1) ... 5729s Selecting previously unselected package libgl1-mesa-dri:riscv64. 5730s Preparing to unpack .../21-libgl1-mesa-dri_25.0.3-1ubuntu2_riscv64.deb ... 5730s Unpacking libgl1-mesa-dri:riscv64 (25.0.3-1ubuntu2) ... 5731s Selecting previously unselected package libglib2.0-bin. 5731s Preparing to unpack .../22-libglib2.0-bin_2.84.1-1_riscv64.deb ... 5731s Unpacking libglib2.0-bin (2.84.1-1) ... 5732s Selecting previously unselected package libglib2.0-dev-bin. 5733s Preparing to unpack .../23-libglib2.0-dev-bin_2.84.1-1_riscv64.deb ... 5733s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 5733s Selecting previously unselected package python3-dbusmock. 5734s Preparing to unpack .../24-python3-dbusmock_0.34.3-1_all.deb ... 5734s Unpacking python3-dbusmock (0.34.3-1) ... 5735s Selecting previously unselected package tzdata-legacy. 5735s Preparing to unpack .../25-tzdata-legacy_2025b-3ubuntu1_all.deb ... 5735s Unpacking tzdata-legacy (2025b-3ubuntu1) ... 5737s Selecting previously unselected package libglib2.0-tests. 5738s Preparing to unpack .../26-libglib2.0-tests_2.84.1-1_riscv64.deb ... 5738s Unpacking libglib2.0-tests (2.84.1-1) ... 5744s Selecting previously unselected package libxcb-glx0:riscv64. 5744s Preparing to unpack .../27-libxcb-glx0_1.17.0-2_riscv64.deb ... 5744s Unpacking libxcb-glx0:riscv64 (1.17.0-2) ... 5745s Selecting previously unselected package libxcb-shm0:riscv64. 5745s Preparing to unpack .../28-libxcb-shm0_1.17.0-2_riscv64.deb ... 5745s Unpacking libxcb-shm0:riscv64 (1.17.0-2) ... 5746s Selecting previously unselected package libxxf86vm1:riscv64. 5746s Preparing to unpack .../29-libxxf86vm1_1%3a1.1.4-1build4_riscv64.deb ... 5746s Unpacking libxxf86vm1:riscv64 (1:1.1.4-1build4) ... 5747s Selecting previously unselected package libglx-mesa0:riscv64. 5747s Preparing to unpack .../30-libglx-mesa0_25.0.3-1ubuntu2_riscv64.deb ... 5747s Unpacking libglx-mesa0:riscv64 (25.0.3-1ubuntu2) ... 5748s Selecting previously unselected package x11-common. 5749s Preparing to unpack .../31-x11-common_1%3a7.7+23ubuntu4_all.deb ... 5749s Unpacking x11-common (1:7.7+23ubuntu4) ... 5749s Selecting previously unselected package libice6:riscv64. 5750s Preparing to unpack .../32-libice6_2%3a1.1.1-1_riscv64.deb ... 5750s Unpacking libice6:riscv64 (2:1.1.1-1) ... 5750s Selecting previously unselected package libpixman-1-0:riscv64. 5751s Preparing to unpack .../33-libpixman-1-0_0.44.0-3_riscv64.deb ... 5751s Unpacking libpixman-1-0:riscv64 (0.44.0-3) ... 5752s Selecting previously unselected package libsm6:riscv64. 5752s Preparing to unpack .../34-libsm6_2%3a1.2.4-1_riscv64.deb ... 5752s Unpacking libsm6:riscv64 (2:1.2.4-1) ... 5753s Selecting previously unselected package libxt6t64:riscv64. 5753s Preparing to unpack .../35-libxt6t64_1%3a1.2.1-1.2build1_riscv64.deb ... 5753s Unpacking libxt6t64:riscv64 (1:1.2.1-1.2build1) ... 5754s Selecting previously unselected package libxmu6:riscv64. 5754s Preparing to unpack .../36-libxmu6_2%3a1.1.3-3build2_riscv64.deb ... 5754s Unpacking libxmu6:riscv64 (2:1.1.3-3build2) ... 5755s Selecting previously unselected package libxpm4:riscv64. 5755s Preparing to unpack .../37-libxpm4_1%3a3.5.17-1build2_riscv64.deb ... 5755s Unpacking libxpm4:riscv64 (1:3.5.17-1build2) ... 5756s Selecting previously unselected package libxaw7:riscv64. 5756s Preparing to unpack .../38-libxaw7_2%3a1.0.16-1_riscv64.deb ... 5756s Unpacking libxaw7:riscv64 (2:1.0.16-1) ... 5757s Selecting previously unselected package libxfont2:riscv64. 5757s Preparing to unpack .../39-libxfont2_1%3a2.0.6-1build1_riscv64.deb ... 5757s Unpacking libxfont2:riscv64 (1:2.0.6-1build1) ... 5758s Selecting previously unselected package libxkbfile1:riscv64. 5759s Preparing to unpack .../40-libxkbfile1_1%3a1.1.0-1build4_riscv64.deb ... 5759s Unpacking libxkbfile1:riscv64 (1:1.1.0-1build4) ... 5759s Selecting previously unselected package libxrender1:riscv64. 5760s Preparing to unpack .../41-libxrender1_1%3a0.9.10-1.1build1_riscv64.deb ... 5760s Unpacking libxrender1:riscv64 (1:0.9.10-1.1build1) ... 5761s Selecting previously unselected package libxrandr2:riscv64. 5761s Preparing to unpack .../42-libxrandr2_2%3a1.5.4-1_riscv64.deb ... 5761s Unpacking libxrandr2:riscv64 (2:1.5.4-1) ... 5762s Selecting previously unselected package x11-xkb-utils. 5762s Preparing to unpack .../43-x11-xkb-utils_7.7+9_riscv64.deb ... 5762s Unpacking x11-xkb-utils (7.7+9) ... 5763s Selecting previously unselected package xserver-common. 5763s Preparing to unpack .../44-xserver-common_2%3a21.1.16-1ubuntu1_all.deb ... 5763s Unpacking xserver-common (2:21.1.16-1ubuntu1) ... 5764s Selecting previously unselected package libglvnd0:riscv64. 5764s Preparing to unpack .../45-libglvnd0_1.7.0-1build1_riscv64.deb ... 5764s Unpacking libglvnd0:riscv64 (1.7.0-1build1) ... 5765s Selecting previously unselected package libglx0:riscv64. 5766s Preparing to unpack .../46-libglx0_1.7.0-1build1_riscv64.deb ... 5766s Unpacking libglx0:riscv64 (1.7.0-1build1) ... 5766s Selecting previously unselected package libgl1:riscv64. 5767s Preparing to unpack .../47-libgl1_1.7.0-1build1_riscv64.deb ... 5767s Unpacking libgl1:riscv64 (1.7.0-1build1) ... 5768s Selecting previously unselected package xvfb. 5768s Preparing to unpack .../48-xvfb_2%3a21.1.16-1ubuntu1_riscv64.deb ... 5768s Unpacking xvfb (2:21.1.16-1ubuntu1) ... 5770s Setting up gnome-desktop-testing (2021.1-4) ... 5770s Setting up libxcb-dri3-0:riscv64 (1.17.0-2) ... 5770s Setting up libpixman-1-0:riscv64 (0.44.0-3) ... 5770s Setting up libwayland-server0:riscv64 (1.23.1-3) ... 5770s Setting up libx11-xcb1:riscv64 (2:1.8.10-2) ... 5770s Setting up native-architecture (0.2.6) ... 5770s Setting up libxcb-xfixes0:riscv64 (1.17.0-2) ... 5770s Setting up desktop-file-utils (0.28-1) ... 5770s Setting up libxpm4:riscv64 (1:3.5.17-1build2) ... 5770s Setting up libxrender1:riscv64 (1:0.9.10-1.1build1) ... 5770s Setting up libgirepository-2.0-0:riscv64 (2.84.1-1) ... 5770s Setting up libglvnd0:riscv64 (1.7.0-1build1) ... 5770s Setting up libxcb-glx0:riscv64 (1.17.0-2) ... 5770s Setting up x11-common (1:7.7+23ubuntu4) ... 5787s Setting up libglib2.0-bin (2.84.1-1) ... 5787s Setting up libxcb-shm0:riscv64 (1.17.0-2) ... 5787s Setting up python3-dbusmock (0.34.3-1) ... 5794s Setting up tzdata-legacy (2025b-3ubuntu1) ... 5794s Setting up libxxf86vm1:riscv64 (1:1.1.4-1build4) ... 5794s Setting up libxcb-present0:riscv64 (1.17.0-2) ... 5794s Setting up libfontenc1:riscv64 (1:1.1.8-1build1) ... 5794s Setting up python3-packaging (24.2-1) ... 5799s Setting up libxcb-sync1:riscv64 (1.17.0-2) ... 5799s Setting up libxrandr2:riscv64 (2:1.5.4-1) ... 5799s Setting up libvulkan1:riscv64 (1.4.304.0-1) ... 5799s Setting up gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 5799s Setting up libxshmfence1:riscv64 (1.3-1build5) ... 5799s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 5799s Setting up libxcb-randr0:riscv64 (1.17.0-2) ... 5799s Setting up libxkbfile1:riscv64 (1:1.1.0-1build4) ... 5799s Setting up libxfont2:riscv64 (1:2.0.6-1build1) ... 5800s Setting up libice6:riscv64 (2:1.1.1-1) ... 5800s Setting up mesa-libgallium:riscv64 (25.0.3-1ubuntu2) ... 5800s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 5810s Setting up girepository-tools:riscv64 (2.84.1-1) ... 5810s Setting up libgbm1:riscv64 (25.0.3-1ubuntu2) ... 5810s Setting up libgl1-mesa-dri:riscv64 (25.0.3-1ubuntu2) ... 5811s Setting up libsm6:riscv64 (2:1.2.4-1) ... 5811s Setting up libglib2.0-dev-bin (2.84.1-1) ... 5811s Setting up libglx-mesa0:riscv64 (25.0.3-1ubuntu2) ... 5811s Setting up libglx0:riscv64 (1.7.0-1build1) ... 5811s Setting up libgl1:riscv64 (1.7.0-1build1) ... 5811s Setting up libxt6t64:riscv64 (1:1.2.1-1.2build1) ... 5811s Setting up libglib2.0-tests (2.84.1-1) ... 5816s Setting up libxmu6:riscv64 (2:1.1.3-3build2) ... 5816s Setting up libxaw7:riscv64 (2:1.0.16-1) ... 5816s Setting up x11-xkb-utils (7.7+9) ... 5816s Setting up xserver-common (2:21.1.16-1ubuntu1) ... 5816s Setting up xvfb (2:21.1.16-1ubuntu1) ... 5816s Processing triggers for man-db (2.13.0-1) ... 5823s Processing triggers for libc-bin (2.41-6ubuntu1) ... 5877s autopkgtest [17:28:21]: test installed-tests: [----------------------- 5881s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 5881s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 5881s group entry: ubuntu:x:1000: 5881s Environment: 5881s ADTTMP=/tmp/autopkgtest.AUrJM5/autopkgtest_tmp 5881s ADT_ARTIFACTS=/tmp/autopkgtest.AUrJM5/installed-tests-artifacts 5881s ADT_TEST_TRIGGERS=tzdata/2025b-3ubuntu1 5881s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.AUrJM5/installed-tests-artifacts 5881s AUTOPKGTEST_TESTBED_ARCH=riscv64 5881s AUTOPKGTEST_TEST_ARCH=riscv64 5881s AUTOPKGTEST_TMP=/tmp/autopkgtest.AUrJM5/autopkgtest_tmp 5881s DEBIAN_FRONTEND=noninteractive 5881s DEB_BUILD_OPTIONS=parallel=2 5881s GIO_USE_VFS=local 5881s GIO_USE_VOLUME_MONITOR=unix 5881s HOME=/home/ubuntu 5881s LANG=C.UTF-8 5881s LOGNAME=ubuntu 5881s MAIL=/var/mail/ubuntu 5881s OLDPWD=/home/ubuntu 5881s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 5881s PWD=/tmp/autopkgtest.AUrJM5/build.Y5B/src 5881s SHELL=/bin/bash 5881s SHLVL=1 5881s SUDO_COMMAND=/var/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.AUrJM5/wrapper.sh --artifacts=/tmp/autopkgtest.AUrJM5/installed-tests-artifacts --chdir=/tmp/autopkgtest.AUrJM5/build.Y5B/src --env=AUTOPKGTEST_TESTBED_ARCH=riscv64 --env=AUTOPKGTEST_TEST_ARCH=riscv64 --env=DEB_BUILD_OPTIONS=parallel=2 --env=DEBIAN_FRONTEND=noninteractive --env=LANG=C.UTF-8 --unset-env=LANGUAGE --unset-env=LC_ADDRESS --unset-env=LC_ALL --unset-env=LC_COLLATE --unset-env=LC_CTYPE --unset-env=LC_IDENTIFICATION --unset-env=LC_MEASUREMENT --unset-env=LC_MESSAGES --unset-env=LC_MONETARY --unset-env=LC_NAME --unset-env=LC_NUMERIC --unset-env=LC_PAPER --unset-env=LC_TELEPHONE --unset-env=LC_TIME --script-pid-file=/tmp/autopkgtest_script_pid --source-profile --stderr=/tmp/autopkgtest.AUrJM5/installed-tests-stderr --stdout=/tmp/autopkgtest.AUrJM5/installed-tests-stdout --tmp=/tmp/autopkgtest.AUrJM5/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=tzdata/2025b-3ubuntu1 --make-executable=/tmp/autopkgtest.AUrJM5/build.Y5B/src/debian/tests/installed-tests -- /tmp/autopkgtest.AUrJM5/build.Y5B/src/debian/tests/installed-tests 5881s SUDO_GID=1000 5881s SUDO_HOME=/home/ubuntu 5881s SUDO_UID=1000 5881s SUDO_USER=ubuntu 5881s TERM=linux 5881s USER=ubuntu 5881s XDG_RUNTIME_DIR=/tmp/autopkgtest.AUrJM5/autopkgtest_tmp 5881s http_proxy=http://squid.internal:3128/ 5881s https_proxy=http://squid.internal:3128/ 5881s 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 5885s run-with-locales: de_DE=ISO-8859-1... 5885s Character set: ISO-8859-1 5885s Source file: de_DE 5885s Output: /tmp/tmp.dnz4FM5Fny/de_DE 5896s run-with-locales: de_DE.utf8... 5896s Character set: UTF-8 5896s Source file: de_DE 5896s Output: /tmp/tmp.dnz4FM5Fny/de_DE.utf8 5924s run-with-locales: de_DE@euro.utf8... 5924s Character set: UTF-8 5924s Source file: de_DE@euro 5924s Output: /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8 5954s run-with-locales: el_GR.utf8... 5954s Character set: UTF-8 5954s Source file: el_GR 5954s Output: /tmp/tmp.dnz4FM5Fny/el_GR.utf8 5982s run-with-locales: en_GB=ISO-8859-1... 5982s Character set: ISO-8859-1 5982s Source file: en_GB 5982s Output: /tmp/tmp.dnz4FM5Fny/en_GB 5994s run-with-locales: en_GB.utf8... 5994s Character set: UTF-8 5994s Source file: en_GB 5994s Output: /tmp/tmp.dnz4FM5Fny/en_GB.utf8 6027s run-with-locales: en_US=ISO-8859-1... 6027s Character set: ISO-8859-1 6027s Source file: en_US 6027s Output: /tmp/tmp.dnz4FM5Fny/en_US 6038s run-with-locales: en_US.utf8... 6038s Character set: UTF-8 6038s Source file: en_US 6038s Output: /tmp/tmp.dnz4FM5Fny/en_US.utf8 6065s run-with-locales: es_ES.utf8... 6065s Character set: UTF-8 6065s Source file: es_ES 6065s Output: /tmp/tmp.dnz4FM5Fny/es_ES.utf8 6094s run-with-locales: fa_IR=UTF-8... 6094s Character set: UTF-8 6094s Source file: fa_IR 6094s Output: /tmp/tmp.dnz4FM5Fny/fa_IR 6122s run-with-locales: fa_IR.utf8... 6122s Character set: UTF-8 6122s Source file: fa_IR 6122s Output: /tmp/tmp.dnz4FM5Fny/fa_IR.utf8 6148s run-with-locales: fr_FR.utf8... 6148s Character set: UTF-8 6148s Source file: fr_FR 6148s Output: /tmp/tmp.dnz4FM5Fny/fr_FR.utf8 6177s run-with-locales: hr_HR.utf8... 6177s Character set: UTF-8 6177s Source file: hr_HR 6177s Output: /tmp/tmp.dnz4FM5Fny/hr_HR.utf8 6206s run-with-locales: ja_JP.utf8... 6206s Character set: UTF-8 6206s Source file: ja_JP 6206s Output: /tmp/tmp.dnz4FM5Fny/ja_JP.utf8 6227s run-with-locales: ja_JP.EUC-JP... 6227s Character set: EUC-JP 6227s Source file: ja_JP 6227s Output: /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp 6238s run-with-locales: lt_LT.utf8... 6238s Character set: UTF-8 6238s Source file: lt_LT 6238s Output: /tmp/tmp.dnz4FM5Fny/lt_LT.utf8 6270s run-with-locales: pl_PL=ISO-8859-2... 6270s Character set: ISO-8859-2 6270s Source file: pl_PL 6270s Output: /tmp/tmp.dnz4FM5Fny/pl_PL 6282s run-with-locales: pl_PL.ISO-8859-2... 6282s Character set: ISO-8859-2 6282s Source file: pl_PL 6282s Output: /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592 6295s run-with-locales: pl_PL.utf8... 6295s Character set: UTF-8 6295s Source file: pl_PL 6295s Output: /tmp/tmp.dnz4FM5Fny/pl_PL.utf8 6329s run-with-locales: ru_RU=ISO-8859-5... 6329s Character set: ISO-8859-5 6329s Source file: ru_RU 6329s Output: /tmp/tmp.dnz4FM5Fny/ru_RU 6340s run-with-locales: ru_RU.utf8... 6340s Character set: UTF-8 6340s Source file: ru_RU 6340s Output: /tmp/tmp.dnz4FM5Fny/ru_RU.utf8 6367s run-with-locales: sr_RS=UTF-8... 6367s Character set: UTF-8 6367s Source file: sr_RS 6367s Output: /tmp/tmp.dnz4FM5Fny/sr_RS 6399s run-with-locales: sr_RS@latin=UTF-8... 6399s Character set: UTF-8 6399s Source file: sr_RS@latin 6399s Output: /tmp/tmp.dnz4FM5Fny/sr_RS@latin 6427s run-with-locales: sv_SE=ISO-8859-1... 6427s Character set: ISO-8859-1 6427s Source file: sv_SE 6427s Output: /tmp/tmp.dnz4FM5Fny/sv_SE 6438s run-with-locales: sv_SE.utf8... 6438s Character set: UTF-8 6438s Source file: sv_SE 6438s Output: /tmp/tmp.dnz4FM5Fny/sv_SE.utf8 6468s run-with-locales: tr_TR=ISO-8859-9... 6468s Character set: ISO-8859-9 6468s Source file: tr_TR 6468s Output: /tmp/tmp.dnz4FM5Fny/tr_TR 6478s run-with-locales: tr_TR.utf8... 6478s Character set: UTF-8 6478s Source file: tr_TR 6478s Output: /tmp/tmp.dnz4FM5Fny/tr_TR.utf8 6507s run-with-locales: tt_RU=UTF-8... 6507s Character set: UTF-8 6507s Source file: tt_RU 6507s Output: /tmp/tmp.dnz4FM5Fny/tt_RU 6534s run-with-locales: tt_RU.utf8... 6534s Character set: UTF-8 6534s Source file: tt_RU 6534s Output: /tmp/tmp.dnz4FM5Fny/tt_RU.utf8 6561s run-with-locales: tt_RU@iqtelif=UTF-8... 6561s Character set: UTF-8 6561s Source file: tt_RU@iqtelif 6561s Output: /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif 6587s /tmp/tmp.dnz4FM5Fny 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/lt_LT.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.eucjp/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/tt_RU/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/tt_RU.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/ja_JP.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/pl_PL/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/sv_SE 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/sv_SE/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/fa_IR 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/fa_IR/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/ru_RU.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/es_ES.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/sr_RS@latin/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/fa_IR.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/tr_TR.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/tr_TR 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/tr_TR/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/en_GB.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/el_GR.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/en_US.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/de_DE 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/de_DE/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/sr_RS 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/sr_RS/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/en_GB 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/en_GB/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/ru_RU 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/ru_RU/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/en_US 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/en_US/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/hr_HR.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/de_DE@euro.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/sv_SE.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/fr_FR.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/de_DE.utf8/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/tt_RU@iqtelif/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.iso88592/LC_COLLATE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_NAME 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_NUMERIC 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_MONETARY 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_ADDRESS 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_TIME 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_MEASUREMENT 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_PAPER 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_CTYPE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_TELEPHONE 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_IDENTIFICATION 6587s /tmp/tmp.dnz4FM5Fny/pl_PL.utf8/LC_COLLATE 6588s 1..323 6588s # Running test: glib/sleepy-stream.test 6588s TAP version 14 6588s # random seed: R02S07cb96d2451fbed48233d3d61eca30a7 6588s 1..2 6588s # Start of filter-stream tests 6588s ok 1 /filter-stream/input 6588s ok 2 /filter-stream/async 6588s # End of filter-stream tests 6588s ok - glib/sleepy-stream.test 6588s # Running test: glib/portal-support-snap.test 6588s TAP version 14 6588s # random seed: R02Sf743bc8734f99c04e9479908f4a9968c 6588s 1..7 6588s # Start of portal-support tests 6588s # Start of snap tests 6588s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/home 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/cache 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/system-config2 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/config 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/system-data2 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/data 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/state 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl/.dirs/runtime 6588s # Created snap.yaml in /tmp/test_portal-support-snap_LPZC62/meta/snap.yaml 6588s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62/portal-support/snap/no-snapctl: No such file or directory 6588s ok 1 /portal-support/snap/no-snapctl 6588s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/home 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/cache 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/system-config2 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/config 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/system-data2 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/data 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/state 6588s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/runtime 6588s # Created snap.yaml in /tmp/test_portal-support-snap_LPZC62/meta/snap.yaml 6588s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none/.dirs/runtime/snapctl 6589s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62/portal-support/snap/none: No such file or directory 6589s ok 2 /portal-support/snap/none 6589s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/home 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/cache 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/system-config2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/config 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/system-data2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/data 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/state 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/runtime 6589s # Created snap.yaml in /tmp/test_portal-support-snap_LPZC62/meta/snap.yaml 6589s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all/.dirs/runtime/snapctl 6589s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62/portal-support/snap/all: No such file or directory 6589s ok 3 /portal-support/snap/all 6589s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/home 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/cache 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/system-config2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/config 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/system-data2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/data 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/state 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/runtime 6589s # Created snap.yaml in /tmp/test_portal-support-snap_LPZC62/meta/snap.yaml 6589s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only/.dirs/runtime/snapctl 6589s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62/portal-support/snap/desktop-only: No such file or directory 6589s ok 4 /portal-support/snap/desktop-only 6589s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/home 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/cache 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/system-config2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/config 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/system-data2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/data 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/state 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/runtime 6589s # Created snap.yaml in /tmp/test_portal-support-snap_LPZC62/meta/snap.yaml 6589s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only/.dirs/runtime/snapctl 6589s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62/portal-support/snap/network-only: No such file or directory 6589s ok 5 /portal-support/snap/network-only 6589s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/home 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/cache 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/system-config2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/config 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/system-data2 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/data 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/state 6589s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/runtime 6589s # Created snap.yaml in /tmp/test_portal-support-snap_LPZC62/meta/snap.yaml 6589s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 6590s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62/portal-support/snap/gsettings-only: No such file or directory 6590s ok 6 /portal-support/snap/gsettings-only 6590s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/home 6590s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/cache 6590s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/system-config2 6590s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/config 6590s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/system-data2 6590s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/data 6590s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/state 6590s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime 6590s # Created snap.yaml in /tmp/test_portal-support-snap_LPZC62/meta/snap.yaml 6590s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 6590s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 6590s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 6592s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 6592s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 6592s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 6592s # Created snapctl in /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 6592s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62/portal-support/snap/updates-dynamically: No such file or directory 6592s ok 7 /portal-support/snap/updates-dynamically 6592s # slow test /portal-support/snap/updates-dynamically executed in 2.03 secs 6592s # End of snap tests 6592s # End of portal-support tests 6592s Unable to clean up temporary directory /tmp/test_portal-support-snap_LPZC62: No such file or directory 6592s ok - glib/portal-support-snap.test 6592s # Running test: glib/gdbus-connection-slow.test 6592s TAP version 14 6592s # random seed: R02S30af46ae3a25ae14aa4173b298082675 6592s 1..2 6592s # Start of gdbus tests 6592s # Start of connection tests 6592s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/home 6592s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/cache 6592s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/system-config2 6592s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/config 6592s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/system-data2 6592s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/data 6592s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/state 6592s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/flush/.dirs/runtime 6593s # Executing: glib/gdbus-connection-slow.test 6598s # Executing: glib/gdbus-connection-slow.test 6603s # Executing: glib/gdbus-connection-slow.test 6608s # Executing: glib/gdbus-connection-slow.test 6609s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6609s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6609s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6609s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6609s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6609s ok 1 /gdbus/connection/flush 6609s # slow test /gdbus/connection/flush executed in 17.19 secs 6609s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/home 6609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/cache 6609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/system-config2 6609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/config 6609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/system-data2 6609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/data 6609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/state 6609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_MJJ752/gdbus/connection/large_message/.dirs/runtime 6610s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6610s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6610s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6610s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6610s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6610s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6613s # Executing: glib/gdbus-connection-slow.test 6618s # Executing: glib/gdbus-connection-slow.test 6623s # Executing: glib/gdbus-connection-slow.test 6625s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6625s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6625s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6625s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6625s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6625s ok 2 /gdbus/connection/large_message 6625s # slow test /gdbus/connection/large_message executed in 15.63 secs 6625s # End of connection tests 6625s # End of gdbus tests 6625s ok - glib/gdbus-connection-slow.test 6625s # Running test: glib/gdbus-bz627724.test 6626s TAP version 14 6626s # random seed: R02S45b39e51fb2ec77ff31678b0e381d123 6626s 1..1 6626s # Start of gdbus tests 6626s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/home 6626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/cache 6626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/system-config2 6626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/config 6626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/system-data2 6626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/data 6626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/state 6626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_V4L452/gdbus/bz627724/.dirs/runtime 6626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6626s ok 1 /gdbus/bz627724 6626s # End of gdbus tests 6626s ok - glib/gdbus-bz627724.test 6626s # Running test: glib/memory-monitor-portal.test 6628s # Executing: glib/memory-monitor-portal.test 6634s # Executing: glib/memory-monitor-portal.test 6636s TAP version 13 6636s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 6636s 1..1 6636s ok - glib/memory-monitor-portal.test 6636s # Running test: glib/static-link.test 6637s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 6637s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 6637s and make sure you have glib build dependencies installed, including 6637s meson. 6637s ok # SKIP - glib/static-link.test 6637s # Running test: glib/network-monitor.test 6638s TAP version 14 6638s # random seed: R02S0ecd6753e7902fe6651888aa017f260f 6638s 1..4 6638s # Start of network-monitor tests 6638s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 6638s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 6638s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor? 6638s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 6638s ok 1 /network-monitor/default 6638s ok 2 /network-monitor/remove_default 6638s ok 3 /network-monitor/add_networks 6638s # Executing: glib/network-monitor.test 6638s ok 4 /network-monitor/remove_networks 6638s # End of network-monitor tests 6638s ok - glib/network-monitor.test 6638s # Running test: glib/permission.test 6638s TAP version 14 6638s # random seed: R02S069e3da4be5c4714acac5218edb7d0f3 6638s 1..1 6638s # Start of permission tests 6639s ok 1 /permission/simple 6639s # End of permission tests 6639s ok - glib/permission.test 6639s # Running test: glib/utils-c-99.test 6639s TAP version 14 6639s # random seed: R02Se880196c4300294bfe488c5ff12b1cc3 6639s 1..41 6639s # Start of utils tests 6639s ok 1 /utils/language-names 6639s ok 2 /utils/locale-variants 6639s ok 3 /utils/version 6639s ok 4 /utils/appname 6639s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 6639s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 6639s ok 5 /utils/prgname-thread-safety 6639s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 6639s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 6639s ok 6 /utils/tmpdir 6639s ok 7 /utils/basic_bits 6639s ok 8 /utils/bits 6639s ok 9 /utils/swap 6639s ok 10 /utils/find-program 6639s ok 11 /utils/find-program-for-path 6639s ok 12 /utils/debug 6639s ok 13 /utils/codeset 6639s ok 14 /utils/codeset2 6639s ok 15 /utils/console-charset 6639s ok 16 /utils/gettext 6639s ok 17 /utils/username 6639s ok 18 /utils/realname 6639s ok 19 /utils/hostname 6639s ok 20 /utils/xdgdirs 6639s ok 21 /utils/specialdir 6639s # NAME: Ubuntu 6639s ok 22 /utils/os-info 6639s ok 23 /utils/clear-pointer 6639s ok 24 /utils/clear-pointer-cast 6639s ok 25 /utils/take-pointer 6639s ok 26 /utils/clear-source 6639s ok 27 /utils/misc-mem 6639s # /utils/aligned-mem summary: Aligned memory allocator 6639s # Alignment must not be zero 6640s # Alignment must be a power of two 6640s # Alignment must be a multiple of sizeof(void*) 6640s ok 28 /utils/aligned-mem 6640s # /utils/free-sized summary: Check that g_free_sized() works 6640s ok 29 /utils/free-sized 6640s ok 30 /utils/nullify 6640s ok 31 /utils/atexit 6640s ok 32 /utils/check-setuid 6640s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 6640s ok 33 /utils/int-limits 6640s ok 34 /utils/clear-list 6640s ok 35 /utils/clear-slist 6640s ok 36 /utils/steal-handle-id 6640s # Start of specialdir tests 6640s ok 37 /utils/specialdir/desktop 6640s # End of specialdir tests 6640s # Start of clear-pointer tests 6640s ok 38 /utils/clear-pointer/side-effects 6640s # End of clear-pointer tests 6640s # Start of aligned-mem tests 6640s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 6640s ok 39 /utils/aligned-mem/alignment 6640s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 6640s ok 40 /utils/aligned-mem/zeroed 6640s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 6640s ok 41 /utils/aligned-mem/free-sized 6640s # Start of subprocess tests 6640s # End of subprocess tests 6640s # End of aligned-mem tests 6640s # End of utils tests 6640s ok - glib/utils-c-99.test 6640s # Running test: glib/642026-ec.test 6640s TAP version 14 6640s # random seed: R02Sb211b70f7d2b30a3fff209aa30581e09 6640s 1..1 6640s # Start of glib tests 6640s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 6641s ok 1 /glib/642026 6641s # slow test /glib/642026 executed in 0.68 secs 6641s # End of glib tests 6641s ok - glib/642026-ec.test 6641s # Running test: glib/memory-monitor-dbus.test 6643s # Executing: glib/memory-monitor-dbus.test 6645s TAP version 13 6645s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 6645s 1..1 6646s ok - glib/memory-monitor-dbus.test 6646s # Running test: glib/enums.test 6646s TAP version 14 6646s # random seed: R02S201fa75ce9a0d497a25b42a79f316375 6646s 1..4 6646s # Start of enum tests 6646s ok 1 /enum/basic 6646s ok 2 /enum/define-type 6646s # End of enum tests 6646s # Start of flags tests 6646s ok 3 /flags/basic 6646s ok 4 /flags/define-type 6646s # End of flags tests 6646s ok - glib/enums.test 6646s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 6646s TAP version 14 6646s # random seed: R02S90fb6a6a42d077f74f05ce8acf5a44e8 6646s 1..8 6646s # Start of gdbus tests 6646s # Start of codegen tests 6646s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/home 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/cache 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/system-config2 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/config 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/system-data2 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/data 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/state 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/annotations/.dirs/runtime 6646s ok 1 /gdbus/codegen/annotations 6646s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/home 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/cache 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/system-config2 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/config 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/system-data2 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/data 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/state 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/interface_stability/.dirs/runtime 6646s ok 2 /gdbus/codegen/interface_stability 6646s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/home 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/cache 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/system-config2 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/config 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/system-data2 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/data 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/state 6646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/object-manager/.dirs/runtime 6648s ok 3 /gdbus/codegen/object-manager 6648s # slow test /gdbus/codegen/object-manager executed in 1.47 secs 6648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/home 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/cache 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/system-config2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/config 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/system-data2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/data 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/state 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/property-naming/.dirs/runtime 6648s ok 4 /gdbus/codegen/property-naming 6648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/home 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/cache 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/system-config2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/config 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/system-data2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/data 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/state 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/autocleanups/.dirs/runtime 6648s ok 5 /gdbus/codegen/autocleanups 6648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/home 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/cache 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/system-config2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/config 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/system-data2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/data 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/state 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/deprecations/.dirs/runtime 6648s ok 6 /gdbus/codegen/deprecations 6648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/home 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/cache 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/system-config2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/config 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/system-data2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/data 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/state 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/standalone-interface-info/.dirs/runtime 6648s ok 7 /gdbus/codegen/standalone-interface-info 6648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/home 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/cache 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/system-config2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/config 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/system-data2 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/data 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/state 6648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_7W3852/gdbus/codegen/unix-fd-list/.dirs/runtime 6648s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 6648s ok 8 /gdbus/codegen/unix-fd-list 6648s # End of codegen tests 6648s # End of gdbus tests 6648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6648s ok - glib/gdbus-test-codegen-min-required-2-64.test 6648s # Running test: glib/stream-rw_all.test 6648s # Executing: glib/stream-rw_all.test 6648s TAP version 14 6648s # random seed: R02Sef8751fa737cfeec9fb8ecf004fec9ba 6648s 1..3 6648s # Start of stream tests 6648s # Start of read_all_async tests 6648s ok 1 /stream/read_all_async/memory 6648s # End of read_all_async tests 6648s # Start of write_all_async tests 6648s ok 2 /stream/write_all_async/memory 6648s # End of write_all_async tests 6648s # Start of read_write_all_async tests 6648s ok 3 /stream/read_write_all_async/pipe 6648s # End of read_write_all_async tests 6648s # End of stream tests 6648s ok - glib/stream-rw_all.test 6648s # Running test: glib/scannerapi.test 6649s TAP version 14 6649s # random seed: R02Scbd7235ab8cbf0858b52ecedf88a2005 6649s 1..4 6649s # Start of scanner tests 6649s ok 1 /scanner/warn 6649s ok 2 /scanner/error 6649s ok 3 /scanner/symbols 6649s ok 4 /scanner/tokens 6649s # End of scanner tests 6649s ok - glib/scannerapi.test 6649s # Running test: glib/gdbus-threading.test 6649s TAP version 14 6649s # random seed: R02Sa54d08293b3b3c4f0adebfddb603cfd9 6649s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 6649s ok - glib/gdbus-threading.test 6649s # Running test: glib/object.test 6649s TAP version 14 6649s # random seed: R02S686cf92f7f0746d5913f538b2b64d494 6649s 1..2 6649s # Start of object tests 6649s # Start of constructor tests 6649s ok 1 /object/constructor/singleton 6649s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 6649s # End of constructor tests 6649s # End of object tests 6649s ok - glib/object.test 6649s # Running test: glib/repository-search-paths.test 6649s TAP version 14 6649s # random seed: R02Sa64d5e331c25a59aa5ae4018955aeec2 6649s 1..4 6649s # Start of repository tests 6649s # Start of search-paths tests 6649s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/home 6649s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/cache 6649s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/system-config2 6649s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/config 6649s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/system-data2 6649s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/data 6649s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/state 6649s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/default/.dirs/runtime 6650s ok 1 /repository/search-paths/default 6650s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/home 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/cache 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/system-config2 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/config 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/system-data2 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/data 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/state 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_ONQ652/repository/search-paths/prepend/.dirs/runtime 6650s ok 2 /repository/search-paths/prepend 6650s # End of search-paths tests 6650s # Start of library-paths tests 6650s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/home 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/cache 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/system-config2 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/config 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/system-data2 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/data 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/state 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/default/.dirs/runtime 6650s ok 3 /repository/library-paths/default 6650s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/home 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/cache 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/system-config2 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/config 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/system-data2 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/data 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/state 6650s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_ONQ652/repository/library-paths/prepend/.dirs/runtime 6650s ok 4 /repository/library-paths/prepend 6650s # End of library-paths tests 6650s # End of repository tests 6650s ok - glib/repository-search-paths.test 6650s # Running test: glib/boxed.test 6650s TAP version 14 6650s # random seed: R02Se461317a47ae0e04157de700c4f07b93 6650s 1..27 6650s # Start of boxed tests 6650s ok 1 /boxed/define 6650s ok 2 /boxed/ownership 6650s ok 3 /boxed/closure 6650s ok 4 /boxed/date 6650s ok 5 /boxed/value 6650s ok 6 /boxed/string 6650s ok 7 /boxed/hashtable 6650s ok 8 /boxed/array 6650s ok 9 /boxed/ptrarray 6650s ok 10 /boxed/regex 6650s ok 11 /boxed/varianttype 6650s ok 12 /boxed/error 6650s ok 13 /boxed/datetime 6650s ok 14 /boxed/matchinfo 6650s ok 15 /boxed/keyfile 6650s ok 16 /boxed/mainloop 6650s ok 17 /boxed/maincontext 6650s ok 18 /boxed/source 6650s ok 19 /boxed/variantbuilder 6650s ok 20 /boxed/timezone 6650s ok 21 /boxed/pollfd 6650s ok 22 /boxed/markup 6650s ok 23 /boxed/thread 6650s ok 24 /boxed/checksum 6650s ok 25 /boxed/tree 6650s ok 26 /boxed/patternspec 6650s ok 27 /boxed/rand 6650s # End of boxed tests 6650s ok - glib/boxed.test 6650s # Running test: glib/srvtarget.test 6650s TAP version 14 6650s # random seed: R02S21d3778b753b0983fadb4b4dc8db3d7a 6650s 1..1 6650s # Start of srvtarget tests 6653s # Executing: glib/srvtarget.test 6657s ok 1 /srvtarget/srv-target-ordering 6657s # slow test /srvtarget/srv-target-ordering executed in 6.64 secs 6657s # End of srvtarget tests 6657s ok - glib/srvtarget.test 6657s # Running test: glib/gdbus-error.test 6657s TAP version 14 6657s # random seed: R02S4c439c0adf0a63403f9133248aa1f6d0 6657s 1..4 6657s # Start of gdbus tests 6657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/home 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/cache 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/system-config2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/config 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/system-data2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/data 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/state 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_QQ1V52/gdbus/registered-errors/.dirs/runtime 6657s ok 1 /gdbus/registered-errors 6657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/home 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/cache 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/system-config2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/config 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/system-data2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/data 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/state 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_QQ1V52/gdbus/unregistered-errors/.dirs/runtime 6657s ok 2 /gdbus/unregistered-errors 6657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/home 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/cache 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/system-config2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/config 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/system-data2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/data 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/state 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_QQ1V52/gdbus/transparent-gerror/.dirs/runtime 6657s ok 3 /gdbus/transparent-gerror 6657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/home 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/cache 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/system-config2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/config 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/system-data2 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/data 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/state 6657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_QQ1V52/gdbus/register-error/.dirs/runtime 6657s ok 4 /gdbus/register-error 6657s # End of gdbus tests 6657s ok - glib/gdbus-error.test 6657s # Running test: glib/gdbus-test-codegen-old.test 6657s TAP version 14 6657s # random seed: R02S7850e6d37154de505ea8034c4bd939e4 6658s 1..8 6658s # Start of gdbus tests 6658s # Start of codegen tests 6658s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/home 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/cache 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/system-config2 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/config 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/system-data2 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/data 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/state 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/annotations/.dirs/runtime 6658s ok 1 /gdbus/codegen/annotations 6658s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/home 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/cache 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/system-config2 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/config 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/system-data2 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/data 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/state 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/interface_stability/.dirs/runtime 6658s ok 2 /gdbus/codegen/interface_stability 6658s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/home 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/cache 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/system-config2 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/config 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/system-data2 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/data 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/state 6658s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/object-manager/.dirs/runtime 6658s # Executing: glib/gdbus-test-codegen-old.test 6659s ok 3 /gdbus/codegen/object-manager 6659s # slow test /gdbus/codegen/object-manager executed in 1.41 secs 6659s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/home 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/cache 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/system-config2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/config 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/system-data2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/data 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/state 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/property-naming/.dirs/runtime 6659s ok 4 /gdbus/codegen/property-naming 6659s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/home 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/cache 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/system-config2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/config 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/system-data2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/data 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/state 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/autocleanups/.dirs/runtime 6659s ok 5 /gdbus/codegen/autocleanups 6659s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/home 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/cache 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/system-config2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/config 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/system-data2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/data 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/state 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/deprecations/.dirs/runtime 6659s ok 6 /gdbus/codegen/deprecations 6659s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/home 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/cache 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/system-config2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/config 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/system-data2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/data 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/state 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/standalone-interface-info/.dirs/runtime 6659s ok 7 /gdbus/codegen/standalone-interface-info 6659s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/home 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/cache 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/system-config2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/config 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/system-data2 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/data 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/state 6659s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_OCP252/gdbus/codegen/unix-fd-list/.dirs/runtime 6659s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 6659s ok 8 /gdbus/codegen/unix-fd-list 6659s # End of codegen tests 6659s # End of gdbus tests 6659s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6659s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6659s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6659s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6659s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6659s ok - glib/gdbus-test-codegen-old.test 6659s # Running test: glib/portal-support-flatpak-network-only.test 6660s TAP version 14 6660s # random seed: R02S142ce993b1257bc70947f5cd982050f2 6660s 1..1 6660s # Start of portal-support tests 6660s # Start of flatpak tests 6660s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/home 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/cache 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/system-config2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/config 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/system-data2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/data 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/state 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/runtime 6660s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_9AUX52/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 6660s ok 1 /portal-support/flatpak/network 6660s # End of flatpak tests 6660s # End of portal-support tests 6660s ok - glib/portal-support-flatpak-network-only.test 6660s # Running test: glib/gdbus-message.test 6660s TAP version 14 6660s # random seed: R02S94ac24188485b2797aa25d16ede8bee5 6660s 1..3 6660s # Start of gdbus tests 6660s # Start of message tests 6660s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/home 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/cache 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/system-config2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/config 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/system-data2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/data 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/state 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_9WPS52/gdbus/message/lock/.dirs/runtime 6660s ok 1 /gdbus/message/lock 6660s ok - glib/gdbus-message.test 6660s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/home 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/cache 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/system-config2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/config 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/system-data2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/data 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/state 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_9WPS52/gdbus/message/copy/.dirs/runtime 6660s ok 2 /gdbus/message/copy 6660s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/home 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/cache 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/system-config2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/config 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/system-data2 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/data 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/state 6660s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_9WPS52/gdbus/message/bytes-needed/.dirs/runtime 6660s # Vector: 0 6660s # Vector: 1 6660s # Vector: 2 6660s # Vector: 3 6660s # Vector: 4 6660s # Vector: 5 6660s ok 3 /gdbus/message/bytes-needed 6660s # End of message tests 6660s # End of gdbus tests 6660s TAP version 14 6660s # random seed: R02S9acd95ae7736590469c97113ad160952 6660s 1..28 6660s # Start of socket tests 6660s # Running test: glib/socket.test 6661s ok 1 /socket/ipv4_sync 6661s # slow test /socket/ipv4_sync executed in 1.07 secs 6662s ok 2 /socket/ipv4_async 6662s # slow test /socket/ipv4_async executed in 1.02 secs 6662s ok 3 /socket/ipv6_sync 6662s ok 4 /socket/ipv6_async 6662s ok 5 /socket/ipv6_v4mapped 6663s # Executing: glib/socket.test 6663s ok 6 /socket/close_graceful 6663s # slow test /socket/close_graceful executed in 1.02 secs 6663s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 6663s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 6663s ok 8 /socket/fd_reuse 6663s ok 9 /socket/address 6663s ok 10 /socket/unix-from-fd 6663s ok 11 /socket/unix-connection 6664s ok 12 /socket/unix-connection-ancillary-data 6664s ok 13 /socket/source-postmortem 6664s ok 14 /socket/read_write 6664s ok 15 /socket/read_writev 6664s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 6664s ok 16 /socket/receive_bytes 6664s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 6664s ok 17 /socket/receive_bytes_from 6664s # Start of ipv4_sync tests 6664s ok 18 /socket/ipv4_sync/datagram 6664s # Start of datagram tests 6665s ok 19 /socket/ipv4_sync/datagram/timeouts 6665s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.11 secs 6665s # End of datagram tests 6665s # End of ipv4_sync tests 6665s # Start of ipv6_sync tests 6665s ok 20 /socket/ipv6_sync/datagram 6665s # Start of datagram tests 6666s ok 21 /socket/ipv6_sync/datagram/timeouts 6666s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.11 secs 6666s # End of datagram tests 6666s # End of ipv6_sync tests 6666s # Start of reuse tests 6666s ok 22 /socket/reuse/tcp 6666s ok 23 /socket/reuse/udp 6666s # End of reuse tests 6666s # Start of get_available tests 6666s ok 24 /socket/get_available/datagram 6666s ok 25 /socket/get_available/stream 6666s # End of get_available tests 6666s # Start of credentials tests 6666s # Supported on this OS: GCredentials:linux-ucred:pid=0 6666s ok 26 /socket/credentials/tcp_client 6666s # Supported on this OS: GCredentials:linux-ucred:pid=0 6666s ok 27 /socket/credentials/tcp_server 6666s # Supported on this OS: GCredentials:linux-ucred:pid=3480,uid=1000,gid=1000 6666s ok 28 /socket/credentials/unix_socketpair 6666s # End of credentials tests 6666s # End of socket tests 6666s ok - glib/socket.test 6666s # Running test: glib/credentials.test 6666s TAP version 14 6666s # random seed: R02S243694b467cd0f89650090a50cc17555 6666s 1..1 6666s # Start of credentials tests 6666s # GCredentials:linux-ucred:pid=3502,uid=1000,gid=1000 6666s # GCredentials:linux-ucred:pid=3502,uid=0,gid=1000 6666s ok 1 /credentials/basic 6666s # End of credentials tests 6666s ok - glib/credentials.test 6666s # Running test: glib/data-input-stream.test 6667s TAP version 14 6667s # random seed: R02Se22cd8f55e2db3e7135e51b6947d1ee5 6667s 1..10 6667s # Start of data-input-stream tests 6667s ok 1 /data-input-stream/basic 6667s ok 2 /data-input-stream/read-lines-LF 6667s ok 3 /data-input-stream/read-lines-LF-valid-utf8 6667s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 6667s ok 5 /data-input-stream/read-lines-CR 6667s ok 6 /data-input-stream/read-lines-CR-LF 6667s ok 7 /data-input-stream/read-lines-any 6667s ok 8 /data-input-stream/read-until 6667s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 6667s # Test vector 1: {"key": "value"}? and ? 6667s ok 9 /data-input-stream/read-upto 6668s # Executing: glib/data-input-stream.test 6670s ok 10 /data-input-stream/read-int 6670s # slow test /data-input-stream/read-int executed in 2.89 secs 6670s # End of data-input-stream tests 6670s ok - glib/data-input-stream.test 6670s # Running test: glib/accumulator.test 6670s TAP version 14 6670s # random seed: R02S64c39bda08a550a541f37594aec704cc 6670s 1..1 6670s # Start of gobject tests 6670s ok 1 /gobject/accumulator 6670s # End of gobject tests 6670s ok - glib/accumulator.test 6670s # Running test: glib/properties-refcount2.test 6671s TAP version 14 6671s # random seed: R02Se6b118f97fe4bd7bcbe8fe1dab7bc5a4 6671s 1..1 6671s # Start of gobject tests 6671s # Start of refcount tests 6671s # init 0x5559a15b0e20 6671s # 6671s # . 6671s # . 6671s # . 6672s # . 6672s # . 6672s # . 6672s # . 6673s # . 6673s # . 6673s # Executing: glib/properties-refcount2.test 6673s # . 6673s # . 6674s # . 6674s # . 6674s # . 6674s # . 6675s # . 6675s # . 6675s # . 6675s # . 6676s # . 6676s # . 6676s # . 6677s # . 6677s # . 6677s # . 6677s # . 6678s # . 6678s # . 6678s # Executing: glib/properties-refcount2.test 6678s # . 6678s # . 6679s # . 6679s # . 6679s # . 6679s # . 6680s # . 6680s # . 6680s # . 6682s # . 6682s # . 6682s # . 6682s # . 6682s # . 6682s # . 6683s # . 6683s # . 6683s # . 6683s # Executing: glib/properties-refcount2.test 6683s # . 6684s # . 6684s # . 6684s # . 6684s # . 6685s # . 6685s # . 6685s # . 6686s # . 6686s # . 6686s # . 6686s # . 6687s # . 6687s # . 6688s # . 6688s # . 6688s # . 6688s # Executing: glib/properties-refcount2.test 6688s # . 6689s # . 6689s # . 6689s # . 6689s # . 6690s # . 6690s # . 6690s # . 6690s # . 6691s # . 6691s # . 6691s # . 6691s # . 6692s # . 6692s # . 6692s # . 6693s # . 6693s # . 6693s # Executing: glib/properties-refcount2.test 6693s # . 6694s # . 6694s # . 6694s # . 6695s # . 6695s # . 6695s # . 6696s # . 6696s # . 6696s # . 6696s # . 6697s # . 6697s # . 6697s # . 6698s # . 6698s # . 6698s # Executing: glib/properties-refcount2.test 6698s # . 6698s # . 6699s # . 6699s # dispose 0x5559a15b0e20! 6699s # 6699s ok 1 /gobject/refcount/properties-2 6699s # slow test /gobject/refcount/properties-2 executed in 28.14 secs 6699s # End of refcount tests 6699s # End of gobject tests 6699s ok - glib/properties-refcount2.test 6699s # Running test: glib/portal-support-none.test 6699s TAP version 14 6699s # random seed: R02Sf4a2d692a8e4d0250f155c49c6199083 6699s 1..1 6699s # Start of portal-support tests 6699s ok 1 /portal-support/none 6699s # End of portal-support tests 6699s ok - glib/portal-support-none.test 6699s # Running test: glib/converter.test 6699s TAP version 14 6699s # random seed: R02S71da1631fc89cf483c2aaf73c80e5e95 6699s 1..2 6699s # Start of converter tests 6700s ok 1 /converter/bytes 6700s ok 2 /converter/extra-bytes-at-end 6700s # End of converter tests 6700s ok - glib/converter.test 6700s # Running test: glib/bookmarkfile.test 6700s TAP version 14 6700s # random seed: R02Sea109c6dc010c0c199c6a98bc2b8ba82 6700s 1..96 6700s # Start of bookmarks tests 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/load-from-data-dirs/.dirs/runtime 6700s ok 1 /bookmarks/load-from-data-dirs 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/to-file/.dirs/runtime 6700s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_X43Y52/bookmarkfile-test-EJ7R52.xbel 6700s # Roundtrip from a valid bookmark file 6700s ok 2 /bookmarks/to-file 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/move-item/.dirs/runtime 6700s ok 3 /bookmarks/move-item 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/corner-cases/.dirs/runtime 6700s ok 4 /bookmarks/corner-cases 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/misc/.dirs/runtime 6700s ok 5 /bookmarks/misc 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/deprecated/.dirs/runtime 6700s ok 6 /bookmarks/deprecated 6700s # Start of parse tests 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-28.xbel/.dirs/runtime 6700s ok 7 /bookmarks/parse/fail-28.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-41.xbel/.dirs/runtime 6700s ok 8 /bookmarks/parse/fail-41.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-37.xbel/.dirs/runtime 6700s ok 9 /bookmarks/parse/fail-37.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-42.xbel/.dirs/runtime 6700s ok 10 /bookmarks/parse/fail-42.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-01.xbel/.dirs/runtime 6700s ok 11 /bookmarks/parse/fail-01.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-27.xbel/.dirs/runtime 6700s ok 12 /bookmarks/parse/fail-27.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-10.xbel/.dirs/runtime 6700s ok 13 /bookmarks/parse/fail-10.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-14.xbel/.dirs/runtime 6700s ok 14 /bookmarks/parse/fail-14.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-21.xbel/.dirs/runtime 6700s ok 15 /bookmarks/parse/fail-21.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-30.xbel/.dirs/runtime 6700s ok 16 /bookmarks/parse/fail-30.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-22.xbel/.dirs/runtime 6700s ok 17 /bookmarks/parse/fail-22.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-06.xbel/.dirs/runtime 6700s ok 18 /bookmarks/parse/fail-06.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-09.xbel/.dirs/runtime 6700s ok 19 /bookmarks/parse/fail-09.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-11.xbel/.dirs/runtime 6700s ok 20 /bookmarks/parse/fail-11.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-31.xbel/.dirs/runtime 6700s ok 21 /bookmarks/parse/fail-31.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-19.xbel/.dirs/runtime 6700s ok 22 /bookmarks/parse/fail-19.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-25.xbel/.dirs/runtime 6700s ok 23 /bookmarks/parse/fail-25.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-08.xbel/.dirs/runtime 6700s ok 24 /bookmarks/parse/fail-08.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-04.xbel/.dirs/runtime 6700s ok 25 /bookmarks/parse/fail-04.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-24.xbel/.dirs/runtime 6700s ok 26 /bookmarks/parse/fail-24.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-34.xbel/.dirs/runtime 6700s ok 27 /bookmarks/parse/fail-34.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-38.xbel/.dirs/runtime 6700s ok 28 /bookmarks/parse/fail-38.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-36.xbel/.dirs/runtime 6700s ok 29 /bookmarks/parse/fail-36.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-39.xbel/.dirs/runtime 6700s ok 30 /bookmarks/parse/fail-39.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-35.xbel/.dirs/runtime 6700s ok 31 /bookmarks/parse/fail-35.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-15.xbel/.dirs/runtime 6700s ok 32 /bookmarks/parse/fail-15.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-32.xbel/.dirs/runtime 6700s ok 33 /bookmarks/parse/fail-32.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-16.xbel/.dirs/runtime 6700s ok 34 /bookmarks/parse/fail-16.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-40.xbel/.dirs/runtime 6700s ok 35 /bookmarks/parse/fail-40.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-02.xbel/.dirs/runtime 6700s ok 36 /bookmarks/parse/fail-02.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-01.xbel/.dirs/runtime 6700s ok 37 /bookmarks/parse/valid-01.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-07.xbel/.dirs/runtime 6700s ok 38 /bookmarks/parse/fail-07.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-03.xbel/.dirs/runtime 6700s ok 39 /bookmarks/parse/fail-03.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-18.xbel/.dirs/runtime 6700s ok 40 /bookmarks/parse/fail-18.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-17.xbel/.dirs/runtime 6700s ok 41 /bookmarks/parse/fail-17.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-13.xbel/.dirs/runtime 6700s ok 42 /bookmarks/parse/fail-13.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-05.xbel/.dirs/runtime 6700s ok 43 /bookmarks/parse/fail-05.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-03.xbel/.dirs/runtime 6700s ok 44 /bookmarks/parse/valid-03.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-26.xbel/.dirs/runtime 6700s ok 45 /bookmarks/parse/fail-26.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-12.xbel/.dirs/runtime 6700s ok 46 /bookmarks/parse/fail-12.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-29.xbel/.dirs/runtime 6700s ok 47 /bookmarks/parse/fail-29.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/valid-02.xbel/.dirs/runtime 6700s ok 48 /bookmarks/parse/valid-02.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-20.xbel/.dirs/runtime 6700s ok 49 /bookmarks/parse/fail-20.xbel 6700s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/home 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/cache 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/system-config2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/config 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/system-data2 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/data 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/state 6700s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-33.xbel/.dirs/runtime 6700s ok 50 /bookmarks/parse/fail-33.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/parse/fail-23.xbel/.dirs/runtime 6701s ok 51 /bookmarks/parse/fail-23.xbel 6701s # End of parse tests 6701s # Start of copy tests 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-28.xbel/.dirs/runtime 6701s ok 52 /bookmarks/copy/fail-28.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-41.xbel/.dirs/runtime 6701s ok 53 /bookmarks/copy/fail-41.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-37.xbel/.dirs/runtime 6701s ok 54 /bookmarks/copy/fail-37.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-42.xbel/.dirs/runtime 6701s ok 55 /bookmarks/copy/fail-42.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-01.xbel/.dirs/runtime 6701s ok 56 /bookmarks/copy/fail-01.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-27.xbel/.dirs/runtime 6701s ok 57 /bookmarks/copy/fail-27.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-10.xbel/.dirs/runtime 6701s ok 58 /bookmarks/copy/fail-10.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-14.xbel/.dirs/runtime 6701s ok 59 /bookmarks/copy/fail-14.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-21.xbel/.dirs/runtime 6701s ok 60 /bookmarks/copy/fail-21.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-30.xbel/.dirs/runtime 6701s ok 61 /bookmarks/copy/fail-30.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-22.xbel/.dirs/runtime 6701s ok 62 /bookmarks/copy/fail-22.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-06.xbel/.dirs/runtime 6701s ok 63 /bookmarks/copy/fail-06.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-09.xbel/.dirs/runtime 6701s ok 64 /bookmarks/copy/fail-09.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-11.xbel/.dirs/runtime 6701s ok 65 /bookmarks/copy/fail-11.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-31.xbel/.dirs/runtime 6701s ok 66 /bookmarks/copy/fail-31.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-19.xbel/.dirs/runtime 6701s ok 67 /bookmarks/copy/fail-19.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-25.xbel/.dirs/runtime 6701s ok 68 /bookmarks/copy/fail-25.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-08.xbel/.dirs/runtime 6701s ok 69 /bookmarks/copy/fail-08.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-04.xbel/.dirs/runtime 6701s ok 70 /bookmarks/copy/fail-04.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-24.xbel/.dirs/runtime 6701s ok 71 /bookmarks/copy/fail-24.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-34.xbel/.dirs/runtime 6701s ok 72 /bookmarks/copy/fail-34.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-38.xbel/.dirs/runtime 6701s ok 73 /bookmarks/copy/fail-38.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-36.xbel/.dirs/runtime 6701s ok 74 /bookmarks/copy/fail-36.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-39.xbel/.dirs/runtime 6701s ok 75 /bookmarks/copy/fail-39.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-35.xbel/.dirs/runtime 6701s ok 76 /bookmarks/copy/fail-35.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-15.xbel/.dirs/runtime 6701s ok 77 /bookmarks/copy/fail-15.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-32.xbel/.dirs/runtime 6701s ok 78 /bookmarks/copy/fail-32.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-16.xbel/.dirs/runtime 6701s ok 79 /bookmarks/copy/fail-16.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-40.xbel/.dirs/runtime 6701s ok 80 /bookmarks/copy/fail-40.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-02.xbel/.dirs/runtime 6701s ok 81 /bookmarks/copy/fail-02.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-01.xbel/.dirs/runtime 6701s ok 82 /bookmarks/copy/valid-01.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-07.xbel/.dirs/runtime 6701s ok 83 /bookmarks/copy/fail-07.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-03.xbel/.dirs/runtime 6701s ok 84 /bookmarks/copy/fail-03.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-18.xbel/.dirs/runtime 6701s ok 85 /bookmarks/copy/fail-18.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-17.xbel/.dirs/runtime 6701s ok 86 /bookmarks/copy/fail-17.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-13.xbel/.dirs/runtime 6701s ok 87 /bookmarks/copy/fail-13.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-05.xbel/.dirs/runtime 6701s ok 88 /bookmarks/copy/fail-05.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-03.xbel/.dirs/runtime 6701s ok 89 /bookmarks/copy/valid-03.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-26.xbel/.dirs/runtime 6701s ok 90 /bookmarks/copy/fail-26.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-12.xbel/.dirs/runtime 6701s ok 91 /bookmarks/copy/fail-12.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-29.xbel/.dirs/runtime 6701s ok 92 /bookmarks/copy/fail-29.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/valid-02.xbel/.dirs/runtime 6701s ok 93 /bookmarks/copy/valid-02.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-20.xbel/.dirs/runtime 6701s ok 94 /bookmarks/copy/fail-20.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-33.xbel/.dirs/runtime 6701s ok 95 /bookmarks/copy/fail-33.xbel 6701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/home 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/cache 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/system-config2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/config 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/system-data2 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/data 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/state 6701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_X43Y52/bookmarks/copy/fail-23.xbel/.dirs/runtime 6701s ok 96 /bookmarks/copy/fail-23.xbel 6701s # End of copy tests 6701s # End of bookmarks tests 6701s ok - glib/bookmarkfile.test 6701s # Running test: glib/properties.test 6701s TAP version 14 6701s # random seed: R02S3837ddd5bb221d315166b4f234e1f61c 6701s 1..14 6701s # Start of properties tests 6701s ok 1 /properties/install 6701s ok 2 /properties/install-many 6701s ok 3 /properties/notify 6701s ok 4 /properties/notify-queue 6701s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 6701s ok 5 /properties/construct 6701s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 6701s # Test g_object_get_property with an initialized value 6701s # Test g_object_get_property with an uninitialized value 6701s # Test g_object_get_property with a transformable value 6701s ok 6 /properties/get-property 6701s ok 7 /properties/testv_with_no_properties 6701s ok 8 /properties/testv_with_valid_properties 6701s ok 9 /properties/testv_with_invalid_property_type 6702s ok 10 /properties/testv_with_invalid_property_names 6702s ok 11 /properties/testv_getv 6702s ok 12 /properties/testv_notify_queue 6702s # Start of notify tests 6702s ok 13 /properties/notify/too-many-freezes 6702s # End of notify tests 6702s # Start of set-property tests 6702s # Start of variant tests 6702s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 6702s ok 14 /properties/set-property/variant/floating 6702s # End of variant tests 6702s # End of set-property tests 6702s # End of properties tests 6702s ok - glib/properties.test 6702s # Running test: glib/gdbus-method-invocation.test 6702s TAP version 14 6702s # random seed: R02Sd5d458d56449e3a6f32f7d89d9ef415b 6703s 1..1 6703s # Start of gdbus tests 6703s # Start of method-invocation tests 6703s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/home 6703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/cache 6703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/system-config2 6703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/config 6703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/system-data2 6703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/data 6703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/state 6703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_18Y752/gdbus/method-invocation/return/.dirs/runtime 6703s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 6703s # Calling org.freedesktop.DBus.Properties.Get 6703s # Calling org.freedesktop.DBus.Properties.Get 6703s # Calling org.freedesktop.DBus.Properties.Get 6703s # Calling org.freedesktop.DBus.Properties.Set 6703s # Calling org.freedesktop.DBus.Properties.GetAll 6703s # Calling org.example.Foo.WrongReturnType 6703s # Calling org.example.Foo.GetFDs 6703s # Calling org.example.Foo.GetFDs 6703s # Calling org.example.Foo.ReturnError 6703s # Calling org.example.Foo.CloseBeforeReturning 6703s ok 1 /gdbus/method-invocation/return 6703s # End of method-invocation tests 6703s # End of gdbus tests 6703s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6703s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6703s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6703s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6703s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6703s ok - glib/gdbus-method-invocation.test 6703s # Running test: glib/gthash.test 6703s # Executing: glib/gthash.test 6703s TAP version 14 6703s # random seed: R02S96a5b64137a4c2e9345db3002515940d 6703s 1..1 6703s # Start of gthash tests 6703s ok 1 /gthash/build-retrieve 6703s # End of gthash tests 6703s ok - glib/gthash.test 6703s # Running test: glib/autoptr-gio.test 6704s TAP version 14 6704s # random seed: R02S1982e88ba64d1bf08d62133c651ec8b5 6704s 1..1 6704s # Start of autoptr tests 6704s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 6704s ok 1 /autoptr/autoptr 6704s # End of autoptr tests 6704s ok - glib/autoptr-gio.test 6704s # Running test: glib/dataset.test 6704s TAP version 14 6704s # random seed: R02Scfae799e2a3cd0f913e0eec26c33ac01 6704s 1..14 6704s # Start of quark tests 6704s ok 1 /quark/basic 6704s ok 2 /quark/string 6704s # End of quark tests 6704s # Start of dataset tests 6704s ok 3 /dataset/basic 6704s ok 4 /dataset/id 6704s ok 5 /dataset/full 6704s ok 6 /dataset/foreach 6704s ok 7 /dataset/destroy 6704s # End of dataset tests 6704s # Start of datalist tests 6704s ok 8 /datalist/basic 6704s ok 9 /datalist/id 6704s ok 10 /datalist/recursive-clear 6704s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 6704s ok 11 /datalist/id-remove-multiple 6704s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 6704s ok 12 /datalist/id-remove-multiple-destroy-order 6704s ok 13 /datalist/update-atomic 6704s # Start of id-remove-multiple tests 6704s ok 14 /datalist/id-remove-multiple/resize 6704s # End of id-remove-multiple tests 6704s # End of datalist tests 6704s ok - glib/dataset.test 6704s # Running test: glib/live-g-file.test 6704s TAP version 14 6704s # random seed: R02S4c53e75f844e9493de819c5fa2414545 6704s 1..13 6704s # Start of live-g-file tests 6704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/home 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/cache 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/system-config2 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/config 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/system-data2 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/data 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/state 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/prep_clean_structure/.dirs/runtime 6704s # Cleaning target testing structure in '/tmp/test_live-g-file_UKJ752/testdir_live-g-file'... 6704s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 6704s ok 1 /live-g-file/prep_clean_structure 6704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/home 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/cache 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/system-config2 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/config 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/system-data2 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/data 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/state 6704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/create_structure/.dirs/runtime 6704s # 6704s # Going to create testing structure in '/tmp/test_live-g-file_UKJ752/testdir_live-g-file'... 6704s # Creating directory 'dir1'... 6704s # Creating directory 'dir1/subdir'... 6704s # Creating directory 'dir2'... 6704s # Creating directory 'dir-target'... 6704s # Creating directory 'dir_no-access'... 6704s # Creating directory 'dir_no-write'... 6704s # Creating file 'target-file'... 6704s # Creating file 'normal_file'... 6704s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 6704s # Creating file 'executable_file'... 6704s # Creating file 'private_file'... 6704s # Creating file 'normal_file2'... 6704s # Creating file 'readonly_file'... 6704s # Creating file 'UTF_pr?i?lis? z'... 6704s # Creating directory 'dir_pr?i?lis? z'... 6704s # Creating symlink 'lost_symlink' --> 'nowhere'... 6704s # Creating directory 'dir_hidden'... 6704s # Creating file 'dir_hidden/.a-hidden-file'... 6704s # Creating file 'dir_hidden/file-in-.hidden1'... 6704s # Creating file 'dir_hidden/file-in-.hidden2'... 6704s # Creating pattern file... 6706s # done. 6706s ok 2 /live-g-file/create_structure 6706s # slow test /live-g-file/create_structure executed in 1.39 secs 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_initial_structure/.dirs/runtime 6706s # Testing sample structure in '/tmp/test_live-g-file_UKJ752/testdir_live-g-file'... 6706s # Testing file 'dir1'... 6706s # Testing file 'dir1/subdir'... 6706s # Testing file 'dir2'... 6706s # Testing file 'dir-target'... 6706s # Testing file 'dir_no-access'... 6706s # Testing file 'dir_no-write'... 6706s # Testing file 'target-file'... 6706s # Testing file 'normal_file'... 6706s # Testing file 'normal_file-symlink'... 6706s # Testing file 'executable_file'... 6706s # Testing file 'private_file'... 6706s # Testing file 'normal_file2'... 6706s # Testing file 'readonly_file'... 6706s # Testing file 'UTF_pr?i?lis? z'... 6706s # Testing file 'dir_pr?i?lis? z'... 6706s # Testing file 'lost_symlink'... 6706s # Testing file 'dir_hidden'... 6706s # Testing file 'dir_hidden/.a-hidden-file'... 6706s # Testing file 'dir_hidden/file-in-.hidden1'... 6706s # Testing file 'dir_hidden/file-in-.hidden2'... 6706s # Testing pattern file... 6706s # read 65536 bytes, total = 65536 of 65536. 6706s ok 3 /live-g-file/test_initial_structure 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_traverse_structure/.dirs/runtime 6706s # Traversing through the sample structure in '/tmp/test_live-g-file_UKJ752/testdir_live-g-file'... 6706s # Found file dir1, relative to root: dir1 6706s # Found file subdir, relative to root: dir1/subdir 6706s # Found file dir2, relative to root: dir2 6706s # Found file dir-target, relative to root: dir-target 6706s # Found file dir_no-access, relative to root: dir_no-access 6706s # Found file dir_no-write, relative to root: dir_no-write 6706s # Found file target-file, relative to root: target-file 6706s # Found file normal_file, relative to root: normal_file 6706s # Found file normal_file-symlink, relative to root: normal_file-symlink 6706s # Found file executable_file, relative to root: executable_file 6706s # Found file private_file, relative to root: private_file 6706s # Found file normal_file2, relative to root: normal_file2 6706s # Found file readonly_file, relative to root: readonly_file 6706s # Found file UTF_pr?i?lis? z, relative to root: UTF_pr?i?lis? z 6706s # Found file dir_pr?i?lis? z, relative to root: dir_pr?i?lis? z 6706s # Found file lost_symlink, relative to root: lost_symlink 6706s # Found file dir_hidden, relative to root: dir_hidden 6706s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 6706s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 6706s # Found file .hidden, relative to root: dir_hidden/.hidden 6706s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 6706s # Found file pattern_file, relative to root: pattern_file 6706s ok 4 /live-g-file/test_traverse_structure 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_enumerate/.dirs/runtime 6706s # Test enumerate '/tmp/test_live-g-file_UKJ752/testdir_live-g-file'... 6706s # Testing file 'dir_no-access' 6706s # Testing file 'normal_file' 6706s # Testing file 'normal_file-symlink' 6706s # Testing file 'not_exists' 6706s # Testing file 'not_exists' 6706s # Testing file 'not_exists2' 6706s # Testing file 'not_exists3' 6706s # Testing file 'not_exists4' 6706s # Testing file 'dir_no-execute/file' 6706s ok 5 /live-g-file/test_enumerate 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_open/.dirs/runtime 6706s # test_open: 'dir1' 6706s # test_open: 'dir_no-access' 6706s # test_open: 'target-file' 6706s # test_open: 'normal_file-symlink' 6706s # test_open: 'executable_file' 6706s # test_open: 'private_file' 6706s # test_open: 'readonly_file' 6706s # test_open: 'UTF_pr?i?lis? z' 6706s # test_open: 'pattern_file' 6706s # test_open: 'not_exists' 6706s # test_open: 'dir_no-execute/file' 6706s # test_open: 'lost_symlink' 6706s ok 6 /live-g-file/test_open 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_create/.dirs/runtime 6706s # test_create: 'dir1' 6706s # error code 3 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir1?: Is a directory 6706s # test_create: 'dir1/subdir' 6706s # error code 3 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir1/subdir?: Is a directory 6706s # test_create: 'dir2' 6706s # error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir2?: File exists 6706s # test_create: 'normal_file' 6706s # error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/normal_file?: File exists 6706s # test_create: 'executable_file' 6706s # test_create: 'private_file' 6706s # test_create: 'normal_file2' 6706s # test_create: 'UTF_pr?i?lis? z' 6706s # error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 6706s # test_create: 'dir_pr?i?lis? z' 6706s # error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_pr?i?lis? z?: File exists 6706s # test_create: 'pattern_file' 6706s # test_create: 'not_exists2' 6706s # test_create: 'not_exists3' 6706s # test_create: 'not_exists4' 6706s ok 7 /live-g-file/test_create 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_copy_move/.dirs/runtime 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir1/subdir' --> 'dir-target' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir1/subdir' --> '.' 6706s # res = 0, error code 2 = Target file exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir1/subdir' --> 'target-file' 6706s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/dir1/subdir?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir1/subdir' --> 'not_exists' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir2' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir-target' --> 'dir-target' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir-target' --> '.' 6706s # res = 0, error code 2 = Target file exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir-target' --> 'target-file' 6706s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/dir-target?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir-target' --> 'not_exists' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir-target' --> 'dir_no-access' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'dir-target' --> 'dir_no-write' 6706s # res = 0, error code 25 = Can?t recursively copy directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'target-file' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'target-file' --> '.' 6706s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file?: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'target-file' --> 'target-file' 6706s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/target-file?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'target-file' --> 'not_exists' 6706s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/target-file?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'target-file' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/target-file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'target-file' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/target-file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file-symlink' --> '.' 6706s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/normal_file-symlink: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file-symlink' --> 'target-file' 6706s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 6706s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'executable_file' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'executable_file' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'executable_file' --> '.' 6706s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/executable_file?: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'executable_file' --> 'target-file' 6706s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/executable_file?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'executable_file' --> 'not_exists' 6706s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/executable_file?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'executable_file' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/executable_file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'executable_file' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/executable_file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'private_file' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'private_file' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'private_file' --> '.' 6706s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/private_file?: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'private_file' --> 'target-file' 6706s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/private_file?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'private_file' --> 'not_exists' 6706s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/private_file?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'private_file' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/private_file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'private_file' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/private_file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file2' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file2' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file2' --> '.' 6706s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/normal_file2?: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file2' --> 'target-file' 6706s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/normal_file2?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file2' --> 'not_exists' 6706s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/normal_file2?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file2' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/normal_file2?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'normal_file2' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/normal_file2?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'UTF_pr?i?lis? z' --> '.' 6706s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'UTF_pr?i?lis? z' --> 'target-file' 6706s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/UTF_pr?i?lis? z?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'UTF_pr?i?lis? z' --> 'not_exists' 6706s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/UTF_pr?i?lis? z?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/UTF_pr?i?lis? z?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/UTF_pr?i?lis? z?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'pattern_file' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'pattern_file' --> '.' 6706s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/pattern_file?: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'pattern_file' --> 'target-file' 6706s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/pattern_file?: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'pattern_file' --> 'not_exists' 6706s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/pattern_file?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'pattern_file' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/pattern_file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'pattern_file' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/pattern_file?: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'not_exists' --> 'dir-target' 6706s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'not_exists' --> '.' 6706s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'not_exists' --> 'target-file' 6706s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'not_exists' --> 'not_exists' 6706s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'not_exists' --> 'dir_no-access' 6706s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'not_exists' --> 'dir_no-write' 6706s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists?: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'not_exists' --> 'dir-target' 6706s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'lost_symlink' --> 'dir-target' 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'lost_symlink' --> '.' 6706s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/lost_symlink: File exists 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'lost_symlink' --> 'target-file' 6706s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/target-file/lost_symlink: Not a directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'lost_symlink' --> 'not_exists' 6706s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 6706s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 6706s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 6706s ok 8 /live-g-file/test_copy_move 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_delete/.dirs/runtime 6706s # Deleting dir1, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir1 6706s # result = 0, error = Error removing file /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir1: Directory not empty 6706s # Deleting dir2, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir2 6706s # result = 0, error = Error removing file /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir2: No such file or directory 6706s # Deleting executable_file, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/executable_file 6706s # result = 0, error = Error trashing file /tmp/test_live-g-file_UKJ752/testdir_live-g-file/executable_file: No such file or directory 6706s # Deleting readonly_file, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/readonly_file 6706s # Deleting dir_pr?i?lis? z, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_pr?i?lis? z 6706s # Deleting not_exists, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists 6706s # result = 0, error = Error removing file /tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists: No such file or directory 6706s # Deleting not_exists, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists 6706s # result = 0, error = Error trashing file /tmp/test_live-g-file_UKJ752/testdir_live-g-file/not_exists: No such file or directory 6706s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-execute/file 6706s # result = 0, error = Error removing file /tmp/test_live-g-file_UKJ752/testdir_live-g-file/dir_no-execute/file: No such file or directory 6706s # Deleting lost_symlink, path = /tmp/test_live-g-file_UKJ752/testdir_live-g-file/lost_symlink 6706s ok 9 /live-g-file/test_delete 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_make_directory_with_parents/.dirs/runtime 6706s # We do not have CAP_DAC_OVERRIDE or equivalent 6706s ok 10 /live-g-file/test_make_directory_with_parents 6706s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/home 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/cache 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/system-config2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/config 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/system-data2 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/data 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/state 6706s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/final_clean/.dirs/runtime 6706s # Cleaning target testing structure in '/tmp/test_live-g-file_UKJ752/testdir_live-g-file'... 6706s # deleting 'dir1' 6706s # deleting 'subdir' 6706s # deleting 'dir-target' 6706s # deleting 'dir2' 6707s # deleting 'target-file' 6707s # deleting 'normal_file-symlink' 6707s # deleting 'pattern_file' 6707s # deleting 'executable_file' 6707s # deleting 'private_file' 6707s # deleting 'normal_file2' 6707s # deleting 'UTF_pr?i?lis? z' 6707s # deleting 'lost_symlink' 6707s # deleting 'dir_no-access' 6707s # deleting 'dir_no-write' 6707s # deleting 'target-file' 6707s # deleting 'normal_file' 6707s # deleting 'normal_file-symlink' 6707s # deleting 'executable_file~' 6707s # deleting 'private_file' 6707s # deleting 'normal_file2~' 6707s # deleting 'a' 6707s # deleting 'UTF_pr?i?lis? z' 6707s # deleting 'dir_hidden' 6707s # deleting '.a-hidden-file' 6707s # deleting 'file-in-.hidden1' 6707s # deleting '.hidden' 6707s # deleting 'file-in-.hidden2' 6707s # deleting 'pattern_file' 6707s # deleting 'executable_file' 6707s # deleting 'normal_file2' 6707s # deleting 'not_exists2' 6707s # deleting 'not_exists3' 6707s # deleting 'not_exists4' 6707s ok 11 /live-g-file/final_clean 6707s # Start of test_unix_is_mountpoint tests 6707s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 6707s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 6707s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 6707s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_UKJ752/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 6707s ok 13 /live-g-file/test_unix_is_mountpoint/proc 6707s # End of test_unix_is_mountpoint tests 6707s # End of live-g-file tests 6707s ok - glib/live-g-file.test 6707s # Running test: glib/socket-service.test 6708s TAP version 14 6708s # random seed: R02S89c193cf89cce68ea1caa150042af7d5 6708s 1..4 6708s # Start of socket-service tests 6708s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 6708s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555f38c6c140 and GSocketClientAsyncConnectData 0x555f38c66bb0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 6708s ok 1 /socket-service/start-stop 6708s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555f38c70120 and GSocketClientAsyncConnectData 0x555f38c6fdc0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 6708s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 6708s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x555f38c700a0 for GSocketClientAsyncConnectData 0x555f38c66bb0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 6708s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 6708s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 6708s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 6708s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 6708s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x555f38c700a0 for GSocketClientAsyncConnectData 0x555f38c6fdc0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 6708s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 6708s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 6708s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 6708s ok 2 /socket-service/read_write_async 6708s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555f38c70120 and GSocketClientAsyncConnectData 0x555f38c740f0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 6708s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 6708s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x555f38c71d00 for GSocketClientAsyncConnectData 0x555f38c740f0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 6708s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 6708s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 6708s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 6708s ok 3 /socket-service/read_writev_async 6708s # Start of threaded tests 6708s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 6708s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555f38c71770 and GSocketClientAsyncConnectData 0x555f38c6fdc0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 6708s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 6708s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x555f38c6f9f0 for GSocketClientAsyncConnectData 0x555f38c6fdc0 6708s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 6708s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 6708s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 6708s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 6708s ok 4 /socket-service/threaded/712570 6708s # End of threaded tests 6708s # End of socket-service tests 6708s ok - glib/socket-service.test 6708s # Running test: glib/gdbus-proxy-well-known-name.test 6708s TAP version 14 6708s # random seed: R02S521b9c03113f71a24989116c5e022984 6708s # Executing: glib/gdbus-proxy-well-known-name.test 6708s 1..1 6708s # Start of gdbus tests 6708s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/home 6708s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/cache 6708s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/system-config2 6708s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/config 6708s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/system-data2 6708s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/data 6708s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/state 6708s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_MPJ852/gdbus/proxy-well-known-name/.dirs/runtime 6711s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6711s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6711s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6711s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6711s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6711s ok 1 /gdbus/proxy-well-known-name 6711s # slow test /gdbus/proxy-well-known-name executed in 2.32 secs 6711s # End of gdbus tests 6711s ok - glib/gdbus-proxy-well-known-name.test 6711s # Running test: glib/completion.test 6711s TAP version 14 6711s # random seed: R02S6e51624eae99aef71b71101835b3fd32 6711s 1..1 6711s # Start of completion tests 6711s ok 1 /completion/test-completion 6711s # End of completion tests 6711s ok - glib/completion.test 6711s # Running test: glib/data-output-stream.test 6711s TAP version 14 6711s # random seed: R02S2e1bb758f9a70b6674c48c361868ddec 6711s 1..7 6711s # Start of data-output-stream tests 6711s ok 1 /data-output-stream/basic 6711s ok 2 /data-output-stream/write-lines-LF 6712s ok 3 /data-output-stream/write-lines-CR 6712s # slow test /data-output-stream/write-lines-CR executed in 0.55 secs 6712s ok 4 /data-output-stream/write-lines-CR-LF 6712s ok 5 /data-output-stream/write-int 6712s ok 6 /data-output-stream/seek 6712s ok 7 /data-output-stream/truncate 6712s # End of data-output-stream tests 6712s ok - glib/data-output-stream.test 6712s # Running test: glib/gdbus-non-socket.test 6712s TAP version 14 6712s # random seed: R02S5aa0fde9861dfce489dbf2b613e5b4da 6712s 1..1 6712s # Start of gdbus tests 6712s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/home 6712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/cache 6712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/system-config2 6712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/config 6712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/system-data2 6712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/data 6712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/state 6712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_FEGC62/gdbus/non-socket/.dirs/runtime 6713s ok 1 /gdbus/non-socket 6713s # End of gdbus tests 6713s ok - glib/gdbus-non-socket.test 6713s # Running test: glib/unix-fd.test 6713s TAP version 14 6713s # random seed: R02S1efe34943d27f42b38d7b8cc6a2ed224 6713s 1..2 6713s # Start of unix-fd tests 6713s ok 1 /unix-fd/fd-list 6713s ok 2 /unix-fd/scm 6713s # End of unix-fd tests 6713s ok - glib/unix-fd.test 6713s # Running test: glib/io-stream.test 6713s # Executing: glib/io-stream.test 6713s TAP version 14 6713s # random seed: R02S0413ae34f6c9c1549d52a3716e7d5144 6713s 1..3 6713s # Start of io-stream tests 6713s ok 1 /io-stream/copy-chunks 6713s # Start of close tests 6713s # Start of async tests 6713s ok 2 /io-stream/close/async/memory 6713s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 6713s ok 3 /io-stream/close/async/file 6713s # End of async tests 6713s # End of close tests 6713s # End of io-stream tests 6713s ok - glib/io-stream.test 6714s # Running test: glib/volumemonitor.test 6714s TAP version 14 6714s # random seed: R02S303c2baf211a7824d2b9deb2f888eaed 6714s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 6714s 1..3 6714s # Start of volumemonitor tests 6714s ok 1 /volumemonitor/connected_drives 6714s ok 2 /volumemonitor/volumes 6714s ok 3 /volumemonitor/mounts 6714s # End of volumemonitor tests 6714s ok - glib/volumemonitor.test 6714s # Running test: glib/gutils-user-database.test 6714s TAP version 14 6714s # random seed: R02S92f7296b92278a958fd2adf05bfc0af9 6714s 1..1 6714s # Start of gutils tests 6714s ok 1 /gutils/get_user_database_entry 6714s # End of gutils tests 6714s ok - glib/gutils-user-database.test 6714s # Running test: glib/gdbus-connection-loss.test 6715s TAP version 14 6715s # random seed: R02Se7a34949decca6ff6a0db230bbfe142d 6715s 1..1 6715s # Start of gdbus tests 6715s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/home 6715s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/cache 6715s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/system-config2 6715s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/config 6715s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/system-data2 6715s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/data 6715s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/state 6715s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_T24X52/gdbus/connection-loss/.dirs/runtime 6716s ok 1 /gdbus/connection-loss 6716s # End of gdbus tests 6716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6716s ok - glib/gdbus-connection-loss.test 6716s # Running test: glib/macros.test 6716s TAP version 14 6716s # random seed: R02S75dffdfd3c0972d2402a209645a2948e 6716s 1..3 6716s # Start of alignof tests 6716s ok 1 /alignof/fallback 6716s # End of alignof tests 6716s # Start of assert tests 6716s ok 2 /assert/static 6716s # End of assert tests 6716s # Start of struct tests 6716s ok 3 /struct/sizeof_member 6716s # End of struct tests 6716s ok - glib/macros.test 6716s # Running test: glib/assert-msg-test.py.test 6718s # Executing: glib/assert-msg-test.py.test 6719s TAP version 13 6719s ok 1 __main__.TestAssertMessage.test_gassert 6719s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 6719s # tmpdir: /tmp/tmpvts6uh8x 6719s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 6719s # Return code: -6 6719s # Output: 6719s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 6719s # Error: 6719s # ** 6719s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 6719s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 6719s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 6719s # tmpdir: /tmp/tmps2hswd2x 6719s 1..2 6719s ok - glib/assert-msg-test.py.test 6719s # Running test: glib/mappedfile.test 6720s TAP version 14 6720s # random seed: R02S36a4268d879223f295a085239df5ff14 6720s 1..7 6720s # Start of mappedfile tests 6720s ok 1 /mappedfile/basic 6720s ok 2 /mappedfile/empty 6720s ok 3 /mappedfile/device 6720s ok 4 /mappedfile/nonexisting 6720s ok 5 /mappedfile/writable 6720s ok 6 /mappedfile/writable_fd 6720s ok 7 /mappedfile/gbytes 6720s # End of mappedfile tests 6720s ok - glib/mappedfile.test 6720s # Running test: glib/strvbuilder.test 6720s TAP version 14 6720s # random seed: R02S8d9f8e3f786fcd2cf3c5ad3f09f815af 6720s 1..7 6720s # Start of strvbuilder tests 6720s ok 1 /strvbuilder/empty 6720s ok 2 /strvbuilder/add 6720s ok 3 /strvbuilder/addv 6720s ok 4 /strvbuilder/add_many 6720s ok 5 /strvbuilder/take 6720s ok 6 /strvbuilder/ref 6720s ok 7 /strvbuilder/unref_to_strv 6720s # End of strvbuilder tests 6720s ok - glib/strvbuilder.test 6720s # Running test: glib/refcount.test 6720s TAP version 14 6720s # random seed: R02S9f6a996597c66dfda192595c0c227d3f 6720s 1..4 6720s # Start of refcount tests 6720s ok 1 /refcount/grefcount 6720s ok 2 /refcount/gatomicrefcount 6720s # Start of grefcount tests 6720s ok 3 /refcount/grefcount/saturation 6720s # End of grefcount tests 6720s # Start of gatomicrefcount tests 6721s ok 4 /refcount/gatomicrefcount/saturation 6721s # End of gatomicrefcount tests 6721s # End of refcount tests 6721s ok - glib/refcount.test 6721s # Running test: glib/dbus-appinfo.test 6721s TAP version 14 6721s # random seed: R02Sda2a23d11c67c4d0c9cadbaae1208870 6721s 1..7 6721s # Start of appinfo tests 6721s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/home 6721s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/cache 6721s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/system-config2 6721s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/config 6721s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/system-data2 6721s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/data 6721s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/state 6721s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/runtime 6722s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 6722s ok 1 /appinfo/dbusappinfo 6722s # slow test /appinfo/dbusappinfo executed in 0.63 secs 6722s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/home 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/cache 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/system-config2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/config 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/system-data2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/data 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/state 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/runtime 6722s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 6722s # Acquired a message bus connection 6722s # Acquired the name org.freedesktop.portal.Documents 6722s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_26BT52/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/config 6722s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 6722s # fake-document-portal cancelled 6722s ok 2 /appinfo/flatpak-doc-export 6722s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/home 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/cache 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/system-config2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/config 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/system-data2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/data 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/state 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/runtime 6722s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 6722s # Acquired a message bus connection 6722s # Acquired the name org.freedesktop.portal.Documents 6722s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/config 6722s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 6722s # fake-document-portal cancelled 6722s ok 3 /appinfo/flatpak-missing-doc-export 6722s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/home 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/cache 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/system-config2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/config 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/system-data2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/data 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/state 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/runtime 6722s # Acquired a message bus connection 6722s # Acquired the name org.freedesktop.portal.Desktop 6722s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_26BT52/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/config 6722s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 6722s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 6722s # Response emitted 6722s # fake-desktop-portal cancelled 6722s ok 4 /appinfo/portal-open-file 6722s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/home 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/cache 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/system-config2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/config 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/system-data2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/data 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/state 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/runtime 6722s # Acquired a message bus connection 6722s # Acquired the name org.freedesktop.portal.Desktop 6722s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/config 6722s # Got open file request for http://example.com 6722s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 6722s # Response emitted 6722s # fake-desktop-portal cancelled 6722s ok 5 /appinfo/portal-open-uri 6722s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/home 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/cache 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/system-config2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/config 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/system-data2 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/data 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/state 6722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/runtime 6722s # Acquired a message bus connection 6722s # Acquired the name org.freedesktop.portal.Desktop 6722s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/config 6723s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 6723s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio605564209 6723s # Response emitted 6723s # fake-desktop-portal cancelled 6723s ok 6 /appinfo/portal-open-file-async 6723s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/home 6723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/cache 6723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/system-config2 6723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/config 6723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/system-data2 6723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/data 6723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/state 6723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/runtime 6723s # Acquired a message bus connection 6723s # Acquired the name org.freedesktop.portal.Desktop 6723s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_26BT52/appinfo/portal-open-uri-async/.dirs/config 6723s # Got open file request for http://example.com 6723s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio834312528 6723s # Response emitted 6723s # fake-desktop-portal cancelled 6723s ok 7 /appinfo/portal-open-uri-async 6723s # End of appinfo tests 6723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6723s ok - glib/dbus-appinfo.test 6723s # Running test: glib/types.test 6723s TAP version 14 6723s # random seed: R02S4b5b5a5262d2422e5c3d7424d2e8767f 6723s 1..1 6723s # Start of types tests 6723s ok 1 /types/basic_types 6723s # End of types tests 6723s ok - glib/types.test 6723s # Running test: glib/objects-refcount2.test 6723s TAP version 14 6723s # random seed: R02Sa7bffe150b691d0edc41c68b7447301d 6723s 1..1 6723s # Start of gobject tests 6723s # Start of refcount tests 6723s # init 0x55650f95f3f0 6723s # 6723s # Executing: glib/objects-refcount2.test 6723s # . 6723s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6726s # . 6727s # . 6727s # . 6727s # . 6727s # . 6727s # . 6727s # . 6728s # . 6728s # . 6728s # . 6728s # . 6728s # . 6728s # Executing: glib/objects-refcount2.test 6728s # . 6728s # . 6729s # . 6729s # . 6729s # . 6729s # . 6729s # . 6729s # . 6729s # . 6730s # . 6730s # . 6730s # . 6730s # . 6730s # . 6730s # . 6730s # . 6731s # . 6731s # . 6731s # . 6731s # . 6731s # . 6731s # . 6731s # . 6731s # . 6732s # . 6732s # . 6732s # . 6732s # . 6732s # . 6732s # . 6732s # . 6733s # . 6733s # . 6733s # . 6733s # . 6733s # . 6733s # . 6733s # Executing: glib/objects-refcount2.test 6733s # . 6733s # . 6733s # . 6734s # . 6734s # . 6734s # . 6734s # . 6734s # . 6734s # . 6734s # . 6735s # . 6735s # . 6735s # . 6735s # . 6735s # . 6735s # . 6735s # . 6736s # . 6736s # . 6736s # . 6736s # . 6737s # . 6737s # . 6737s # . 6737s # . 6737s # . 6737s # . 6737s # . 6737s # . 6737s # . 6737s # . 6737s # . 6738s # . 6738s # . 6738s # . 6738s # . 6738s # . 6738s # Executing: glib/objects-refcount2.test 6738s # . 6738s # . 6739s # . 6739s # . 6739s # . 6739s # . 6739s # . 6739s # . 6739s # . 6739s # . 6740s # . 6740s # . 6740s # . 6740s # . 6740s # . 6740s # . 6740s # . 6740s # . 6741s # . 6741s # . 6741s # . 6741s # . 6741s # . 6741s # . 6741s # . 6741s # . 6742s # . 6742s # . 6742s # . 6742s # . 6742s # . 6742s # . 6742s # . 6742s # . 6743s # . 6743s # . 6743s # . 6743s # . 6743s # . 6743s # Executing: glib/objects-refcount2.test 6743s # . 6744s # . 6744s # . 6744s # . 6744s # . 6744s # . 6744s # . 6744s # . 6745s # . 6745s # . 6745s # . 6745s # . 6745s # . 6745s # . 6745s # . 6746s # . 6746s # . 6746s # . 6746s # . 6746s # . 6746s # . 6746s # . 6747s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # . 6748s # Executing: glib/objects-refcount2.test 6748s # . 6748s # . 6748s # . 6749s # . 6749s # . 6749s # . 6749s # . 6749s # . 6750s # . 6750s # . 6750s # . 6750s # . 6750s # . 6750s # . 6750s # . 6751s # . 6751s # . 6751s # . 6751s # . 6751s # . 6751s # . 6755s # . 6755s # Executing: glib/objects-refcount2.test 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6755s # . 6756s # . 6756s # . 6756s # . 6756s # . 6756s # . 6756s # . 6757s # . 6757s # . 6757s # . 6757s # . 6757s # . 6757s # . 6757s # . 6758s # . 6758s # . 6758s # . 6758s # . 6758s # . 6758s # Executing: glib/objects-refcount2.test 6758s # . 6758s # . 6759s # . 6759s # . 6759s # . 6759s # . 6759s # . 6759s # . 6760s # . 6760s # . 6760s # . 6760s # . 6760s # . 6760s # . 6760s # . 6761s # . 6761s # . 6761s # . 6761s # . 6761s # . 6761s # . 6761s # . 6761s # . 6762s # . 6762s # . 6762s # . 6762s # . 6762s # . 6762s # . 6762s # . 6762s # . 6763s # . 6763s # . 6763s # . 6763s # . 6763s # . 6763s # Executing: glib/objects-refcount2.test 6763s # . 6763s # . 6764s # . 6764s # . 6764s # . 6764s # . 6764s # . 6764s # . 6764s # . 6764s # . 6765s # . 6765s # . 6765s # . 6765s # . 6766s # . 6766s # . 6766s # . 6766s # . 6766s # . 6766s # . 6766s # . 6766s # . 6766s # . 6766s # . 6767s # . 6767s # . 6767s # . 6767s # . 6767s # . 6767s # . 6767s # . 6767s # . 6768s # . 6768s # . 6768s # . 6768s # Executing: glib/objects-refcount2.test 6768s # . 6768s # . 6768s # . 6769s # . 6769s # . 6769s # . 6769s # . 6769s # . 6769s # . 6769s # . 6769s # . 6770s # . 6770s # . 6770s # . 6770s # . 6770s # . 6770s # . 6770s # . 6770s # . 6771s # . 6771s # . 6771s # . 6771s # . 6771s # . 6771s # . 6771s # . 6771s # . 6772s # . 6772s # . 6772s # . 6772s # . 6772s # . 6772s # . 6772s # . 6772s # . 6773s # . 6773s # . 6773s # . 6773s # . 6773s # . 6773s # Executing: glib/objects-refcount2.test 6773s # . 6773s # . 6774s # . 6774s # . 6774s # . 6774s # . 6774s # . 6774s # . 6774s # . 6775s # . 6775s # . 6775s # . 6775s # . 6775s # . 6775s # . 6775s # . 6775s # . 6776s # . 6776s # . 6776s # . 6776s # . 6776s # . 6776s # . 6776s # . 6777s # . 6777s # . 6777s # . 6777s # . 6777s # . 6777s # . 6777s # . 6778s # . 6778s # . 6778s # . 6778s # . 6778s # . 6778s # Executing: glib/objects-refcount2.test 6778s # . 6778s # . 6779s # . 6779s # . 6779s # . 6779s # . 6779s # . 6779s # . 6779s # . 6780s # . 6780s # . 6780s # . 6780s # . 6780s # . 6780s # . 6781s # . 6781s # . 6781s # . 6781s # . 6781s # . 6781s # . 6781s # . 6781s # . 6782s # . 6782s # . 6782s # . 6782s # . 6782s # . 6782s # . 6782s # . 6783s # . 6783s # . 6783s # . 6783s # . 6783s # . 6783s # Executing: glib/objects-refcount2.test 6783s # . 6783s # . 6784s # . 6784s # . 6784s # . 6784s # . 6784s # . 6784s # . 6784s # . 6785s # . 6785s # . 6785s # . 6785s # . 6785s # . 6785s # . 6785s # . 6785s # . 6786s # . 6786s # . 6786s # . 6786s # . 6786s # . 6786s # . 6786s # . 6787s # . 6787s # . 6787s # . 6787s # . 6787s # . 6790s # . 6790s # Executing: glib/objects-refcount2.test 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6790s # . 6791s # . 6791s # . 6791s # . 6791s # . 6791s # . 6791s # . 6791s # . 6791s # . 6792s # . 6792s # . 6792s # . 6792s # . 6792s # . 6792s # . 6792s # . 6792s # . 6793s # . 6793s # . 6793s # . 6793s # . 6793s # Executing: glib/objects-refcount2.test 6793s # . 6793s # . 6794s # . 6794s # . 6794s # . 6794s # . 6794s # . 6794s # . 6794s # . 6794s # . 6795s # . 6795s # . 6795s # . 6795s # . 6795s # . 6795s # . 6795s # . 6796s # . 6796s # . 6796s # . 6796s # . 6796s # . 6796s # . 6796s # . 6796s # . 6797s # . 6797s # . 6797s # . 6797s # . 6797s # . 6797s # . 6797s # . 6798s # . 6798s # . 6798s # . 6798s # . 6798s # . 6798s # Executing: glib/objects-refcount2.test 6798s # . 6798s # . 6799s # . 6799s # . 6799s # . 6799s # . 6799s # . 6799s # . 6799s # . 6800s # . 6800s # . 6800s # . 6800s # . 6800s # . 6800s # . 6800s # . 6800s # . 6801s # . 6801s # . 6801s # . 6801s # . 6801s # . 6801s # . 6801s # . 6801s # . 6802s # . 6802s # . 6802s # . 6802s # . 6802s # . 6802s # . 6802s # . 6803s # . 6803s # . 6803s # . 6803s # . 6803s # Executing: glib/objects-refcount2.test 6803s # . 6803s # . 6804s # . 6804s # . 6804s # . 6804s # . 6804s # . 6804s # . 6804s # . 6805s # . 6805s # . 6805s # . 6805s # . 6805s # . 6805s # . 6805s # . 6806s # . 6806s # . 6806s # . 6806s # . 6806s # . 6806s # . 6807s # . 6807s # . 6807s # . 6807s # . 6807s # . 6807s # . 6807s # . 6808s # . 6808s # . 6808s # . 6808s # . 6808s # . 6808s # . 6808s # Executing: glib/objects-refcount2.test 6808s # . 6808s # . 6809s # . 6809s # . 6809s # . 6809s # . 6809s # . 6809s # . 6809s # . 6809s # . 6810s # . 6810s # . 6810s # . 6810s # . 6810s # . 6810s # . 6810s # . 6811s # . 6811s # . 6811s # . 6811s # . 6811s # . 6811s # . 6811s # . 6812s # . 6812s # . 6812s # . 6812s # . 6812s # . 6812s # . 6812s # . 6812s # . 6813s # . 6813s # . 6813s # . 6813s # . 6813s # . 6813s # . 6813s # Executing: glib/objects-refcount2.test 6813s # . 6813s # . 6814s # . 6814s # . 6814s # . 6814s # . 6814s # . 6814s # . 6814s # . 6815s # . 6815s # . 6815s # . 6815s # . 6815s # . 6815s # . 6815s # . 6816s # . 6816s # . 6816s # . 6816s # . 6816s # . 6816s # . 6816s # . 6816s # . 6817s # . 6817s # . 6817s # . 6817s # . 6817s # . 6817s # . 6817s # . 6818s # . 6818s # . 6818s # . 6818s # . 6818s # . 6818s # Executing: glib/objects-refcount2.test 6818s # . 6818s # . 6818s # . 6819s # . 6819s # . 6819s # . 6819s # . 6819s # . 6819s # . 6819s # . 6820s # . 6820s # . 6820s # . 6820s # . 6820s # . 6820s # . 6820s # . 6820s # . 6821s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6822s # . 6823s # . 6823s # . 6823s # . 6823s # . 6823s # Executing: glib/objects-refcount2.test 6823s # . 6823s # . 6824s # . 6824s # . 6824s # . 6824s # . 6824s # . 6824s # . 6825s # . 6825s # . 6825s # . 6825s # . 6825s # . 6825s # . 6825s # . 6826s # . 6826s # . 6826s # . 6826s # . 6826s # . 6826s # . 6826s # . 6827s # . 6827s # . 6828s # . 6828s # Executing: glib/objects-refcount2.test 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6828s # . 6829s # . 6829s # . 6829s # . 6829s # . 6829s # . 6829s # . 6829s # . 6830s # . 6830s # . 6830s # . 6830s # . 6830s # . 6830s # . 6830s # . 6831s # . 6831s # . 6831s # . 6831s # . 6831s # . 6831s # . 6831s # . 6831s # . 6832s # . 6832s # . 6832s # . 6832s # . 6832s # . 6832s # . 6832s # . 6833s # . 6833s # . 6833s # . 6833s # . 6833s # . 6833s # Executing: glib/objects-refcount2.test 6833s # . 6833s # . 6834s # . 6834s # . 6834s # . 6834s # . 6834s # . 6834s # . 6834s # . 6835s # . 6835s # . 6835s # . 6835s # . 6835s # . 6835s # . 6835s # . 6835s # . 6836s # . 6836s # . 6836s # . 6836s # . 6836s # . 6836s # . 6836s # . 6836s # . 6837s # . 6837s # . 6837s # . 6837s # . 6837s # . 6837s # . 6837s # . 6838s # . 6838s # . 6838s # . 6838s # . 6838s # . 6838s # Executing: glib/objects-refcount2.test 6838s # . 6838s # . 6839s # . 6839s # . 6839s # . 6839s # . 6839s # . 6839s # . 6839s # . 6839s # . 6840s # . 6840s # . 6840s # . 6840s # . 6840s # . 6840s # . 6840s # . 6840s # . 6841s # . 6841s # . 6841s # . 6841s # . 6841s # . 6841s # . 6841s # . 6841s # . 6842s # . 6842s # . 6842s # . 6842s # . 6842s # . 6842s # . 6842s # . 6842s # . 6843s # . 6843s # . 6843s # . 6843s # . 6843s # . 6843s # Executing: glib/objects-refcount2.test 6843s # . 6844s # . 6844s # . 6844s # . 6844s # . 6844s # . 6844s # . 6844s # . 6845s # . 6845s # . 6845s # . 6845s # . 6845s # . 6845s # . 6845s # . 6845s # . 6846s # . 6846s # . 6846s # . 6846s # . 6846s # . 6846s # . 6846s # . 6847s # . 6847s # . 6847s # . 6847s # . 6847s # . 6847s # . 6847s # . 6847s # . 6848s # . 6848s # . 6848s # . 6848s # . 6848s # . 6848s # Executing: glib/objects-refcount2.test 6848s # . 6848s # . 6849s # . 6849s # . 6849s # . 6849s # . 6849s # . 6849s # . 6849s # . 6849s # . 6850s # . 6850s # . 6850s # . 6850s # . 6850s # . 6850s # . 6850s # . 6850s # . 6851s # . 6851s # . 6851s # . 6851s # . 6851s # . 6851s # . 6851s # . 6851s # . 6852s # . 6852s # . 6852s # . 6852s # . 6852s # . 6852s # . 6852s # . 6853s # . 6853s # . 6853s # . 6853s # . 6853s # . 6853s # Executing: glib/objects-refcount2.test 6853s # . 6853s # . 6854s # . 6854s # . 6854s # . 6854s # . 6854s # . 6854s # . 6854s # . 6854s # . 6855s # . 6855s # . 6855s # . 6855s # . 6855s # . 6855s # . 6856s # . 6856s # . 6856s # . 6856s # . 6856s # . 6856s # . 6857s # . 6857s # . 6857s # . 6857s # . 6857s # . 6857s # . 6857s # . 6858s # . 6858s # . 6858s # . 6858s # . 6858s # . 6858s # Executing: glib/objects-refcount2.test 6858s # . 6858s # . 6859s # . 6859s # . 6859s # . 6859s # . 6859s # . 6859s # . 6859s # . 6860s # . 6860s # . 6860s # . 6860s # . 6860s # . 6860s # . 6860s # . 6860s # . 6861s # . 6861s # dispose 0x55650f95f3f0! 6861s # 6861s ok 1 /gobject/refcount/object-advanced 6861s # slow test /gobject/refcount/object-advanced executed in 137.45 secs 6861s # End of refcount tests 6861s # End of gobject tests 6861s ok - glib/objects-refcount2.test 6861s # Running test: glib/unix-mounts.test 6861s TAP version 14 6861s # random seed: R02S773f3b366f74ae9215b55e71be8591e4 6861s 1..4 6861s # Start of unix-mounts tests 6861s ok 1 /unix-mounts/is-system-fs-type 6861s ok 2 /unix-mounts/is-system-device-path 6861s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 6861s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 6861s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 6861s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 6861s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 6861s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 6861s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 6861s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 6861s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 6861s ok 3 /unix-mounts/get-mount-points 6861s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 6861s ok 4 /unix-mounts/get-mount-entries 6861s # End of unix-mounts tests 6861s ok - glib/unix-mounts.test 6861s # Running test: glib/gdbus-subscribe.test 6861s TAP version 14 6861s # random seed: R02S07fa45b22d80e2089c4665b59872596c 6861s 1..24 6861s # Start of gdbus tests 6861s # Start of subscribe tests 6861s # Start of conn tests 6861s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/home 6861s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/cache 6861s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/system-config2 6861s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/config 6861s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/system-data2 6861s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/data 6861s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/state 6861s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/simple/.dirs/runtime 6862s # subscriber is :1.0 6862s # service is :1.1 6862s # service 2 is :1.2 6862s # attacker is :1.3 6862s # Waiting for AddMatch to be processed 6862s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 6862s # Step 0: emitting signal 6862s # Sender: service 6862s # Destination: (broadcast) 6862s # Path: /org/gtk/GDBus/ExampleInterface 6862s # Interface: org.gtk.GDBus.ExampleInterface 6862s # Member: Foo 6862s # Argument 0: (not a string) 6862s # Waiting for signal to reach message bus 6862s # Step 1: adding subscription 6862s # Sender: (any) 6862s # Path: /org/gtk/GDBus/ExampleInterface 6862s # Interface: org.gtk.GDBus.ExampleInterface 6862s # Member: (any) 6862s # String argument 0: (any) 6862s # Flags: 0 6862s # Subscribing via connection 6862s # Waiting for AddMatch to be processed 6862s # Step 2: emitting signal 6862s # Sender: service 6862s # Destination: (broadcast) 6862s # Path: /org/gtk/GDBus/ExampleInterface 6862s # Interface: org.gtk.GDBus.ExampleInterface 6862s # Member: Foo 6862s # Argument 0: (not a string) 6862s # Waiting for signal to reach message bus 6862s # Signal received from service :1.1 6862s # Signal received from service :1.1 via connection 6862s # Path: /org/gtk/GDBus/ExampleInterface 6862s # Interface: org.gtk.GDBus.ExampleInterface 6862s # Member: Foo 6862s # Argument 0: (not a string) 6862s # Sent in step: 2 6862s # Received Finished signal from subscriber :1.0 6862s # Received Finished signal from service :1.1 6862s # Received Finished signal from service 2 :1.2 6862s # Received Finished signal from attacker :1.3 6862s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 6862s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s ok 1 /gdbus/subscribe/conn/simple 6862s # slow test /gdbus/subscribe/conn/simple executed in 0.69 secs 6862s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 6862s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 6862s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 6862s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 6862s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 6862s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 6862s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 6862s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6862s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6862s # subscriber is :1.0 6862s # service is :1.1 6862s # service 2 is :1.2 6862s # attacker is :1.3 6862s # Waiting for AddMatch to be processed 6863s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 6863s # Step 0: adding subscription 6863s # Sender: (any) 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: (any) 6863s # String argument 0: (any) 6863s # Flags: 0 6863s # Subscribing via connection 6863s # Waiting for AddMatch to be processed 6863s # Step 1: emitting signal 6863s # Sender: service 6863s # Destination: (broadcast) 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Waiting for signal to reach message bus 6863s # Step 2: emitting signal 6863s # Sender: service 2 6863s # Destination: (broadcast) 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Waiting for signal to reach message bus 6863s # Step 3: emitting signal 6863s # Sender: service 6863s # Destination: subscriber :1.0 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Waiting for signal to reach message bus 6863s # Step 4: emitting signal 6863s # Sender: service 2 6863s # Destination: subscriber :1.0 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Waiting for signal to reach message bus 6863s # Signal received from service :1.1 6863s # Signal received from service :1.1 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 1 6863s # Signal received from service 2 :1.2 6863s # Signal received from service 2 :1.2 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 2 6863s # Signal received from service :1.1 6863s # Signal received from service :1.1 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 3 6863s # Signal received from service 2 :1.2 6863s # Signal received from service 2 :1.2 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 4 6863s # Received Finished signal from subscriber :1.0 6863s # Received Finished signal from service :1.1 6863s # Received Finished signal from service 2 :1.2 6863s # Received Finished signal from attacker :1.3 6863s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 6863s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 6863s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 6863s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 6863s # slow test /gdbus/subscribe/conn/broadcast_from_anyone executed in 0.66 secs 6863s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/home 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/cache 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/system-config2 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/config 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/system-data2 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/data 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/state 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/match_twice/.dirs/runtime 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6863s # subscriber is :1.0 6863s # service is :1.1 6863s # service 2 is :1.2 6863s # attacker is :1.3 6863s # Waiting for AddMatch to be processed 6863s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 6863s # Step 0: adding subscription 6863s # Sender: service :1.1 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: (any) 6863s # String argument 0: (any) 6863s # Flags: 0 6863s # Subscribing via connection 6863s # Waiting for AddMatch to be processed 6863s # Step 1: adding subscription 6863s # Sender: (any) 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: (any) 6863s # Member: (any) 6863s # String argument 0: (any) 6863s # Flags: 0 6863s # Subscribing via connection 6863s # Waiting for AddMatch to be processed 6863s # Step 2: adding subscription 6863s # Sender: (any) 6863s # Path: (any) 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: (any) 6863s # String argument 0: (any) 6863s # Flags: 0 6863s # Subscribing via connection 6863s # Waiting for AddMatch to be processed 6863s # Step 3: adding subscription 6863s # Sender: service :1.1 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: (any) 6863s # String argument 0: (any) 6863s # Flags: 0 6863s # Subscribing via connection 6863s # Waiting for AddMatch to be processed 6863s # Step 4: emitting signal 6863s # Sender: service 6863s # Destination: (broadcast) 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Waiting for signal to reach message bus 6863s # Signal received from service :1.1 6863s # Signal received from service :1.1 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 4 6863s # Signal received from service :1.1 6863s # Signal received from service :1.1 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 4 6863s # Signal received from service :1.1 6863s # Signal received from service :1.1 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 4 6863s # Signal received from service :1.1 6863s # Signal received from service :1.1 via connection 6863s # Path: /org/gtk/GDBus/ExampleInterface 6863s # Interface: org.gtk.GDBus.ExampleInterface 6863s # Member: Foo 6863s # Argument 0: (not a string) 6863s # Sent in step: 4 6863s # Received Finished signal from subscriber :1.0 6863s # Received Finished signal from service :1.1 6863s # Received Finished signal from service 2 :1.2 6863s # Received Finished signal from attacker :1.3 6863s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s ok 3 /gdbus/subscribe/conn/match_twice 6863s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 6863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 6863s # Executing: glib/gdbus-subscribe.test 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6863s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6863s # subscriber is :1.0 6863s # service is :1.1 6864s # service 2 is :1.2 6864s # attacker is :1.3 6864s # Waiting for AddMatch to be processed 6864s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 6864s # Step 0: adding subscription 6864s # Sender: service :1.1 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: (any) 6864s # String argument 0: (any) 6864s # Flags: 0 6864s # Subscribing via connection 6864s # Waiting for AddMatch to be processed 6864s # Step 1: emitting signal 6864s # Sender: attacker 6864s # Destination: (broadcast) 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: Foo 6864s # Argument 0: (not a string) 6864s # Waiting for signal to reach message bus 6864s # Step 2: emitting signal 6864s # Sender: attacker 6864s # Destination: subscriber :1.0 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: Foo 6864s # Argument 0: (not a string) 6864s # Waiting for signal to reach message bus 6864s # Step 3: emitting signal 6864s # Sender: service 6864s # Destination: (broadcast) 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: Foo 6864s # Argument 0: (not a string) 6864s # Waiting for signal to reach message bus 6864s # Signal received from service :1.1 6864s # Signal received from service :1.1 via connection 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: Foo 6864s # Argument 0: (not a string) 6864s # Sent in step: 3 6864s # Received Finished signal from subscriber :1.0 6864s # Received Finished signal from service :1.1 6864s # Received Finished signal from service 2 :1.2 6864s # Received Finished signal from attacker :1.3 6864s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 6864s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6864s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 6864s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6864s # subscriber is :1.0 6864s # service is :1.1 6864s # service 2 is :1.2 6864s # attacker is :1.3 6864s # Waiting for AddMatch to be processed 6864s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 6864s # Step 0: adding subscription 6864s # Sender: :0.this.had.better.not.exist 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: (any) 6864s # String argument 0: (any) 6864s # Flags: 0 6864s # Subscribing via connection 6864s # Waiting for AddMatch to be processed 6864s # Step 1: emitting signal 6864s # Sender: attacker 6864s # Destination: (broadcast) 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: Foo 6864s # Argument 0: (not a string) 6864s # Waiting for signal to reach message bus 6864s # Step 2: emitting signal 6864s # Sender: attacker 6864s # Destination: subscriber :1.0 6864s # Path: /org/gtk/GDBus/ExampleInterface 6864s # Interface: org.gtk.GDBus.ExampleInterface 6864s # Member: Foo 6864s # Argument 0: (not a string) 6864s # Waiting for signal to reach message bus 6864s # Received Finished signal from subscriber :1.0 6864s # Received Finished signal from service :1.1 6864s # Received Finished signal from service 2 :1.2 6864s # Received Finished signal from attacker :1.3 6864s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 6864s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 6864s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 6864s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6864s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6864s # subscriber is :1.0 6864s # service is :1.1 6865s # service 2 is :1.2 6865s # attacker is :1.3 6865s # Waiting for AddMatch to be processed 6865s # /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 6865s # Step 0: claiming bus name 6865s # Name: org.gtk.Test.AlreadyOwned 6865s # Owner: service 6865s # Step 1: adding subscription 6865s # Sender: org.gtk.Test.AlreadyOwned 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: (any) 6865s # String argument 0: (any) 6865s # Flags: 0 6865s # Subscribing via connection 6865s # Waiting for AddMatch to be processed 6865s # Step 2: adding subscription 6865s # Sender: org.gtk.Test.OwnedLater 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: (any) 6865s # String argument 0: (any) 6865s # Flags: 0 6865s # Subscribing via connection 6865s # Waiting for AddMatch to be processed 6865s # Step 3: emitting signal 6865s # Sender: attacker 6865s # Destination: (broadcast) 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: Foo 6865s # Argument 0: (not a string) 6865s # Waiting for signal to reach message bus 6865s # Step 4: emitting signal 6865s # Sender: attacker 6865s # Destination: subscriber :1.0 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: Foo 6865s # Argument 0: (not a string) 6865s # Waiting for signal to reach message bus 6865s # Step 5: emitting signal 6865s # Sender: service 6865s # Destination: (broadcast) 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: Foo 6865s # Argument 0: (not a string) 6865s # Waiting for signal to reach message bus 6865s # Step 6: claiming bus name 6865s # Name: org.gtk.Test.OwnedLater 6865s # Owner: service 6865s # Step 7: emitting signal 6865s # Sender: service 6865s # Destination: (broadcast) 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: Foo 6865s # Argument 0: (not a string) 6865s # Waiting for signal to reach message bus 6865s # Signal received from service :1.1 6865s # Signal received from service :1.1 via connection 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: Foo 6865s # Argument 0: (not a string) 6865s # Sent in step: 5 6865s # Signal received from service :1.1 6865s # Signal received from service :1.1 via connection 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: Foo 6865s # Argument 0: (not a string) 6865s # Sent in step: 7 6865s # Signal received from service :1.1 6865s # Signal received from service :1.1 via connection 6865s # Path: /org/gtk/GDBus/ExampleInterface 6865s # Interface: org.gtk.GDBus.ExampleInterface 6865s # Member: Foo 6865s # Argument 0: (not a string) 6865s # Sent in step: 7 6865s # Received Finished signal from subscriber :1.0 6865s # Received Finished signal from service :1.1 6865s # Received Finished signal from service 2 :1.2 6865s # Received Finished signal from attacker :1.3 6865s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 6865s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 6865s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 6865s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 6865s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 6865s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 6865s # slow test /gdbus/subscribe/conn/limit_by_well_known_name executed in 0.50 secs 6865s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6865s # subscriber is :1.0 6865s # service is :1.1 6865s # service 2 is :1.2 6865s # attacker is :1.3 6865s # Waiting for AddMatch to be processed 6865s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 6865s # Step 0: adding subscription 6865s # Sender: org.freedesktop.DBus 6865s # Path: /org/freedesktop/DBus 6865s # Interface: org.freedesktop.DBus 6865s # Member: (any) 6865s # String argument 0: (any) 6865s # Flags: 0 6865s # Subscribing via connection 6865s # Waiting for AddMatch to be processed 6865s # Step 1: emitting signal 6865s # Sender: attacker 6865s # Destination: (broadcast) 6865s # Path: /org/freedesktop/DBus 6865s # Interface: org.freedesktop.DBus 6865s # Member: NameOwnerChanged 6865s # String argument 0: would I lie to you? 6865s # Waiting for signal to reach message bus 6865s # Step 2: emitting signal 6865s # Sender: attacker 6865s # Destination: subscriber :1.0 6865s # Path: /org/freedesktop/DBus 6865s # Interface: org.freedesktop.DBus 6865s # Member: NameOwnerChanged 6865s # Waiting for signal to reach message bus 6865s # Step 3: claiming bus name 6865s # Name: org.gtk.Test.OwnedLater 6865s # Owner: service 6865s # Signal received from message bus org.freedesktop.DBus 6865s # Signal received from (unused) org.freedesktop.DBus via connection 6865s # Path: /org/freedesktop/DBus 6865s # Interface: org.freedesktop.DBus 6865s # Member: NameOwnerChanged 6865s # Received Finished signal from subscriber :1.0 6865s # Received Finished signal from service :1.1 6865s # Received Finished signal from service 2 :1.2 6865s # Received Finished signal from attacker :1.3 6865s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 6865s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6865s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 6865s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 6865s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6865s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6865s # subscriber is :1.0 6865s # service is :1.1 6865s # service 2 is :1.2 6865s # attacker is :1.3 6865s # Waiting for AddMatch to be processed 6865s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 6865s # Step 0: claiming bus name 6865s # Name: org.gtk.Test.AlreadyOwned 6865s # Owner: service 6866s # Step 1: adding subscription 6866s # Sender: org.gtk.Test.AlreadyOwned 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: (any) 6866s # String argument 0: (any) 6866s # Flags: 0 6866s # Subscribing via connection 6866s # Immediately unsubscribing 6866s # Waiting for AddMatch to be processed 6866s # Step 2: emitting signal 6866s # Sender: service 6866s # Destination: (broadcast) 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: Foo 6866s # Argument 0: (not a string) 6866s # Waiting for signal to reach message bus 6866s # Received Finished signal from subscriber :1.0 6866s # Received Finished signal from service :1.1 6866s # Received Finished signal from service 2 :1.2 6866s # Received Finished signal from attacker :1.3 6866s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 6866s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 6866s # End of conn tests 6866s # Start of proxy tests 6866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/home 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/cache 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/system-config2 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/config 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/system-data2 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/data 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/state 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/simple/.dirs/runtime 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6866s # subscriber is :1.0 6866s # service is :1.1 6866s # service 2 is :1.2 6866s # attacker is :1.3 6866s # Waiting for AddMatch to be processed 6866s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 6866s # Step 0: emitting signal 6866s # Sender: service 6866s # Destination: (broadcast) 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: Foo 6866s # Argument 0: (not a string) 6866s # Waiting for signal to reach message bus 6866s # Step 1: adding subscription 6866s # Sender: (any) 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: (any) 6866s # String argument 0: (any) 6866s # Flags: 0 6866s # Cannot subscribe via proxy: no bus name 6866s # Waiting for AddMatch to be processed 6866s # Step 2: emitting signal 6866s # Sender: service 6866s # Destination: (broadcast) 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: Foo 6866s # Argument 0: (not a string) 6866s # Waiting for signal to reach message bus 6866s # Received Finished signal from subscriber :1.0 6866s # Received Finished signal from service :1.1 6866s # Received Finished signal from service 2 :1.2 6866s # Received Finished signal from attacker :1.3 6866s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 6866s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s ok 9 /gdbus/subscribe/proxy/simple 6866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 6866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6866s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6866s # subscriber is :1.0 6866s # service is :1.1 6866s # service 2 is :1.2 6866s # attacker is :1.3 6866s # Waiting for AddMatch to be processed 6866s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 6866s # Step 0: adding subscription 6866s # Sender: (any) 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: (any) 6866s # String argument 0: (any) 6866s # Flags: 0 6866s # Cannot subscribe via proxy: no bus name 6866s # Waiting for AddMatch to be processed 6866s # Step 1: emitting signal 6866s # Sender: service 6866s # Destination: (broadcast) 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: Foo 6866s # Argument 0: (not a string) 6866s # Waiting for signal to reach message bus 6866s # Step 2: emitting signal 6866s # Sender: service 2 6866s # Destination: (broadcast) 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: Foo 6866s # Argument 0: (not a string) 6866s # Waiting for signal to reach message bus 6866s # Step 3: emitting signal 6866s # Sender: service 6866s # Destination: subscriber :1.0 6866s # Path: /org/gtk/GDBus/ExampleInterface 6866s # Interface: org.gtk.GDBus.ExampleInterface 6866s # Member: Foo 6866s # Argument 0: (not a string) 6867s # Waiting for signal to reach message bus 6867s # Step 4: emitting signal 6867s # Sender: service 2 6867s # Destination: subscriber :1.0 6867s # Path: /org/gtk/GDBus/ExampleInterface 6867s # Interface: org.gtk.GDBus.ExampleInterface 6867s # Member: Foo 6867s # Argument 0: (not a string) 6867s # Waiting for signal to reach message bus 6867s # Received Finished signal from subscriber :1.0 6867s # Received Finished signal from service :1.1 6867s # Received Finished signal from service 2 :1.2 6867s # Received Finished signal from attacker :1.3 6867s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6867s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6867s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 6867s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 6867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/home 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/cache 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/config 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/data 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/state 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/match_twice/.dirs/runtime 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6867s # subscriber is :1.0 6867s # service is :1.1 6867s # service 2 is :1.2 6867s # attacker is :1.3 6867s # Waiting for AddMatch to be processed 6867s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 6867s # Step 0: adding subscription 6867s # Sender: service :1.1 6867s # Path: /org/gtk/GDBus/ExampleInterface 6867s # Interface: org.gtk.GDBus.ExampleInterface 6867s # Member: (any) 6867s # String argument 0: (any) 6867s # Flags: 0 6867s # Subscribing via proxy 6867s # Waiting for AddMatch to be processed 6867s # Step 1: adding subscription 6867s # Sender: (any) 6867s # Path: /org/gtk/GDBus/ExampleInterface 6867s # Interface: (any) 6867s # Member: (any) 6867s # String argument 0: (any) 6867s # Flags: 0 6867s # Cannot subscribe via proxy: no bus name 6867s # Waiting for AddMatch to be processed 6867s # Step 2: adding subscription 6867s # Sender: (any) 6867s # Path: (any) 6867s # Interface: org.gtk.GDBus.ExampleInterface 6867s # Member: (any) 6867s # String argument 0: (any) 6867s # Flags: 0 6867s # Cannot subscribe via proxy: no bus name 6867s # Waiting for AddMatch to be processed 6867s # Step 3: adding subscription 6867s # Sender: service :1.1 6867s # Path: /org/gtk/GDBus/ExampleInterface 6867s # Interface: org.gtk.GDBus.ExampleInterface 6867s # Member: (any) 6867s # String argument 0: (any) 6867s # Flags: 0 6867s # Subscribing via proxy 6867s # Waiting for AddMatch to be processed 6867s # Step 4: emitting signal 6867s # Sender: service 6867s # Destination: (broadcast) 6867s # Path: /org/gtk/GDBus/ExampleInterface 6867s # Interface: org.gtk.GDBus.ExampleInterface 6867s # Member: Foo 6867s # Argument 0: (not a string) 6867s # Waiting for signal to reach message bus 6867s # Signal received from service :1.1 6867s # Signal received from service :1.1 via proxy 6867s # Path: /org/gtk/GDBus/ExampleInterface 6867s # Interface: org.gtk.GDBus.ExampleInterface 6867s # Member: Foo 6867s # Argument 0: (not a string) 6867s # Sent in step: 4 6867s # Signal received from service :1.1 6867s # Signal received from service :1.1 via proxy 6867s # Path: /org/gtk/GDBus/ExampleInterface 6867s # Interface: org.gtk.GDBus.ExampleInterface 6867s # Member: Foo 6867s # Argument 0: (not a string) 6867s # Sent in step: 4 6867s # Received Finished signal from subscriber :1.0 6867s # Received Finished signal from service :1.1 6867s # Received Finished signal from service 2 :1.2 6867s # Received Finished signal from attacker :1.3 6867s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s ok 11 /gdbus/subscribe/proxy/match_twice 6867s # slow test /gdbus/subscribe/proxy/match_twice executed in 0.58 secs 6867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 6867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6867s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6868s # subscriber is :1.0 6868s # service is :1.1 6868s # service 2 is :1.2 6868s # attacker is :1.3 6868s # Waiting for AddMatch to be processed 6868s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 6868s # Step 0: adding subscription 6868s # Sender: service :1.1 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: (any) 6868s # String argument 0: (any) 6868s # Flags: 0 6868s # Subscribing via proxy 6868s # Waiting for AddMatch to be processed 6868s # Step 1: emitting signal 6868s # Sender: attacker 6868s # Destination: (broadcast) 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: Foo 6868s # Argument 0: (not a string) 6868s # Waiting for signal to reach message bus 6868s # Step 2: emitting signal 6868s # Sender: attacker 6868s # Destination: subscriber :1.0 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: Foo 6868s # Argument 0: (not a string) 6868s # Waiting for signal to reach message bus 6868s # Step 3: emitting signal 6868s # Sender: service 6868s # Destination: (broadcast) 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: Foo 6868s # Argument 0: (not a string) 6868s # Waiting for signal to reach message bus 6868s # Signal received from service :1.1 6868s # Signal received from service :1.1 via proxy 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: Foo 6868s # Argument 0: (not a string) 6868s # Sent in step: 3 6868s # Received Finished signal from subscriber :1.0 6868s # Received Finished signal from service :1.1 6868s # Received Finished signal from service 2 :1.2 6868s # Received Finished signal from attacker :1.3 6868s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6868s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6868s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 6868s # slow test /gdbus/subscribe/proxy/limit_by_unique_name executed in 0.61 secs 6868s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6868s # subscriber is :1.0 6868s # service is :1.1 6868s # service 2 is :1.2 6868s # Executing: glib/gdbus-subscribe.test 6868s # attacker is :1.3 6868s # Waiting for AddMatch to be processed 6868s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 6868s # Step 0: adding subscription 6868s # Sender: :0.this.had.better.not.exist 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: (any) 6868s # String argument 0: (any) 6868s # Flags: 0 6868s # Subscribing via proxy 6868s # Waiting for AddMatch to be processed 6868s # Step 1: emitting signal 6868s # Sender: attacker 6868s # Destination: (broadcast) 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: Foo 6868s # Argument 0: (not a string) 6868s # Waiting for signal to reach message bus 6868s # Step 2: emitting signal 6868s # Sender: attacker 6868s # Destination: subscriber :1.0 6868s # Path: /org/gtk/GDBus/ExampleInterface 6868s # Interface: org.gtk.GDBus.ExampleInterface 6868s # Member: Foo 6868s # Argument 0: (not a string) 6868s # Waiting for signal to reach message bus 6868s # Received Finished signal from subscriber :1.0 6868s # Received Finished signal from service :1.1 6868s # Received Finished signal from service 2 :1.2 6868s # Received Finished signal from attacker :1.3 6868s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6868s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 6868s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 6868s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6868s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6869s # subscriber is :1.0 6869s # service is :1.1 6869s # service 2 is :1.2 6869s # attacker is :1.3 6869s # Waiting for AddMatch to be processed 6869s # /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 6869s # Step 0: claiming bus name 6869s # Name: org.gtk.Test.AlreadyOwned 6869s # Owner: service 6869s # Step 1: adding subscription 6869s # Sender: org.gtk.Test.AlreadyOwned 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: (any) 6869s # String argument 0: (any) 6869s # Flags: 0 6869s # Subscribing via proxy 6869s # Waiting for AddMatch to be processed 6869s # Step 2: adding subscription 6869s # Sender: org.gtk.Test.OwnedLater 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: (any) 6869s # String argument 0: (any) 6869s # Flags: 0 6869s # Subscribing via proxy 6869s # Waiting for AddMatch to be processed 6869s # Step 3: emitting signal 6869s # Sender: attacker 6869s # Destination: (broadcast) 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: Foo 6869s # Argument 0: (not a string) 6869s # Waiting for signal to reach message bus 6869s # Step 4: emitting signal 6869s # Sender: attacker 6869s # Destination: subscriber :1.0 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: Foo 6869s # Argument 0: (not a string) 6869s # Waiting for signal to reach message bus 6869s # Step 5: emitting signal 6869s # Sender: service 6869s # Destination: (broadcast) 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: Foo 6869s # Argument 0: (not a string) 6869s # Waiting for signal to reach message bus 6869s # Step 6: claiming bus name 6869s # Name: org.gtk.Test.OwnedLater 6869s # Owner: service 6869s # Step 7: emitting signal 6869s # Sender: service 6869s # Destination: (broadcast) 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: Foo 6869s # Argument 0: (not a string) 6869s # Waiting for signal to reach message bus 6869s # Signal received from service :1.1 6869s # Signal received from service :1.1 via proxy 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: Foo 6869s # Argument 0: (not a string) 6869s # Sent in step: 5 6869s # Signal received from service :1.1 6869s # Signal received from service :1.1 via proxy 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: Foo 6869s # Argument 0: (not a string) 6869s # Sent in step: 7 6869s # Signal received from service :1.1 6869s # Signal received from service :1.1 via proxy 6869s # Path: /org/gtk/GDBus/ExampleInterface 6869s # Interface: org.gtk.GDBus.ExampleInterface 6869s # Member: Foo 6869s # Argument 0: (not a string) 6869s # Sent in step: 7 6869s # Received Finished signal from subscriber :1.0 6869s # Received Finished signal from service :1.1 6869s # Received Finished signal from service 2 :1.2 6869s # Received Finished signal from attacker :1.3 6869s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 6869s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 6869s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 6869s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 6869s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 6869s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 6869s # slow test /gdbus/subscribe/proxy/limit_by_well_known_name executed in 0.52 secs 6869s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6869s # subscriber is :1.0 6869s # service is :1.1 6869s # service 2 is :1.2 6869s # attacker is :1.3 6869s # Waiting for AddMatch to be processed 6869s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 6869s # Step 0: adding subscription 6869s # Sender: org.freedesktop.DBus 6869s # Path: /org/freedesktop/DBus 6869s # Interface: org.freedesktop.DBus 6869s # Member: (any) 6869s # String argument 0: (any) 6869s # Flags: 0 6869s # Subscribing via proxy 6869s # Waiting for AddMatch to be processed 6869s # Step 1: emitting signal 6869s # Sender: attacker 6869s # Destination: (broadcast) 6869s # Path: /org/freedesktop/DBus 6869s # Interface: org.freedesktop.DBus 6869s # Member: NameOwnerChanged 6869s # String argument 0: would I lie to you? 6869s # Waiting for signal to reach message bus 6869s # Step 2: emitting signal 6869s # Sender: attacker 6869s # Destination: subscriber :1.0 6869s # Path: /org/freedesktop/DBus 6869s # Interface: org.freedesktop.DBus 6869s # Member: NameOwnerChanged 6869s # Waiting for signal to reach message bus 6869s # Step 3: claiming bus name 6869s # Name: org.gtk.Test.OwnedLater 6869s # Owner: service 6869s # Signal received from message bus org.freedesktop.DBus 6869s # Signal received from (unused) org.freedesktop.DBus via proxy 6869s # Path: /org/freedesktop/DBus 6869s # Interface: org.freedesktop.DBus 6869s # Member: NameOwnerChanged 6869s # Received Finished signal from subscriber :1.0 6869s # Received Finished signal from service :1.1 6869s # Received Finished signal from service 2 :1.2 6869s # Received Finished signal from attacker :1.3 6869s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6869s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6869s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 6869s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 6869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6869s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6870s # subscriber is :1.0 6870s # service is :1.1 6870s # service 2 is :1.2 6870s # attacker is :1.3 6870s # Waiting for AddMatch to be processed 6870s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 6870s # Step 0: claiming bus name 6870s # Name: org.gtk.Test.AlreadyOwned 6870s # Owner: service 6870s # Step 1: adding subscription 6870s # Sender: org.gtk.Test.AlreadyOwned 6870s # Path: /org/gtk/GDBus/ExampleInterface 6870s # Interface: org.gtk.GDBus.ExampleInterface 6870s # Member: (any) 6870s # String argument 0: (any) 6870s # Flags: 0 6870s # Subscribing via proxy 6870s # Waiting for AddMatch to be processed 6870s # Step 2: emitting signal 6870s # Sender: service 6870s # Destination: (broadcast) 6870s # Path: /org/gtk/GDBus/ExampleInterface 6870s # Interface: org.gtk.GDBus.ExampleInterface 6870s # Member: Foo 6870s # Argument 0: (not a string) 6870s # Waiting for signal to reach message bus 6870s # Signal received from service :1.1 6870s # Signal received from service :1.1 via proxy 6870s # Path: /org/gtk/GDBus/ExampleInterface 6870s # Interface: org.gtk.GDBus.ExampleInterface 6870s # Member: Foo 6870s # Argument 0: (not a string) 6870s # Sent in step: 2 6870s # Received Finished signal from subscriber :1.0 6870s # Received Finished signal from service :1.1 6870s # Received Finished signal from service 2 :1.2 6870s # Received Finished signal from attacker :1.3 6870s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 6870s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 6870s # End of proxy tests 6870s # Start of parallel tests 6870s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/home 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/cache 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/system-config2 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/config 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/system-data2 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/data 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/state 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/simple/.dirs/runtime 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6870s # subscriber is :1.0 6870s # service is :1.1 6870s # service 2 is :1.2 6870s # attacker is :1.3 6870s # Waiting for AddMatch to be processed 6870s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 6870s # Step 0: emitting signal 6870s # Sender: service 6870s # Destination: (broadcast) 6870s # Path: /org/gtk/GDBus/ExampleInterface 6870s # Interface: org.gtk.GDBus.ExampleInterface 6870s # Member: Foo 6870s # Argument 0: (not a string) 6870s # Waiting for signal to reach message bus 6870s # Step 1: adding subscription 6870s # Sender: (any) 6870s # Path: /org/gtk/GDBus/ExampleInterface 6870s # Interface: org.gtk.GDBus.ExampleInterface 6870s # Member: (any) 6870s # String argument 0: (any) 6870s # Flags: 0 6870s # Subscribing via connection 6870s # Cannot subscribe via proxy: no bus name 6870s # Waiting for AddMatch to be processed 6870s # Step 2: emitting signal 6870s # Sender: service 6870s # Destination: (broadcast) 6870s # Path: /org/gtk/GDBus/ExampleInterface 6870s # Interface: org.gtk.GDBus.ExampleInterface 6870s # Member: Foo 6870s # Argument 0: (not a string) 6870s # Waiting for signal to reach message bus 6870s # Signal received from service :1.1 6870s # Signal received from service :1.1 via connection 6870s # Path: /org/gtk/GDBus/ExampleInterface 6870s # Interface: org.gtk.GDBus.ExampleInterface 6870s # Member: Foo 6870s # Argument 0: (not a string) 6870s # Sent in step: 2 6870s # Received Finished signal from subscriber :1.0 6870s # Received Finished signal from service :1.1 6870s # Received Finished signal from service 2 :1.2 6870s # Received Finished signal from attacker :1.3 6870s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 6870s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 6870s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 6870s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s ok 17 /gdbus/subscribe/parallel/simple 6870s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 6870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6870s # subscriber is :1.0 6871s # service is :1.1 6871s # service 2 is :1.2 6871s # attacker is :1.3 6871s # Waiting for AddMatch to be processed 6871s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 6871s # Step 0: adding subscription 6871s # Sender: (any) 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: (any) 6871s # String argument 0: (any) 6871s # Flags: 0 6871s # Subscribing via connection 6871s # Cannot subscribe via proxy: no bus name 6871s # Waiting for AddMatch to be processed 6871s # Step 1: emitting signal 6871s # Sender: service 6871s # Destination: (broadcast) 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Waiting for signal to reach message bus 6871s # Step 2: emitting signal 6871s # Sender: service 2 6871s # Destination: (broadcast) 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Waiting for signal to reach message bus 6871s # Step 3: emitting signal 6871s # Sender: service 6871s # Destination: subscriber :1.0 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Waiting for signal to reach message bus 6871s # Step 4: emitting signal 6871s # Sender: service 2 6871s # Destination: subscriber :1.0 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Waiting for signal to reach message bus 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 1 6871s # Signal received from service 2 :1.2 6871s # Signal received from service 2 :1.2 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 2 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 3 6871s # Signal received from service 2 :1.2 6871s # Signal received from service 2 :1.2 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 4 6871s # Received Finished signal from subscriber :1.0 6871s # Received Finished signal from service :1.1 6871s # Received Finished signal from service 2 :1.2 6871s # Received Finished signal from attacker :1.3 6871s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 6871s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6871s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 6871s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6871s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 6871s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 6871s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 6871s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 6871s # slow test /gdbus/subscribe/parallel/broadcast_from_anyone executed in 0.55 secs 6871s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/home 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/cache 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/config 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/data 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/state 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/match_twice/.dirs/runtime 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6871s # subscriber is :1.0 6871s # service is :1.1 6871s # service 2 is :1.2 6871s # attacker is :1.3 6871s # Waiting for AddMatch to be processed 6871s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 6871s # Step 0: adding subscription 6871s # Sender: service :1.1 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: (any) 6871s # String argument 0: (any) 6871s # Flags: 0 6871s # Subscribing via connection 6871s # Subscribing via proxy 6871s # Waiting for AddMatch to be processed 6871s # Step 1: adding subscription 6871s # Sender: (any) 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: (any) 6871s # Member: (any) 6871s # String argument 0: (any) 6871s # Flags: 0 6871s # Subscribing via connection 6871s # Cannot subscribe via proxy: no bus name 6871s # Waiting for AddMatch to be processed 6871s # Step 2: adding subscription 6871s # Sender: (any) 6871s # Path: (any) 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: (any) 6871s # String argument 0: (any) 6871s # Flags: 0 6871s # Subscribing via connection 6871s # Cannot subscribe via proxy: no bus name 6871s # Waiting for AddMatch to be processed 6871s # Step 3: adding subscription 6871s # Sender: service :1.1 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: (any) 6871s # String argument 0: (any) 6871s # Flags: 0 6871s # Subscribing via connection 6871s # Subscribing via proxy 6871s # Waiting for AddMatch to be processed 6871s # Step 4: emitting signal 6871s # Sender: service 6871s # Destination: (broadcast) 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Waiting for signal to reach message bus 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 4 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via proxy 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 4 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 4 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via proxy 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 4 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 4 6871s # Signal received from service :1.1 6871s # Signal received from service :1.1 via connection 6871s # Path: /org/gtk/GDBus/ExampleInterface 6871s # Interface: org.gtk.GDBus.ExampleInterface 6871s # Member: Foo 6871s # Argument 0: (not a string) 6871s # Sent in step: 4 6871s # Received Finished signal from subscriber :1.0 6871s # Received Finished signal from service :1.1 6871s # Received Finished signal from service 2 :1.2 6871s # Received Finished signal from attacker :1.3 6871s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 6871s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s ok 19 /gdbus/subscribe/parallel/match_twice 6871s # slow test /gdbus/subscribe/parallel/match_twice executed in 0.51 secs 6871s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 6871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6872s # subscriber is :1.0 6872s # service is :1.1 6872s # service 2 is :1.2 6872s # attacker is :1.3 6872s # Waiting for AddMatch to be processed 6872s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 6872s # Step 0: adding subscription 6872s # Sender: service :1.1 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: (any) 6872s # String argument 0: (any) 6872s # Flags: 0 6872s # Subscribing via connection 6872s # Subscribing via proxy 6872s # Waiting for AddMatch to be processed 6872s # Step 1: emitting signal 6872s # Sender: attacker 6872s # Destination: (broadcast) 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: Foo 6872s # Argument 0: (not a string) 6872s # Waiting for signal to reach message bus 6872s # Step 2: emitting signal 6872s # Sender: attacker 6872s # Destination: subscriber :1.0 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: Foo 6872s # Argument 0: (not a string) 6872s # Waiting for signal to reach message bus 6872s # Step 3: emitting signal 6872s # Sender: service 6872s # Destination: (broadcast) 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: Foo 6872s # Argument 0: (not a string) 6872s # Waiting for signal to reach message bus 6872s # Signal received from service :1.1 6872s # Signal received from service :1.1 via connection 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: Foo 6872s # Argument 0: (not a string) 6872s # Sent in step: 3 6872s # Signal received from service :1.1 6872s # Signal received from service :1.1 via proxy 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: Foo 6872s # Argument 0: (not a string) 6872s # Sent in step: 3 6872s # Received Finished signal from subscriber :1.0 6872s # Received Finished signal from service :1.1 6872s # Received Finished signal from service 2 :1.2 6872s # Received Finished signal from attacker :1.3 6872s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 6872s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6872s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6872s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6872s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 6872s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 6872s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6872s # subscriber is :1.0 6872s # service is :1.1 6872s # service 2 is :1.2 6872s # attacker is :1.3 6872s # Waiting for AddMatch to be processed 6872s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 6872s # Step 0: adding subscription 6872s # Sender: :0.this.had.better.not.exist 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: (any) 6872s # String argument 0: (any) 6872s # Flags: 0 6872s # Subscribing via connection 6872s # Subscribing via proxy 6872s # Waiting for AddMatch to be processed 6872s # Step 1: emitting signal 6872s # Sender: attacker 6872s # Destination: (broadcast) 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: Foo 6872s # Argument 0: (not a string) 6872s # Waiting for signal to reach message bus 6872s # Step 2: emitting signal 6872s # Sender: attacker 6872s # Destination: subscriber :1.0 6872s # Path: /org/gtk/GDBus/ExampleInterface 6872s # Interface: org.gtk.GDBus.ExampleInterface 6872s # Member: Foo 6872s # Argument 0: (not a string) 6872s # Waiting for signal to reach message bus 6872s # Received Finished signal from subscriber :1.0 6872s # Received Finished signal from service :1.1 6872s # Received Finished signal from service 2 :1.2 6872s # Received Finished signal from attacker :1.3 6872s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 6872s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6872s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6872s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 6872s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 6872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6873s # subscriber is :1.0 6873s # service is :1.1 6873s # service 2 is :1.2 6873s # attacker is :1.3 6873s # Waiting for AddMatch to be processed 6873s # /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 6873s # Step 0: claiming bus name 6873s # Name: org.gtk.Test.AlreadyOwned 6873s # Owner: service 6873s # Step 1: adding subscription 6873s # Sender: org.gtk.Test.AlreadyOwned 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: (any) 6873s # String argument 0: (any) 6873s # Flags: 0 6873s # Subscribing via connection 6873s # Subscribing via proxy 6873s # Waiting for AddMatch to be processed 6873s # Step 2: adding subscription 6873s # Sender: org.gtk.Test.OwnedLater 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: (any) 6873s # String argument 0: (any) 6873s # Flags: 0 6873s # Subscribing via connection 6873s # Subscribing via proxy 6873s # Waiting for AddMatch to be processed 6873s # Step 3: emitting signal 6873s # Sender: attacker 6873s # Destination: (broadcast) 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Waiting for signal to reach message bus 6873s # Step 4: emitting signal 6873s # Sender: attacker 6873s # Destination: subscriber :1.0 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Waiting for signal to reach message bus 6873s # Step 5: emitting signal 6873s # Sender: service 6873s # Destination: (broadcast) 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Waiting for signal to reach message bus 6873s # Step 6: claiming bus name 6873s # Name: org.gtk.Test.OwnedLater 6873s # Owner: service 6873s # Step 7: emitting signal 6873s # Sender: service 6873s # Destination: (broadcast) 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Waiting for signal to reach message bus 6873s # Signal received from service :1.1 6873s # Signal received from service :1.1 via connection 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Sent in step: 5 6873s # Signal received from service :1.1 6873s # Signal received from service :1.1 via proxy 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Sent in step: 5 6873s # Signal received from service :1.1 6873s # Signal received from service :1.1 via connection 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Sent in step: 7 6873s # Signal received from service :1.1 6873s # Signal received from service :1.1 via proxy 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Sent in step: 7 6873s # Signal received from service :1.1 6873s # Signal received from service :1.1 via connection 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Sent in step: 7 6873s # Signal received from service :1.1 6873s # Signal received from service :1.1 via proxy 6873s # Path: /org/gtk/GDBus/ExampleInterface 6873s # Interface: org.gtk.GDBus.ExampleInterface 6873s # Member: Foo 6873s # Argument 0: (not a string) 6873s # Sent in step: 7 6873s # Received Finished signal from subscriber :1.0 6873s # Received Finished signal from service :1.1 6873s # Received Finished signal from service 2 :1.2 6873s # Received Finished signal from attacker :1.3 6873s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 6873s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 6873s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 6873s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 6873s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 6873s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 6873s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 6873s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 6873s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 6873s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 6873s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 6873s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 6873s # slow test /gdbus/subscribe/parallel/limit_by_well_known_name executed in 0.50 secs 6873s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6873s # subscriber is :1.0 6873s # service is :1.1 6873s # service 2 is :1.2 6873s # Executing: glib/gdbus-subscribe.test 6873s # attacker is :1.3 6873s # Waiting for AddMatch to be processed 6873s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 6873s # Step 0: adding subscription 6873s # Sender: org.freedesktop.DBus 6873s # Path: /org/freedesktop/DBus 6873s # Interface: org.freedesktop.DBus 6873s # Member: (any) 6873s # String argument 0: (any) 6873s # Flags: 0 6873s # Subscribing via connection 6873s # Subscribing via proxy 6873s # Waiting for AddMatch to be processed 6873s # Step 1: emitting signal 6873s # Sender: attacker 6873s # Destination: (broadcast) 6873s # Path: /org/freedesktop/DBus 6873s # Interface: org.freedesktop.DBus 6873s # Member: NameOwnerChanged 6873s # String argument 0: would I lie to you? 6873s # Waiting for signal to reach message bus 6873s # Step 2: emitting signal 6873s # Sender: attacker 6873s # Destination: subscriber :1.0 6873s # Path: /org/freedesktop/DBus 6873s # Interface: org.freedesktop.DBus 6873s # Member: NameOwnerChanged 6873s # Waiting for signal to reach message bus 6873s # Step 3: claiming bus name 6873s # Name: org.gtk.Test.OwnedLater 6873s # Owner: service 6873s # Signal received from message bus org.freedesktop.DBus 6873s # Signal received from (unused) org.freedesktop.DBus via connection 6873s # Path: /org/freedesktop/DBus 6873s # Interface: org.freedesktop.DBus 6873s # Member: NameOwnerChanged 6873s # Signal received from message bus org.freedesktop.DBus 6873s # Signal received from (unused) org.freedesktop.DBus via proxy 6873s # Path: /org/freedesktop/DBus 6873s # Interface: org.freedesktop.DBus 6873s # Member: NameOwnerChanged 6873s # Received Finished signal from subscriber :1.0 6873s # Received Finished signal from service :1.1 6873s # Received Finished signal from service 2 :1.2 6873s # Received Finished signal from attacker :1.3 6873s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 6873s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 6873s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6873s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 6873s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 6873s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 6873s # slow test /gdbus/subscribe/parallel/limit_to_message_bus executed in 0.57 secs 6873s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 6873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_KRBC62/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6873s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6874s # subscriber is :1.0 6874s # service is :1.1 6874s # service 2 is :1.2 6874s # attacker is :1.3 6874s # Waiting for AddMatch to be processed 6874s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 6874s # Step 0: claiming bus name 6874s # Name: org.gtk.Test.AlreadyOwned 6874s # Owner: service 6874s # Step 1: adding subscription 6874s # Sender: org.gtk.Test.AlreadyOwned 6874s # Path: /org/gtk/GDBus/ExampleInterface 6874s # Interface: org.gtk.GDBus.ExampleInterface 6874s # Member: (any) 6874s # String argument 0: (any) 6874s # Flags: 0 6874s # Subscribing via connection 6874s # Immediately unsubscribing 6874s # Subscribing via proxy 6874s # Waiting for AddMatch to be processed 6874s # Step 2: emitting signal 6874s # Sender: service 6874s # Destination: (broadcast) 6874s # Path: /org/gtk/GDBus/ExampleInterface 6874s # Interface: org.gtk.GDBus.ExampleInterface 6874s # Member: Foo 6874s # Argument 0: (not a string) 6874s # Waiting for signal to reach message bus 6874s # Signal received from service :1.1 6874s # Signal received from service :1.1 via proxy 6874s # Path: /org/gtk/GDBus/ExampleInterface 6874s # Interface: org.gtk.GDBus.ExampleInterface 6874s # Member: Foo 6874s # Argument 0: (not a string) 6874s # Sent in step: 2 6874s # Received Finished signal from subscriber :1.0 6874s # Received Finished signal from service :1.1 6874s # Received Finished signal from service 2 :1.2 6874s # Received Finished signal from attacker :1.3 6874s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 6874s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 6874s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 6874s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 6874s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6874s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6874s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6874s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6874s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6874s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 6874s # End of parallel tests 6875s # End of subscribe tests 6875s # End of gdbus tests 6875s ok - glib/gdbus-subscribe.test 6875s TAP version 14 6875s # random seed: R02Sf9b52c2f44968b8bee684554e3050dcf 6875s 1..3 6875s # Start of fileattributematcher tests 6875s ok 1 /fileattributematcher/exact 6875s ok 2 /fileattributematcher/equality 6875s ok 3 /fileattributematcher/subtract 6875s # End of fileattributematcher tests 6875s TAP version 14 6875s # random seed: R02Sb850228995bb3c34cb6fec59dde935a5 6875s 1..3 6875s # Start of gvfs tests 6875s ok 1 /gvfs/local 6875s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 6875s ok 2 /gvfs/register-scheme 6875s # Start of resource tests 6875s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 6875s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 6875s ok 3 /gvfs/resource/malformed-escaping 6875s # End of resource tests 6875s # End of gvfs tests 6875s # Running test: glib/fileattributematcher.test 6875s ok - glib/fileattributematcher.test 6875s # Running test: glib/vfs.test 6875s ok - glib/vfs.test 6875s # Running test: glib/gdbus-serialization.test 6875s TAP version 14 6875s # random seed: R02S1820a0aefec2358d92356ca18f7b67f4 6875s 1..18 6875s # Start of gdbus tests 6875s # Start of message-serialize tests 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/basic/.dirs/runtime 6875s ok 1 /gdbus/message-serialize/basic 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/complex/.dirs/runtime 6875s ok 2 /gdbus/message-serialize/complex 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/invalid/.dirs/runtime 6875s ok 3 /gdbus/message-serialize/invalid 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/.dirs/runtime 6875s ok 4 /gdbus/message-serialize/header-checks 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/double-array/.dirs/runtime 6875s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 6875s ok 5 /gdbus/message-serialize/double-array 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/empty-structure/.dirs/runtime 6875s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 6875s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 6875s ok 6 /gdbus/message-serialize/empty-structure 6875s # Start of header-checks tests 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-serialize/header-checks/valid/.dirs/runtime 6875s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 6875s ok 7 /gdbus/message-serialize/header-checks/valid 6875s # End of header-checks tests 6875s # End of message-serialize tests 6875s # Start of message-parse tests 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 6875s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 6875s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/non-signature-header/.dirs/runtime 6875s ok 9 /gdbus/message-parse/non-signature-header 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-signature-header/.dirs/runtime 6875s ok 10 /gdbus/message-parse/empty-signature-header 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/multiple-signature-header/.dirs/runtime 6875s ok 11 /gdbus/message-parse/multiple-signature-header 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/over-long-signature-header/.dirs/runtime 6875s ok 12 /gdbus/message-parse/over-long-signature-header 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-header-nesting/.dirs/runtime 6875s ok 13 /gdbus/message-parse/deep-header-nesting 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/deep-body-nesting/.dirs/runtime 6875s ok 14 /gdbus/message-parse/deep-body-nesting 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/truncated/.dirs/runtime 6875s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 6875s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 6875s ok 15 /gdbus/message-parse/truncated 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/empty-structure/.dirs/runtime 6875s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 6875s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 6875s ok 16 /gdbus/message-parse/empty-structure 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/missing-header/.dirs/runtime 6875s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 6875s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 6875s ok 17 /gdbus/message-parse/missing-header 6875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/home 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/cache 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/system-config2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/config 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/system-data2 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/data 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/state 6875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_5SMQ52/gdbus/message-parse/invalid-header-type/.dirs/runtime 6875s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 6875s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 6875s ok 18 /gdbus/message-parse/invalid-header-type 6875s # End of message-parse tests 6875s # End of gdbus tests 6875s ok - glib/gdbus-serialization.test 6876s # Running test: glib/spawn-path-search.test 6876s TAP version 14 6876s # random seed: R02Sbd341e19a5929b1fca0a411f8a317079 6876s 1..7 6876s # Start of spawn tests 6876s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 6876s # 6876s # this is spawn-test-helper from glib/tests 6876s # 6876s ok 1 /spawn/do-not-search 6876s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 6876s # 6876s # this is spawn-test-helper from path-test-subdir 6876s # 6876s ok 2 /spawn/search-path 6876s # /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. 6876s # 6876s # this is spawn-test-helper from path-test-subdir 6876s # 6876s ok 3 /spawn/search-path-from-envp 6876s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 6876s # 6876s # this is spawn-test-helper from path-test-subdir 6876s # 6876s ok 4 /spawn/search-path-ambiguous 6876s # 6876s # this is spawn-test-helper from path-test-subdir 6876s # 6876s ok 5 /spawn/search-path-heap-allocation 6876s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 6877s # 6877s # this is spawn-test-helper from glib/tests 6877s # 6877s ok 6 /spawn/search-path-fallback-in-environ 6877s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 6877s # 6877s # this is spawn-test-helper from glib/tests 6877s # 6877s ok 7 /spawn/search-path-fallback-in-envp 6877s # End of spawn tests 6877s ok - glib/spawn-path-search.test 6877s # Running test: glib/cxx-14.test 6877s TAP version 14 6877s # random seed: R02S2f64a7b10f37a10faf3b025978525732 6877s 1..2 6877s # Start of gtask tests 6877s # 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. 6877s ok 1 /gtask/name 6877s # Start of name tests 6877s # 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. 6877s ok 2 /gtask/name/macro-wrapper 6877s # End of name tests 6877s # End of gtask tests 6877s ok - glib/cxx-14.test 6877s # Running test: glib/cmph-bdz.test 6878s TAP version 14 6878s # random seed: R02S8734c9b66fabf060ec639f1708b72580 6878s 1..2 6878s # Start of cmph-bdz tests 6878s ok 1 /cmph-bdz/search 6878s ok 2 /cmph-bdz/search-packed 6878s # End of cmph-bdz tests 6878s ok - glib/cmph-bdz.test 6878s # Running test: glib/performance-threaded.test 6878s Running test "liststore-is-a" 6878s # Executing: glib/performance-threaded.test 6879s 547 runs, min/avg/max = 1.418/1.815/4.806 ms 6879s Running test "liststore-interface-peek" 6880s 1645 runs, min/avg/max = 0.496/0.601/2.785 ms 6880s Running test "liststore-interface-peek-same" 6881s 1534 runs, min/avg/max = 0.492/0.648/2.402 ms 6881s ok - glib/performance-threaded.test 6881s # Running test: glib/timeout.test 6881s TAP version 14 6881s # random seed: R02Sa0c156483b5d0c5fbd1286bbcbf97789 6881s 1..5 6881s # Start of timeout tests 6881s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 6883s # Executing: glib/timeout.test 6883s ok 1 /timeout/seconds 6883s # slow test /timeout/seconds executed in 2.12 secs 6885s ok 2 /timeout/seconds-once 6885s # slow test /timeout/seconds-once executed in 2.11 secs 6885s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 6887s ok 3 /timeout/weeks-overflow 6887s # slow test /timeout/weeks-overflow executed in 2.10 secs 6887s ok 4 /timeout/far-future-ready-time 6888s # Executing: glib/timeout.test 6893s # Executing: glib/timeout.test 6898s # Executing: glib/timeout.test 6898s ok 5 /timeout/rounding 6898s # slow test /timeout/rounding executed in 10.84 secs 6898s # End of timeout tests 6898s ok - glib/timeout.test 6898s # Running test: glib/testfilemonitor.test 6899s TAP version 14 6899s # random seed: R02S98d95a99c623f552e55a25ec3b35740f 6899s 1..8 6899s # Start of monitor tests 6899s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 6899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 6899s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 6899s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s # Start of file tests 6899s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 6899s # End of file tests 6899s # End of monitor tests 6899s ok - glib/testfilemonitor.test 6899s # Running test: glib/init.test 6899s TAP version 14 6899s # random seed: R02Sa240aa8cd5e417756bf7d30e995202b6 6899s 1..2 6899s # Start of thread tests 6899s # Start of deprecated tests 6899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/home 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/cache 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_I7IV52/thread/deprecated/init/.dirs/system-config2 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/config 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_I7IV52/thread/deprecated/init/.dirs/system-data2 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/data 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/state 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_I7IV52/thread/deprecated/init/.dirs/runtime 6899s ok 1 /thread/deprecated/init 6899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 6899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_I7IV52/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 6899s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 6899s # End of deprecated tests 6899s # End of thread tests 6899s ok - glib/init.test 6899s # Running test: glib/rand.test 6899s TAP version 14 6899s # random seed: R02S4bcfeace7b041b0ccb449b554cef5ada 6899s 1..2 6899s # Start of rand tests 6900s ok 1 /rand/test-rand 6900s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 6900s ok 2 /rand/double-range 6900s # End of rand tests 6900s ok - glib/rand.test 6900s # Running test: glib/thread-deprecated.test 6900s TAP version 14 6900s # random seed: R02S8fc2909497b919a813ba22c794fec722 6900s 1..6 6900s # Start of thread tests 6900s ok 1 /thread/mutex 6901s ok 2 /thread/static-rec-mutex 6903s # Executing: glib/thread-deprecated.test 6905s ok 3 /thread/static-private 6905s # slow test /thread/static-private executed in 4.44 secs 6908s # Executing: glib/thread-deprecated.test 6910s ok 4 /thread/static-rw-lock 6910s # slow test /thread/static-rw-lock executed in 5.03 secs 6910s ok 5 /thread/once 6913s # Executing: glib/thread-deprecated.test 6918s # Executing: glib/thread-deprecated.test 6920s ok 6 /thread/rerun-all 6920s # slow test /thread/rerun-all executed in 9.90 secs 6920s # End of thread tests 6920s ok - glib/thread-deprecated.test 6920s # Running test: glib/signalgroup.test 6920s TAP version 14 6920s # random seed: R02Sa45e3dc5cf88431d088acbcda0efd68a 6920s 1..9 6920s # Start of GObject tests 6920s # Start of SignalGroup tests 6920s ok 1 /GObject/SignalGroup/invalid 6920s ok 2 /GObject/SignalGroup/simple 6920s ok 3 /GObject/SignalGroup/changing-target 6920s ok 4 /GObject/SignalGroup/blocking 6920s ok 5 /GObject/SignalGroup/weak-ref-target 6920s ok 6 /GObject/SignalGroup/connect-object 6921s ok 7 /GObject/SignalGroup/signal-parsing 6921s ok 8 /GObject/SignalGroup/properties 6921s ok 9 /GObject/SignalGroup/interface 6921s # Start of signal-parsing tests 6921s # End of signal-parsing tests 6921s # End of SignalGroup tests 6921s # End of GObject tests 6921s ok - glib/signalgroup.test 6921s # Running test: glib/logging.test 6921s TAP version 14 6921s # random seed: R02S0b5df89a465b4b4bdd3e0662b5326e99 6921s 1..17 6921s # Start of logging tests 6923s # Executing: glib/logging.test 6928s # Executing: glib/logging.test 6933s # Executing: glib/logging.test 6933s ok 1 /logging/default-handler 6933s # slow test /logging/default-handler executed in 12.56 secs 6933s ok 2 /logging/warnings 6934s ok 3 /logging/fatal-log-mask 6934s # bu-DEBUG: message 6934s # ba-DEBUG: message 6934s # ba-INFO: message 6934s ok 4 /logging/set-handler 6934s ok 5 /logging/print-handler 6934s ok 6 /logging/printerr-handler 6934s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 6934s # The Log Message Handler 6934s # 6934s # The Good Fail Message Handler 6934s # 6934s ok 7 /logging/653052 6934s ok 8 /logging/gibberish 6934s # Start of default-handler tests 6934s # Start of subprocess tests 6934s # End of subprocess tests 6934s # End of default-handler tests 6934s # End of logging tests 6934s # Start of structured-logging tests 6934s ok 9 /structured-logging/no-state 6934s ok 10 /structured-logging/some-state 6934s ok 11 /structured-logging/robustness 6934s ok 12 /structured-logging/roundtrip1 6935s ok 13 /structured-logging/roundtrip2 6935s ok 14 /structured-logging/roundtrip3 6935s ok 15 /structured-logging/variant1 6935s ok 16 /structured-logging/variant2 6935s ok 17 /structured-logging/set-writer-func-twice 6935s # End of structured-logging tests 6935s ok - glib/logging.test 6935s # Running test: glib/qdata.test 6935s TAP version 14 6935s # random seed: R02S2af40434ba5bb3096c2c79e7cbbafbd2 6935s 1..2 6935s # Start of qdata tests 6936s not ok - Test timed out after 300 seconds 6937s ok 1 /qdata/threaded 6937s # slow test /qdata/threaded executed in 1.53 secs 6937s ok 2 /qdata/dup 6937s # End of qdata tests 6937s ok - glib/qdata.test 6937s # Running test: glib/dynamictype.test 6937s TAP version 14 6937s # random seed: R02S7d21cfb1ba5aa112911f1abaa9d2bd55 6937s 1..2 6937s # Start of gobject tests 6937s ok 1 /gobject/dynamic-type 6937s # Start of dynamic-type tests 6937s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 6937s ok 2 /gobject/dynamic-type/query 6937s # End of dynamic-type tests 6937s # End of gobject tests 6937s ok - glib/dynamictype.test 6937s # Running test: glib/testing-nonfatal.test 6938s TAP version 14 6938s # random seed: R02Sa68df4aa3c4c476cd4ef7ab3e24b330a 6938s ** 6938s 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?") 6938s # 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?") 6938s ok - glib/testing-nonfatal.test 6938s # Running test: glib/cache.test 6938s TAP version 14 6938s # random seed: R02S4692aa8ba181b3da56377dad0fe9ea86 6938s 1..1 6938s # Start of cache tests 6938s ok 1 /cache/basic 6938s # End of cache tests 6938s ok - glib/cache.test 6938s # Running test: glib/utils.test 6938s TAP version 14 6938s # random seed: R02Sf6bd2faab5c33bb2afcf186aa64fe8ac 6938s 1..41 6938s # Start of utils tests 6938s ok 1 /utils/language-names 6938s ok 2 /utils/locale-variants 6938s ok 3 /utils/version 6938s ok 4 /utils/appname 6938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 6938s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 6938s ok 5 /utils/prgname-thread-safety 6938s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 6938s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 6938s ok 6 /utils/tmpdir 6938s # Executing: glib/utils.test 6938s ok 7 /utils/basic_bits 6938s ok 8 /utils/bits 6938s ok 9 /utils/swap 6938s ok 10 /utils/find-program 6938s ok 11 /utils/find-program-for-path 6939s ok 12 /utils/debug 6939s ok 13 /utils/codeset 6939s ok 14 /utils/codeset2 6939s ok 15 /utils/console-charset 6939s ok 16 /utils/gettext 6939s ok 17 /utils/username 6939s ok 18 /utils/realname 6939s ok 19 /utils/hostname 6939s ok 20 /utils/xdgdirs 6939s ok 21 /utils/specialdir 6939s # NAME: Ubuntu 6939s ok 22 /utils/os-info 6939s ok 23 /utils/clear-pointer 6939s ok 24 /utils/clear-pointer-cast 6939s ok 25 /utils/take-pointer 6939s ok 26 /utils/clear-source 6939s ok 27 /utils/misc-mem 6939s # /utils/aligned-mem summary: Aligned memory allocator 6939s # Alignment must not be zero 6939s # Alignment must be a power of two 6939s # Alignment must be a multiple of sizeof(void*) 6939s ok 28 /utils/aligned-mem 6939s # /utils/free-sized summary: Check that g_free_sized() works 6939s ok 29 /utils/free-sized 6939s ok 30 /utils/nullify 6939s ok 31 /utils/atexit 6939s ok 32 /utils/check-setuid 6939s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 6939s ok 33 /utils/int-limits 6939s ok 34 /utils/clear-list 6939s ok 35 /utils/clear-slist 6939s ok 36 /utils/steal-handle-id 6939s # Start of specialdir tests 6939s ok 37 /utils/specialdir/desktop 6939s # End of specialdir tests 6939s # Start of clear-pointer tests 6939s ok 38 /utils/clear-pointer/side-effects 6939s # End of clear-pointer tests 6939s # Start of aligned-mem tests 6939s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 6939s ok 39 /utils/aligned-mem/alignment 6939s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 6939s ok 40 /utils/aligned-mem/zeroed 6939s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 6939s ok 41 /utils/aligned-mem/free-sized 6939s # Start of subprocess tests 6939s # End of subprocess tests 6939s # End of aligned-mem tests 6939s # End of utils tests 6939s ok - glib/utils.test 6939s # Running test: glib/include.test 6939s TAP version 14 6939s # random seed: R02S47b4cc477765fd6db4f446ba538ed13e 6939s 1..1 6939s # Start of include tests 6939s ok 1 /include/rwlock 6939s # End of include tests 6939s ok - glib/include.test 6940s # Running test: glib/throws.test 6940s TAP version 14 6940s # random seed: R02S90d6fd5bfbab179d5012e89614583b63 6940s 1..3 6940s # Start of throws tests 6940s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/home 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/cache 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/system-config2 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/config 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/system-data2 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/data 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/state 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_J17Y52/throws/invoke-gerror/.dirs/runtime 6940s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 6940s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 6940s ok 1 /throws/invoke-gerror 6940s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/home 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/cache 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/system-config2 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/config 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/system-data2 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/data 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/state 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_J17Y52/throws/vfunc-can-throw-gerror/.dirs/runtime 6940s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 6940s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 6940s ok 2 /throws/vfunc-can-throw-gerror 6940s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/home 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/cache 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/system-config2 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/config 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/system-data2 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/data 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/state 6940s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_J17Y52/throws/callback-can-throw-gerror/.dirs/runtime 6940s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 6940s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 6940s ok 3 /throws/callback-can-throw-gerror 6940s # End of throws tests 6940s ok - glib/throws.test 6940s # Running test: glib/override.test 6940s TAP version 14 6940s # random seed: R02Sd020f89337b54d82fb9ba352b1212c64 6940s 1..1 6940s # Start of gobject tests 6940s # *** emitting foo on a TestA instance 6940s # Expecting: TestA::foo,TestI::foo 6940s # Got: TestA::foo,TestI::foo 6940s # *** emitting bar on a TestA instance 6940s # Expecting: TestA::bar 6940s # Got: TestA::bar 6940s # *** emitting baz on a TestA instance 6940s # Expecting: TestA::baz 6940s # Got: TestA::baz 6940s # *** emitting foo on a TestB instance 6940s # Expecting: TestB::foo,TestA::foo,TestI::foo 6940s # Got: TestB::foo,TestA::foo,TestI::foo 6940s # *** emitting bar on a TestB instance 6940s # Expecting: TestB::bar,TestA::bar 6940s # Got: TestB::bar,TestA::bar 6940s # *** emitting baz on a TestB instance 6940s # Expecting: TestB::baz,TestA::baz 6940s # Got: TestB::baz,TestA::baz 6940s # *** emitting foo on a TestC instance 6940s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 6940s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 6940s # *** emitting bar on a TestC instance 6940s # Expecting: TestC::bar,TestB::bar,TestA::bar 6940s # Got: TestC::bar,TestB::bar,TestA::bar 6940s # *** emitting baz on a TestC instance 6940s # Expecting: TestC::baz,TestB::baz,TestA::baz 6940s # Got: TestC::baz,TestB::baz,TestA::baz 6940s ok 1 /gobject/override 6940s # End of gobject tests 6940s ok - glib/override.test 6940s # Running test: glib/simple-async-result.test 6940s TAP version 14 6940s # random seed: R02Sf3de3118bab44ff366a85d9f49429ef1 6940s 1..2 6940s # Start of gio tests 6940s # Start of simple-async-result tests 6940s ok 1 /gio/simple-async-result/test 6940s # GLib-GIO-DEBUG: GTask 0x555c7f755070 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 6940s ok 2 /gio/simple-async-result/valid 6940s # End of simple-async-result tests 6940s # End of gio tests 6940s ok - glib/simple-async-result.test 6941s # Running test: glib/cxx-03.test 6941s TAP version 14 6941s # random seed: R02S6485e1cf740c030da96b1329473f667b 6941s 1..2 6941s # Start of gtask tests 6941s # 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. 6941s ok 1 /gtask/name 6941s # Start of name tests 6941s # 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. 6941s ok 2 /gtask/name/macro-wrapper 6941s # End of name tests 6941s # End of gtask tests 6941s ok - glib/cxx-03.test 6941s # Running test: glib/buffered-output-stream.test 6941s TAP version 14 6941s # random seed: R02S281692dfc71cffa21730dd65df4a1e58 6941s 1..5 6941s # Start of buffered-output-stream tests 6941s ok 1 /buffered-output-stream/write 6941s ok 2 /buffered-output-stream/grow 6941s ok 3 /buffered-output-stream/seek 6941s ok 4 /buffered-output-stream/truncate 6941s # End of buffered-output-stream tests 6941s # Start of filter-output-stream tests 6941s ok 5 /filter-output-stream/close 6941s # End of filter-output-stream tests 6941s ok - glib/buffered-output-stream.test 6941s # Running test: glib/gdbus-names.test 6941s TAP version 14 6941s # random seed: R02Sca1ecaf0e03d5f7dbf03d55cdff303de 6941s 1..10 6941s # Start of gdbus tests 6941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/home 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/cache 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/system-config2 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/config 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/system-data2 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/data 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/state 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/validate-names/.dirs/runtime 6941s ok 1 /gdbus/validate-names 6941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/home 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/cache 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/system-config2 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/config 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/system-data2 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/data 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/state 6941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-own-name/.dirs/runtime 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6942s ok 2 /gdbus/bus-own-name 6942s # slow test /gdbus/bus-own-name executed in 0.89 secs 6942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/home 6942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/cache 6942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/system-config2 6942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/config 6942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/system-data2 6942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/data 6942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/state 6942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name/.dirs/runtime 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s ok 3 /gdbus/bus-watch-name 6943s # slow test /gdbus/bus-watch-name executed in 0.52 secs 6943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/home 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/cache 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/system-config2 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/config 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/system-data2 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/data 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/state 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start/.dirs/runtime 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6943s # Executing: glib/gdbus-names.test 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6943s ok 4 /gdbus/bus-watch-name-auto-start 6943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 6943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6944s dbus-daemon[3875]: [session uid=1000 pid=3875 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=3866 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 6944s # Acquired a message bus connection 6944s dbus-daemon[3875]: [session uid=1000 pid=3875 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 6944s # Acquired the name org.gtk.GDBus.FakeService 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 6944s # slow test /gdbus/bus-watch-name-auto-start-service-exist executed in 0.92 secs 6944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/home 6944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/cache 6944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/system-config2 6944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/config 6944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/system-data2 6944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/data 6944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/state 6944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures/.dirs/runtime 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6944s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s ok 6 /gdbus/bus-watch-name-closures 6945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/home 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/config 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/data 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/state 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s ok 7 /gdbus/bus-watch-name-closures-auto-start 6945s # slow test /gdbus/bus-watch-name-closures-auto-start executed in 0.54 secs 6945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/home 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/cache 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/system-config2 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/config 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/system-data2 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/data 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/state 6945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-watch-different-context/.dirs/runtime 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6945s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s ok 8 /gdbus/bus-watch-different-context 6946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/home 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/cache 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/system-config2 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/config 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/system-data2 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/data 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/state 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/bus-unwatch-early/.dirs/runtime 6946s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 6946s ok 9 /gdbus/bus-unwatch-early 6946s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/home 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/cache 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/system-config2 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/config 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/system-data2 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/data 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/state 6946s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_6DF252/gdbus/escape-object-path/.dirs/runtime 6946s ok 10 /gdbus/escape-object-path 6946s # End of gdbus tests 6946s ok - glib/gdbus-names.test 6946s # Running test: glib/properties-refcount4.test 6947s TAP version 14 6947s # random seed: R02Sbdd3156e0d540b2df06f3f88174f461d 6947s 1..1 6947s # Start of gobject tests 6947s # Start of refcount tests 6947s ok 1 /gobject/refcount/properties-4 6947s # End of refcount tests 6947s # End of gobject tests 6947s ok - glib/properties-refcount4.test 6947s # Running test: glib/once.test 6947s TAP version 14 6947s # random seed: R02S03c77562178eb54d5fa38a690853cae0 6947s 1..5 6947s # Start of once tests 6947s # /once/single-threaded summary: Test g_once() usage from a single thread 6947s ok 1 /once/single-threaded 6947s # /once/multi-threaded summary: Test g_once() usage from multiple threads 6947s ok 2 /once/multi-threaded 6947s # End of once tests 6947s # Start of once-init tests 6947s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 6947s ok 3 /once-init/single-threaded 6947s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 6947s ok 4 /once-init/multi-threaded 6947s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 6947s ok 5 /once-init/string 6947s # End of once-init tests 6947s ok - glib/once.test 6948s # Running test: glib/rcbox.test 6948s TAP version 14 6948s # random seed: R02Sa24a42a9d5d83dc201a4270a8f033f79 6948s 1..8 6948s # Start of rcbox tests 6948s ok 1 /rcbox/new 6948s # global_point = 0x555e02ef78a0 6948s ok 2 /rcbox/release-full 6948s # global_point_a = 0x555e02ef78a0 6948s # global_point_b = 0x555e02ef7970 6948s ok 3 /rcbox/dup 6948s ok 4 /rcbox/alignment 6948s # End of rcbox tests 6948s # Start of atomic-rcbox tests 6948s ok 5 /atomic-rcbox/new 6948s # global_point = 0x555e02ef7970 6948s ok 6 /atomic-rcbox/release-full 6948s # global_point_a = 0x555e02ef7970 6948s # global_point_b = 0x555e02ef78a0 6948s ok 7 /atomic-rcbox/dup 6948s ok 8 /atomic-rcbox/alignment 6948s # End of atomic-rcbox tests 6948s ok - glib/rcbox.test 6948s # Running test: glib/cxx-98.test 6948s TAP version 14 6948s # random seed: R02S2957638b63fa092c49b2390fb9805cc3 6948s 1..2 6948s # Start of gtask tests 6948s # 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. 6948s ok 1 /gtask/name 6948s # Start of name tests 6948s # 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. 6948s ok 2 /gtask/name/macro-wrapper 6948s # End of name tests 6948s # End of gtask tests 6948s ok - glib/cxx-98.test 6948s # Running test: glib/pattern.test 6948s # Executing: glib/pattern.test 6948s TAP version 14 6948s # random seed: R02S6f6d59f0f9fa8a087d00385ad3568c8a 6948s 1..90 6948s # Start of pattern tests 6948s # Start of compile tests 6948s ok 1 /pattern/compile/0 6948s ok 2 /pattern/compile/1 6948s ok 3 /pattern/compile/2 6948s ok 4 /pattern/compile/3 6948s ok 5 /pattern/compile/4 6948s ok 6 /pattern/compile/5 6948s ok 7 /pattern/compile/6 6948s ok 8 /pattern/compile/7 6948s ok 9 /pattern/compile/8 6948s ok 10 /pattern/compile/9 6948s ok 11 /pattern/compile/10 6948s ok 12 /pattern/compile/11 6948s ok 13 /pattern/compile/12 6948s ok 14 /pattern/compile/13 6948s # End of compile tests 6948s # Start of copy tests 6948s ok 15 /pattern/copy/0 6948s ok 16 /pattern/copy/1 6948s ok 17 /pattern/copy/2 6948s ok 18 /pattern/copy/3 6948s ok 19 /pattern/copy/4 6948s ok 20 /pattern/copy/5 6948s ok 21 /pattern/copy/6 6948s ok 22 /pattern/copy/7 6948s ok 23 /pattern/copy/8 6948s ok 24 /pattern/copy/9 6948s ok 25 /pattern/copy/10 6948s ok 26 /pattern/copy/11 6948s ok 27 /pattern/copy/12 6948s ok 28 /pattern/copy/13 6948s # End of copy tests 6948s # Start of match tests 6948s ok 29 /pattern/match/0 6948s ok 30 /pattern/match/1 6948s ok 31 /pattern/match/2 6948s ok 32 /pattern/match/3 6948s ok 33 /pattern/match/4 6948s ok 34 /pattern/match/5 6948s ok 35 /pattern/match/6 6948s ok 36 /pattern/match/7 6948s ok 37 /pattern/match/8 6948s ok 38 /pattern/match/9 6948s ok 39 /pattern/match/10 6948s ok 40 /pattern/match/11 6948s ok 41 /pattern/match/12 6948s ok 42 /pattern/match/13 6948s ok 43 /pattern/match/14 6948s ok 44 /pattern/match/15 6948s ok 45 /pattern/match/16 6948s ok 46 /pattern/match/17 6948s ok 47 /pattern/match/18 6948s ok 48 /pattern/match/19 6948s ok 49 /pattern/match/20 6948s ok 50 /pattern/match/21 6948s ok 51 /pattern/match/22 6948s ok 52 /pattern/match/23 6948s ok 53 /pattern/match/24 6948s ok 54 /pattern/match/25 6948s ok 55 /pattern/match/26 6948s ok 56 /pattern/match/27 6948s ok 57 /pattern/match/28 6948s ok 58 /pattern/match/29 6948s ok 59 /pattern/match/30 6948s ok 60 /pattern/match/31 6948s ok 61 /pattern/match/32 6948s ok 62 /pattern/match/33 6948s ok 63 /pattern/match/34 6948s ok 64 /pattern/match/35 6948s ok 65 /pattern/match/36 6948s ok 66 /pattern/match/37 6948s ok 67 /pattern/match/38 6948s ok 68 /pattern/match/39 6948s ok 69 /pattern/match/40 6948s ok 70 /pattern/match/41 6948s ok 71 /pattern/match/42 6948s ok 72 /pattern/match/43 6948s ok 73 /pattern/match/44 6948s ok 74 /pattern/match/45 6948s ok 75 /pattern/match/46 6948s ok 76 /pattern/match/47 6948s ok 77 /pattern/match/48 6948s ok 78 /pattern/match/49 6948s ok 79 /pattern/match/50 6948s # End of match tests 6948s # Start of equal tests 6948s ok 80 /pattern/equal/0 6948s ok 81 /pattern/equal/1 6948s ok 82 /pattern/equal/2 6948s ok 83 /pattern/equal/3 6948s ok 84 /pattern/equal/4 6948s ok 85 /pattern/equal/5 6948s ok 86 /pattern/equal/6 6948s ok 87 /pattern/equal/7 6948s ok 88 /pattern/equal/8 6948s ok 89 /pattern/equal/9 6948s ok 90 /pattern/equal/10 6948s # End of equal tests 6948s # End of pattern tests 6949s ok - glib/pattern.test 6949s # Running test: glib/option-argv0.test 6949s TAP version 14 6949s # random seed: R02S47fbea54e3f2a349ef4b9765d47e465a 6949s 1..1 6949s # Start of option tests 6949s ok 1 /option/argv0 6949s # End of option tests 6949s ok - glib/option-argv0.test 6949s # Running test: glib/power-profile-monitor-dbus.test 6953s # Executing: glib/power-profile-monitor-dbus.test 6958s # Executing: glib/power-profile-monitor-dbus.test 6959s TAP version 13 6959s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 6959s 1..1 6960s ok - glib/power-profile-monitor-dbus.test 6960s # Running test: glib/cxx-17.test 6960s TAP version 14 6960s # random seed: R02S6c0ceac9f70a106cbb3fc4b32c5d5b1b 6960s 1..2 6960s # Start of gtask tests 6960s # 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. 6960s ok 1 /gtask/name 6960s # Start of name tests 6960s # 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. 6960s ok 2 /gtask/name/macro-wrapper 6960s # End of name tests 6960s # End of gtask tests 6960s ok - glib/cxx-17.test 6960s # Running test: glib/date.test 6960s TAP version 14 6960s # random seed: R02Sd500e4f7f583ffc5898ab102c1672493 6960s 1..121 6960s # Start of date tests 6960s ok 1 /date/basic 6960s ok 2 /date/empty 6960s ok 3 /date/dmy 6960s ok 4 /date/julian 6960s ok 5 /date/compare 6960s ok 6 /date/dates 6960s ok 7 /date/strftime 6960s ok 8 /date/two-digit-years 6960s ok 9 /date/parse 6960s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 6960s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 6960s ok 11 /date/month_substring 6960s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 6960s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 6960s ok 13 /date/clamp 6960s ok 14 /date/order 6960s ok 15 /date/copy 6960s # Vector 0: 0000-00-00, invalid 6960s # Vector 1: 0001-01-01, valid 6960s # Vector 2: 0000-01-01, invalid 6960s # Vector 3: 2000-02-30, invalid 6960s # Vector 4: 2000-02-29, valid 6960s # Vector 5: 2001-02-29, invalid 6960s # Vector 6: 65535-01-01, valid 6960s ok 16 /date/valid-dmy 6960s # Start of parse tests 6960s # Test 0 6960s # Test 1 6960s ok 17 /date/parse/invalid 6960s # End of parse tests 6960s # Start of year tests 6960s ok 18 /date/year/1 6961s ok 19 /date/year/2 6961s ok 20 /date/year/3 6961s ok 21 /date/year/4 6961s ok 22 /date/year/5 6961s ok 23 /date/year/6 6961s ok 24 /date/year/7 6961s ok 25 /date/year/8 6961s ok 26 /date/year/9 6961s ok 27 /date/year/10 6961s ok 28 /date/year/11 6961s ok 29 /date/year/12 6962s ok 30 /date/year/13 6962s ok 31 /date/year/14 6962s ok 32 /date/year/98 6962s ok 33 /date/year/99 6962s ok 34 /date/year/100 6962s ok 35 /date/year/101 6962s ok 36 /date/year/102 6962s ok 37 /date/year/103 6962s ok 38 /date/year/397 6962s ok 39 /date/year/398 6963s ok 40 /date/year/399 6963s ok 41 /date/year/400 6963s ok 42 /date/year/401 6963s ok 43 /date/year/402 6963s ok 44 /date/year/403 6963s # Executing: glib/date.test 6963s ok 45 /date/year/404 6963s ok 46 /date/year/405 6964s ok 47 /date/year/406 6964s ok 48 /date/year/1598 6964s ok 49 /date/year/1599 6964s ok 50 /date/year/1600 6964s ok 51 /date/year/1601 6964s ok 52 /date/year/1602 6964s ok 53 /date/year/1650 6965s ok 54 /date/year/1651 6965s ok 55 /date/year/1897 6965s ok 56 /date/year/1898 6965s ok 57 /date/year/1899 6965s ok 58 /date/year/1900 6965s ok 59 /date/year/1901 6965s ok 60 /date/year/1902 6965s ok 61 /date/year/1903 6965s ok 62 /date/year/1961 6965s ok 63 /date/year/1962 6966s ok 64 /date/year/1963 6966s ok 65 /date/year/1964 6966s ok 66 /date/year/1965 6966s ok 67 /date/year/1967 6966s ok 68 /date/year/1968 6966s ok 69 /date/year/1969 6966s ok 70 /date/year/1970 6966s ok 71 /date/year/1971 6966s ok 72 /date/year/1972 6967s ok 73 /date/year/1973 6967s ok 74 /date/year/1974 6967s ok 75 /date/year/1975 6967s ok 76 /date/year/1976 6967s ok 77 /date/year/1977 6967s ok 78 /date/year/1978 6967s ok 79 /date/year/1979 6967s ok 80 /date/year/1980 6968s ok 81 /date/year/1981 6968s ok 82 /date/year/1982 6968s ok 83 /date/year/1983 6968s ok 84 /date/year/1984 6968s ok 85 /date/year/1985 6968s ok 86 /date/year/1986 6968s # Executing: glib/date.test 6968s ok 87 /date/year/1987 6968s ok 88 /date/year/1988 6968s ok 89 /date/year/1989 6969s ok 90 /date/year/1990 6969s ok 91 /date/year/1991 6969s ok 92 /date/year/1992 6969s ok 93 /date/year/1993 6969s ok 94 /date/year/1994 6969s ok 95 /date/year/1995 6969s ok 96 /date/year/1996 6969s ok 97 /date/year/1997 6969s ok 98 /date/year/1998 6969s ok 99 /date/year/1999 6969s ok 100 /date/year/2000 6969s ok 101 /date/year/2001 6970s ok 102 /date/year/2002 6970s ok 103 /date/year/2003 6970s ok 104 /date/year/2004 6970s ok 105 /date/year/2005 6970s ok 106 /date/year/2006 6970s ok 107 /date/year/2007 6970s ok 108 /date/year/2008 6970s ok 109 /date/year/2009 6970s ok 110 /date/year/2010 6970s ok 111 /date/year/2011 6971s ok 112 /date/year/2012 6971s ok 113 /date/year/3000 6971s ok 114 /date/year/3001 6971s ok 115 /date/year/3002 6971s ok 116 /date/year/3998 6971s ok 117 /date/year/3999 6971s ok 118 /date/year/4000 6971s ok 119 /date/year/4001 6971s ok 120 /date/year/4002 6972s ok 121 /date/year/4003 6972s # End of year tests 6972s # End of date tests 6972s ok - glib/date.test 6972s # Running test: glib/checksum.test 6972s TAP version 14 6972s # random seed: R02Sb33ac7537d4afd3a2a7c73833bba9de5 6972s 1..1851 6972s # Start of checksum tests 6972s ok 1 /checksum/unsupported 6972s # Start of MD5 tests 6972s ok 2 /checksum/MD5/0 6972s ok 3 /checksum/MD5/1 6972s ok 4 /checksum/MD5/2 6972s ok 5 /checksum/MD5/3 6972s ok 6 /checksum/MD5/4 6972s ok 7 /checksum/MD5/5 6972s ok 8 /checksum/MD5/6 6972s ok 9 /checksum/MD5/7 6972s ok 10 /checksum/MD5/8 6972s ok 11 /checksum/MD5/9 6972s ok 12 /checksum/MD5/10 6972s ok 13 /checksum/MD5/11 6972s ok 14 /checksum/MD5/12 6972s ok 15 /checksum/MD5/13 6972s ok 16 /checksum/MD5/14 6972s ok 17 /checksum/MD5/15 6972s ok 18 /checksum/MD5/16 6972s ok 19 /checksum/MD5/17 6972s ok 20 /checksum/MD5/18 6972s ok 21 /checksum/MD5/19 6972s ok 22 /checksum/MD5/20 6972s ok 23 /checksum/MD5/21 6972s ok 24 /checksum/MD5/22 6972s ok 25 /checksum/MD5/23 6972s ok 26 /checksum/MD5/24 6972s ok 27 /checksum/MD5/25 6972s ok 28 /checksum/MD5/26 6972s ok 29 /checksum/MD5/27 6972s ok 30 /checksum/MD5/28 6972s ok 31 /checksum/MD5/29 6972s ok 32 /checksum/MD5/30 6972s ok 33 /checksum/MD5/31 6972s ok 34 /checksum/MD5/32 6972s ok 35 /checksum/MD5/33 6972s ok 36 /checksum/MD5/34 6972s ok 37 /checksum/MD5/35 6972s ok 38 /checksum/MD5/36 6972s ok 39 /checksum/MD5/37 6972s ok 40 /checksum/MD5/38 6972s ok 41 /checksum/MD5/39 6972s ok 42 /checksum/MD5/40 6972s ok 43 /checksum/MD5/41 6972s ok 44 /checksum/MD5/42 6972s ok 45 /checksum/MD5/43 6972s ok 46 /checksum/MD5/44 6972s ok 47 /checksum/MD5/45 6972s ok 48 /checksum/MD5/46 6972s ok 49 /checksum/MD5/47 6972s ok 50 /checksum/MD5/48 6972s ok 51 /checksum/MD5/49 6972s ok 52 /checksum/MD5/50 6972s ok 53 /checksum/MD5/51 6972s ok 54 /checksum/MD5/52 6972s ok 55 /checksum/MD5/53 6972s ok 56 /checksum/MD5/54 6972s ok 57 /checksum/MD5/55 6972s ok 58 /checksum/MD5/56 6972s ok 59 /checksum/MD5/57 6972s ok 60 /checksum/MD5/58 6972s ok 61 /checksum/MD5/59 6972s ok 62 /checksum/MD5/60 6972s ok 63 /checksum/MD5/61 6972s ok 64 /checksum/MD5/62 6972s ok 65 /checksum/MD5/63 6972s ok 66 /checksum/MD5/64 6972s ok 67 /checksum/MD5/65 6972s ok 68 /checksum/MD5/66 6972s ok 69 /checksum/MD5/67 6972s ok 70 /checksum/MD5/68 6972s ok 71 /checksum/MD5/69 6972s ok 72 /checksum/MD5/70 6972s ok 73 /checksum/MD5/71 6972s ok 74 /checksum/MD5/72 6972s ok 75 /checksum/MD5/73 6972s ok 76 /checksum/MD5/74 6972s ok 77 /checksum/MD5/75 6972s ok 78 /checksum/MD5/76 6972s ok 79 /checksum/MD5/77 6972s ok 80 /checksum/MD5/78 6972s ok 81 /checksum/MD5/79 6972s ok 82 /checksum/MD5/80 6972s ok 83 /checksum/MD5/81 6972s ok 84 /checksum/MD5/82 6972s ok 85 /checksum/MD5/83 6972s ok 86 /checksum/MD5/84 6972s ok 87 /checksum/MD5/85 6972s ok 88 /checksum/MD5/86 6972s ok 89 /checksum/MD5/87 6972s ok 90 /checksum/MD5/88 6972s ok 91 /checksum/MD5/89 6972s ok 92 /checksum/MD5/90 6972s ok 93 /checksum/MD5/91 6972s ok 94 /checksum/MD5/92 6972s ok 95 /checksum/MD5/93 6972s ok 96 /checksum/MD5/94 6972s ok 97 /checksum/MD5/95 6972s ok 98 /checksum/MD5/96 6972s ok 99 /checksum/MD5/97 6972s ok 100 /checksum/MD5/98 6972s ok 101 /checksum/MD5/99 6972s ok 102 /checksum/MD5/100 6972s ok 103 /checksum/MD5/101 6972s ok 104 /checksum/MD5/102 6972s ok 105 /checksum/MD5/103 6972s ok 106 /checksum/MD5/104 6972s ok 107 /checksum/MD5/105 6972s ok 108 /checksum/MD5/106 6972s ok 109 /checksum/MD5/107 6972s ok 110 /checksum/MD5/108 6972s ok 111 /checksum/MD5/109 6972s ok 112 /checksum/MD5/110 6972s ok 113 /checksum/MD5/111 6972s ok 114 /checksum/MD5/112 6972s ok 115 /checksum/MD5/113 6972s ok 116 /checksum/MD5/114 6972s ok 117 /checksum/MD5/115 6972s ok 118 /checksum/MD5/116 6972s ok 119 /checksum/MD5/117 6972s ok 120 /checksum/MD5/118 6972s ok 121 /checksum/MD5/119 6972s ok 122 /checksum/MD5/120 6972s ok 123 /checksum/MD5/121 6972s ok 124 /checksum/MD5/122 6972s ok 125 /checksum/MD5/123 6972s ok 126 /checksum/MD5/124 6972s ok 127 /checksum/MD5/125 6972s ok 128 /checksum/MD5/126 6972s ok 129 /checksum/MD5/127 6972s ok 130 /checksum/MD5/128 6972s ok 131 /checksum/MD5/129 6972s ok 132 /checksum/MD5/130 6972s ok 133 /checksum/MD5/131 6972s ok 134 /checksum/MD5/132 6972s ok 135 /checksum/MD5/133 6972s ok 136 /checksum/MD5/134 6972s ok 137 /checksum/MD5/135 6972s ok 138 /checksum/MD5/136 6972s ok 139 /checksum/MD5/137 6972s ok 140 /checksum/MD5/138 6972s ok 141 /checksum/MD5/139 6972s ok 142 /checksum/MD5/140 6972s ok 143 /checksum/MD5/141 6972s ok 144 /checksum/MD5/142 6972s ok 145 /checksum/MD5/143 6972s ok 146 /checksum/MD5/144 6972s ok 147 /checksum/MD5/145 6972s ok 148 /checksum/MD5/146 6972s ok 149 /checksum/MD5/147 6972s ok 150 /checksum/MD5/148 6972s ok 151 /checksum/MD5/149 6972s ok 152 /checksum/MD5/150 6972s ok 153 /checksum/MD5/151 6972s ok 154 /checksum/MD5/152 6972s ok 155 /checksum/MD5/153 6972s ok 156 /checksum/MD5/154 6972s ok 157 /checksum/MD5/155 6972s ok 158 /checksum/MD5/156 6972s ok 159 /checksum/MD5/157 6972s ok 160 /checksum/MD5/158 6972s ok 161 /checksum/MD5/159 6972s ok 162 /checksum/MD5/160 6972s ok 163 /checksum/MD5/161 6972s ok 164 /checksum/MD5/162 6972s ok 165 /checksum/MD5/163 6972s ok 166 /checksum/MD5/164 6972s ok 167 /checksum/MD5/165 6972s ok 168 /checksum/MD5/166 6972s ok 169 /checksum/MD5/167 6972s ok 170 /checksum/MD5/168 6972s ok 171 /checksum/MD5/169 6972s ok 172 /checksum/MD5/170 6972s ok 173 /checksum/MD5/171 6972s ok 174 /checksum/MD5/172 6972s ok 175 /checksum/MD5/173 6972s ok 176 /checksum/MD5/174 6972s ok 177 /checksum/MD5/175 6972s ok 178 /checksum/MD5/176 6972s ok 179 /checksum/MD5/177 6972s ok 180 /checksum/MD5/178 6972s ok 181 /checksum/MD5/179 6972s ok 182 /checksum/MD5/180 6972s ok 183 /checksum/MD5/181 6972s ok 184 /checksum/MD5/182 6972s ok 185 /checksum/MD5/183 6972s ok 186 /checksum/MD5/string 6972s ok 187 /checksum/MD5/bytes 6972s # Start of reset tests 6972s ok 188 /checksum/MD5/reset/0 6972s ok 189 /checksum/MD5/reset/1 6972s ok 190 /checksum/MD5/reset/2 6972s ok 191 /checksum/MD5/reset/3 6972s ok 192 /checksum/MD5/reset/4 6972s ok 193 /checksum/MD5/reset/5 6972s ok 194 /checksum/MD5/reset/6 6972s ok 195 /checksum/MD5/reset/7 6972s ok 196 /checksum/MD5/reset/8 6972s ok 197 /checksum/MD5/reset/9 6972s ok 198 /checksum/MD5/reset/10 6972s ok 199 /checksum/MD5/reset/11 6972s ok 200 /checksum/MD5/reset/12 6972s ok 201 /checksum/MD5/reset/13 6972s ok 202 /checksum/MD5/reset/14 6972s ok 203 /checksum/MD5/reset/15 6972s ok 204 /checksum/MD5/reset/16 6972s ok 205 /checksum/MD5/reset/17 6972s ok 206 /checksum/MD5/reset/18 6972s ok 207 /checksum/MD5/reset/19 6972s ok 208 /checksum/MD5/reset/20 6972s ok 209 /checksum/MD5/reset/21 6972s ok 210 /checksum/MD5/reset/22 6972s ok 211 /checksum/MD5/reset/23 6972s ok 212 /checksum/MD5/reset/24 6972s ok 213 /checksum/MD5/reset/25 6972s ok 214 /checksum/MD5/reset/26 6972s ok 215 /checksum/MD5/reset/27 6972s ok 216 /checksum/MD5/reset/28 6972s ok 217 /checksum/MD5/reset/29 6972s ok 218 /checksum/MD5/reset/30 6972s ok 219 /checksum/MD5/reset/31 6972s ok 220 /checksum/MD5/reset/32 6972s ok 221 /checksum/MD5/reset/33 6972s ok 222 /checksum/MD5/reset/34 6972s ok 223 /checksum/MD5/reset/35 6972s ok 224 /checksum/MD5/reset/36 6972s ok 225 /checksum/MD5/reset/37 6972s ok 226 /checksum/MD5/reset/38 6972s ok 227 /checksum/MD5/reset/39 6972s ok 228 /checksum/MD5/reset/40 6972s ok 229 /checksum/MD5/reset/41 6972s ok 230 /checksum/MD5/reset/42 6972s ok 231 /checksum/MD5/reset/43 6972s ok 232 /checksum/MD5/reset/44 6972s ok 233 /checksum/MD5/reset/45 6972s ok 234 /checksum/MD5/reset/46 6972s ok 235 /checksum/MD5/reset/47 6972s ok 236 /checksum/MD5/reset/48 6972s ok 237 /checksum/MD5/reset/49 6972s ok 238 /checksum/MD5/reset/50 6972s ok 239 /checksum/MD5/reset/51 6972s ok 240 /checksum/MD5/reset/52 6972s ok 241 /checksum/MD5/reset/53 6972s ok 242 /checksum/MD5/reset/54 6972s ok 243 /checksum/MD5/reset/55 6972s ok 244 /checksum/MD5/reset/56 6972s ok 245 /checksum/MD5/reset/57 6972s ok 246 /checksum/MD5/reset/58 6972s ok 247 /checksum/MD5/reset/59 6972s ok 248 /checksum/MD5/reset/60 6972s ok 249 /checksum/MD5/reset/61 6972s ok 250 /checksum/MD5/reset/62 6972s ok 251 /checksum/MD5/reset/63 6972s ok 252 /checksum/MD5/reset/64 6972s ok 253 /checksum/MD5/reset/65 6972s ok 254 /checksum/MD5/reset/66 6972s ok 255 /checksum/MD5/reset/67 6972s ok 256 /checksum/MD5/reset/68 6972s ok 257 /checksum/MD5/reset/69 6972s ok 258 /checksum/MD5/reset/70 6972s ok 259 /checksum/MD5/reset/71 6972s ok 260 /checksum/MD5/reset/72 6972s ok 261 /checksum/MD5/reset/73 6972s ok 262 /checksum/MD5/reset/74 6972s ok 263 /checksum/MD5/reset/75 6972s ok 264 /checksum/MD5/reset/76 6972s ok 265 /checksum/MD5/reset/77 6972s ok 266 /checksum/MD5/reset/78 6972s ok 267 /checksum/MD5/reset/79 6972s ok 268 /checksum/MD5/reset/80 6972s ok 269 /checksum/MD5/reset/81 6972s ok 270 /checksum/MD5/reset/82 6972s ok 271 /checksum/MD5/reset/83 6972s ok 272 /checksum/MD5/reset/84 6972s ok 273 /checksum/MD5/reset/85 6972s ok 274 /checksum/MD5/reset/86 6972s ok 275 /checksum/MD5/reset/87 6972s ok 276 /checksum/MD5/reset/88 6972s ok 277 /checksum/MD5/reset/89 6972s ok 278 /checksum/MD5/reset/90 6972s ok 279 /checksum/MD5/reset/91 6972s ok 280 /checksum/MD5/reset/92 6972s ok 281 /checksum/MD5/reset/93 6972s ok 282 /checksum/MD5/reset/94 6972s ok 283 /checksum/MD5/reset/95 6972s ok 284 /checksum/MD5/reset/96 6972s ok 285 /checksum/MD5/reset/97 6972s ok 286 /checksum/MD5/reset/98 6972s ok 287 /checksum/MD5/reset/99 6972s ok 288 /checksum/MD5/reset/100 6972s ok 289 /checksum/MD5/reset/101 6972s ok 290 /checksum/MD5/reset/102 6972s ok 291 /checksum/MD5/reset/103 6972s ok 292 /checksum/MD5/reset/104 6972s ok 293 /checksum/MD5/reset/105 6972s ok 294 /checksum/MD5/reset/106 6972s ok 295 /checksum/MD5/reset/107 6972s ok 296 /checksum/MD5/reset/108 6972s ok 297 /checksum/MD5/reset/109 6972s ok 298 /checksum/MD5/reset/110 6972s ok 299 /checksum/MD5/reset/111 6972s ok 300 /checksum/MD5/reset/112 6972s ok 301 /checksum/MD5/reset/113 6972s ok 302 /checksum/MD5/reset/114 6972s ok 303 /checksum/MD5/reset/115 6972s ok 304 /checksum/MD5/reset/116 6972s ok 305 /checksum/MD5/reset/117 6972s ok 306 /checksum/MD5/reset/118 6972s ok 307 /checksum/MD5/reset/119 6972s ok 308 /checksum/MD5/reset/120 6972s ok 309 /checksum/MD5/reset/121 6972s ok 310 /checksum/MD5/reset/122 6972s ok 311 /checksum/MD5/reset/123 6972s ok 312 /checksum/MD5/reset/124 6972s ok 313 /checksum/MD5/reset/125 6972s ok 314 /checksum/MD5/reset/126 6972s ok 315 /checksum/MD5/reset/127 6972s ok 316 /checksum/MD5/reset/128 6972s ok 317 /checksum/MD5/reset/129 6972s ok 318 /checksum/MD5/reset/130 6972s ok 319 /checksum/MD5/reset/131 6972s ok 320 /checksum/MD5/reset/132 6972s ok 321 /checksum/MD5/reset/133 6972s ok 322 /checksum/MD5/reset/134 6972s ok 323 /checksum/MD5/reset/135 6972s ok 324 /checksum/MD5/reset/136 6972s ok 325 /checksum/MD5/reset/137 6972s ok 326 /checksum/MD5/reset/138 6972s ok 327 /checksum/MD5/reset/139 6972s ok 328 /checksum/MD5/reset/140 6972s ok 329 /checksum/MD5/reset/141 6972s ok 330 /checksum/MD5/reset/142 6972s ok 331 /checksum/MD5/reset/143 6972s ok 332 /checksum/MD5/reset/144 6972s ok 333 /checksum/MD5/reset/145 6972s ok 334 /checksum/MD5/reset/146 6972s ok 335 /checksum/MD5/reset/147 6972s ok 336 /checksum/MD5/reset/148 6972s ok 337 /checksum/MD5/reset/149 6972s ok 338 /checksum/MD5/reset/150 6972s ok 339 /checksum/MD5/reset/151 6972s ok 340 /checksum/MD5/reset/152 6972s ok 341 /checksum/MD5/reset/153 6972s ok 342 /checksum/MD5/reset/154 6972s ok 343 /checksum/MD5/reset/155 6972s ok 344 /checksum/MD5/reset/156 6972s ok 345 /checksum/MD5/reset/157 6972s ok 346 /checksum/MD5/reset/158 6972s ok 347 /checksum/MD5/reset/159 6972s ok 348 /checksum/MD5/reset/160 6972s ok 349 /checksum/MD5/reset/161 6972s ok 350 /checksum/MD5/reset/162 6972s ok 351 /checksum/MD5/reset/163 6972s ok 352 /checksum/MD5/reset/164 6972s ok 353 /checksum/MD5/reset/165 6972s ok 354 /checksum/MD5/reset/166 6972s ok 355 /checksum/MD5/reset/167 6972s ok 356 /checksum/MD5/reset/168 6972s ok 357 /checksum/MD5/reset/169 6972s ok 358 /checksum/MD5/reset/170 6972s ok 359 /checksum/MD5/reset/171 6972s ok 360 /checksum/MD5/reset/172 6972s ok 361 /checksum/MD5/reset/173 6972s ok 362 /checksum/MD5/reset/174 6972s ok 363 /checksum/MD5/reset/175 6972s ok 364 /checksum/MD5/reset/176 6972s ok 365 /checksum/MD5/reset/177 6972s ok 366 /checksum/MD5/reset/178 6972s ok 367 /checksum/MD5/reset/179 6972s ok 368 /checksum/MD5/reset/180 6972s ok 369 /checksum/MD5/reset/181 6972s ok 370 /checksum/MD5/reset/182 6972s ok 371 /checksum/MD5/reset/183 6972s # End of reset tests 6972s # End of MD5 tests 6972s # Start of SHA1 tests 6972s ok 372 /checksum/SHA1/0 6972s ok 373 /checksum/SHA1/1 6972s ok 374 /checksum/SHA1/2 6972s ok 375 /checksum/SHA1/3 6972s ok 376 /checksum/SHA1/4 6972s ok 377 /checksum/SHA1/5 6972s ok 378 /checksum/SHA1/6 6972s ok 379 /checksum/SHA1/7 6972s ok 380 /checksum/SHA1/8 6972s ok 381 /checksum/SHA1/9 6972s ok 382 /checksum/SHA1/10 6972s ok 383 /checksum/SHA1/11 6972s ok 384 /checksum/SHA1/12 6972s ok 385 /checksum/SHA1/13 6972s ok 386 /checksum/SHA1/14 6972s ok 387 /checksum/SHA1/15 6972s ok 388 /checksum/SHA1/16 6972s ok 389 /checksum/SHA1/17 6972s ok 390 /checksum/SHA1/18 6972s ok 391 /checksum/SHA1/19 6972s ok 392 /checksum/SHA1/20 6972s ok 393 /checksum/SHA1/21 6972s ok 394 /checksum/SHA1/22 6972s ok 395 /checksum/SHA1/23 6972s ok 396 /checksum/SHA1/24 6972s ok 397 /checksum/SHA1/25 6972s ok 398 /checksum/SHA1/26 6972s ok 399 /checksum/SHA1/27 6972s ok 400 /checksum/SHA1/28 6972s ok 401 /checksum/SHA1/29 6972s ok 402 /checksum/SHA1/30 6972s ok 403 /checksum/SHA1/31 6972s ok 404 /checksum/SHA1/32 6972s ok 405 /checksum/SHA1/33 6972s ok 406 /checksum/SHA1/34 6972s ok 407 /checksum/SHA1/35 6972s ok 408 /checksum/SHA1/36 6972s ok 409 /checksum/SHA1/37 6972s ok 410 /checksum/SHA1/38 6972s ok 411 /checksum/SHA1/39 6972s ok 412 /checksum/SHA1/40 6972s ok 413 /checksum/SHA1/41 6972s ok 414 /checksum/SHA1/42 6972s ok 415 /checksum/SHA1/43 6972s ok 416 /checksum/SHA1/44 6972s ok 417 /checksum/SHA1/45 6972s ok 418 /checksum/SHA1/46 6972s ok 419 /checksum/SHA1/47 6972s ok 420 /checksum/SHA1/48 6972s ok 421 /checksum/SHA1/49 6972s ok 422 /checksum/SHA1/50 6972s ok 423 /checksum/SHA1/51 6972s ok 424 /checksum/SHA1/52 6972s ok 425 /checksum/SHA1/53 6972s ok 426 /checksum/SHA1/54 6972s ok 427 /checksum/SHA1/55 6972s ok 428 /checksum/SHA1/56 6972s ok 429 /checksum/SHA1/57 6972s ok 430 /checksum/SHA1/58 6972s ok 431 /checksum/SHA1/59 6972s ok 432 /checksum/SHA1/60 6972s ok 433 /checksum/SHA1/61 6972s ok 434 /checksum/SHA1/62 6972s ok 435 /checksum/SHA1/63 6972s ok 436 /checksum/SHA1/64 6972s ok 437 /checksum/SHA1/65 6972s ok 438 /checksum/SHA1/66 6972s ok 439 /checksum/SHA1/67 6972s ok 440 /checksum/SHA1/68 6972s ok 441 /checksum/SHA1/69 6972s ok 442 /checksum/SHA1/70 6972s ok 443 /checksum/SHA1/71 6972s ok 444 /checksum/SHA1/72 6972s ok 445 /checksum/SHA1/73 6972s ok 446 /checksum/SHA1/74 6972s ok 447 /checksum/SHA1/75 6972s ok 448 /checksum/SHA1/76 6972s ok 449 /checksum/SHA1/77 6972s ok 450 /checksum/SHA1/78 6972s ok 451 /checksum/SHA1/79 6972s ok 452 /checksum/SHA1/80 6972s ok 453 /checksum/SHA1/81 6972s ok 454 /checksum/SHA1/82 6972s ok 455 /checksum/SHA1/83 6972s ok 456 /checksum/SHA1/84 6972s ok 457 /checksum/SHA1/85 6972s ok 458 /checksum/SHA1/86 6972s ok 459 /checksum/SHA1/87 6972s ok 460 /checksum/SHA1/88 6972s ok 461 /checksum/SHA1/89 6972s ok 462 /checksum/SHA1/90 6972s ok 463 /checksum/SHA1/91 6972s ok 464 /checksum/SHA1/92 6972s ok 465 /checksum/SHA1/93 6972s ok 466 /checksum/SHA1/94 6972s ok 467 /checksum/SHA1/95 6972s ok 468 /checksum/SHA1/96 6972s ok 469 /checksum/SHA1/97 6972s ok 470 /checksum/SHA1/98 6972s ok 471 /checksum/SHA1/99 6972s ok 472 /checksum/SHA1/100 6972s ok 473 /checksum/SHA1/101 6972s ok 474 /checksum/SHA1/102 6972s ok 475 /checksum/SHA1/103 6972s ok 476 /checksum/SHA1/104 6972s ok 477 /checksum/SHA1/105 6972s ok 478 /checksum/SHA1/106 6972s ok 479 /checksum/SHA1/107 6972s ok 480 /checksum/SHA1/108 6972s ok 481 /checksum/SHA1/109 6972s ok 482 /checksum/SHA1/110 6972s ok 483 /checksum/SHA1/111 6972s ok 484 /checksum/SHA1/112 6972s ok 485 /checksum/SHA1/113 6972s ok 486 /checksum/SHA1/114 6972s ok 487 /checksum/SHA1/115 6972s ok 488 /checksum/SHA1/116 6972s ok 489 /checksum/SHA1/117 6972s ok 490 /checksum/SHA1/118 6972s ok 491 /checksum/SHA1/119 6972s ok 492 /checksum/SHA1/120 6972s ok 493 /checksum/SHA1/121 6972s ok 494 /checksum/SHA1/122 6972s ok 495 /checksum/SHA1/123 6972s ok 496 /checksum/SHA1/124 6972s ok 497 /checksum/SHA1/125 6972s ok 498 /checksum/SHA1/126 6972s ok 499 /checksum/SHA1/127 6972s ok 500 /checksum/SHA1/128 6972s ok 501 /checksum/SHA1/129 6972s ok 502 /checksum/SHA1/130 6972s ok 503 /checksum/SHA1/131 6972s ok 504 /checksum/SHA1/132 6972s ok 505 /checksum/SHA1/133 6972s ok 506 /checksum/SHA1/134 6972s ok 507 /checksum/SHA1/135 6972s ok 508 /checksum/SHA1/136 6972s ok 509 /checksum/SHA1/137 6972s ok 510 /checksum/SHA1/138 6972s ok 511 /checksum/SHA1/139 6972s ok 512 /checksum/SHA1/140 6972s ok 513 /checksum/SHA1/141 6972s ok 514 /checksum/SHA1/142 6972s ok 515 /checksum/SHA1/143 6972s ok 516 /checksum/SHA1/144 6972s ok 517 /checksum/SHA1/145 6972s ok 518 /checksum/SHA1/146 6972s ok 519 /checksum/SHA1/147 6972s ok 520 /checksum/SHA1/148 6972s ok 521 /checksum/SHA1/149 6972s ok 522 /checksum/SHA1/150 6972s ok 523 /checksum/SHA1/151 6972s ok 524 /checksum/SHA1/152 6972s ok 525 /checksum/SHA1/153 6972s ok 526 /checksum/SHA1/154 6972s ok 527 /checksum/SHA1/155 6973s ok 528 /checksum/SHA1/156 6973s ok 529 /checksum/SHA1/157 6973s ok 530 /checksum/SHA1/158 6973s ok 531 /checksum/SHA1/159 6973s ok 532 /checksum/SHA1/160 6973s ok 533 /checksum/SHA1/161 6973s ok 534 /checksum/SHA1/162 6973s ok 535 /checksum/SHA1/163 6973s ok 536 /checksum/SHA1/164 6973s ok 537 /checksum/SHA1/165 6973s ok 538 /checksum/SHA1/166 6973s ok 539 /checksum/SHA1/167 6973s ok 540 /checksum/SHA1/168 6973s ok 541 /checksum/SHA1/169 6973s ok 542 /checksum/SHA1/170 6973s ok 543 /checksum/SHA1/171 6973s ok 544 /checksum/SHA1/172 6973s ok 545 /checksum/SHA1/173 6973s ok 546 /checksum/SHA1/174 6973s ok 547 /checksum/SHA1/175 6973s ok 548 /checksum/SHA1/176 6973s ok 549 /checksum/SHA1/177 6973s ok 550 /checksum/SHA1/178 6973s ok 551 /checksum/SHA1/179 6973s ok 552 /checksum/SHA1/180 6973s ok 553 /checksum/SHA1/181 6973s ok 554 /checksum/SHA1/182 6973s ok 555 /checksum/SHA1/183 6973s ok 556 /checksum/SHA1/string 6973s ok 557 /checksum/SHA1/bytes 6973s # Start of reset tests 6973s ok 558 /checksum/SHA1/reset/0 6973s ok 559 /checksum/SHA1/reset/1 6973s ok 560 /checksum/SHA1/reset/2 6973s ok 561 /checksum/SHA1/reset/3 6973s ok 562 /checksum/SHA1/reset/4 6973s ok 563 /checksum/SHA1/reset/5 6973s ok 564 /checksum/SHA1/reset/6 6973s ok 565 /checksum/SHA1/reset/7 6973s ok 566 /checksum/SHA1/reset/8 6973s ok 567 /checksum/SHA1/reset/9 6973s ok 568 /checksum/SHA1/reset/10 6973s ok 569 /checksum/SHA1/reset/11 6973s ok 570 /checksum/SHA1/reset/12 6973s ok 571 /checksum/SHA1/reset/13 6973s ok 572 /checksum/SHA1/reset/14 6973s ok 573 /checksum/SHA1/reset/15 6973s ok 574 /checksum/SHA1/reset/16 6973s ok 575 /checksum/SHA1/reset/17 6973s ok 576 /checksum/SHA1/reset/18 6973s ok 577 /checksum/SHA1/reset/19 6973s ok 578 /checksum/SHA1/reset/20 6973s ok 579 /checksum/SHA1/reset/21 6973s ok 580 /checksum/SHA1/reset/22 6973s ok 581 /checksum/SHA1/reset/23 6973s ok 582 /checksum/SHA1/reset/24 6973s ok 583 /checksum/SHA1/reset/25 6973s ok 584 /checksum/SHA1/reset/26 6973s ok 585 /checksum/SHA1/reset/27 6973s ok 586 /checksum/SHA1/reset/28 6973s ok 587 /checksum/SHA1/reset/29 6973s ok 588 /checksum/SHA1/reset/30 6973s ok 589 /checksum/SHA1/reset/31 6973s ok 590 /checksum/SHA1/reset/32 6973s ok 591 /checksum/SHA1/reset/33 6973s ok 592 /checksum/SHA1/reset/34 6973s ok 593 /checksum/SHA1/reset/35 6973s ok 594 /checksum/SHA1/reset/36 6973s ok 595 /checksum/SHA1/reset/37 6973s ok 596 /checksum/SHA1/reset/38 6973s ok 597 /checksum/SHA1/reset/39 6973s ok 598 /checksum/SHA1/reset/40 6973s ok 599 /checksum/SHA1/reset/41 6973s ok 600 /checksum/SHA1/reset/42 6973s ok 601 /checksum/SHA1/reset/43 6973s ok 602 /checksum/SHA1/reset/44 6973s ok 603 /checksum/SHA1/reset/45 6973s ok 604 /checksum/SHA1/reset/46 6973s ok 605 /checksum/SHA1/reset/47 6973s ok 606 /checksum/SHA1/reset/48 6973s ok 607 /checksum/SHA1/reset/49 6973s ok 608 /checksum/SHA1/reset/50 6973s ok 609 /checksum/SHA1/reset/51 6973s ok 610 /checksum/SHA1/reset/52 6973s ok 611 /checksum/SHA1/reset/53 6973s ok 612 /checksum/SHA1/reset/54 6973s ok 613 /checksum/SHA1/reset/55 6973s ok 614 /checksum/SHA1/reset/56 6973s ok 615 /checksum/SHA1/reset/57 6973s ok 616 /checksum/SHA1/reset/58 6973s ok 617 /checksum/SHA1/reset/59 6973s ok 618 /checksum/SHA1/reset/60 6973s ok 619 /checksum/SHA1/reset/61 6973s ok 620 /checksum/SHA1/reset/62 6973s ok 621 /checksum/SHA1/reset/63 6973s ok 622 /checksum/SHA1/reset/64 6973s ok 623 /checksum/SHA1/reset/65 6973s ok 624 /checksum/SHA1/reset/66 6973s ok 625 /checksum/SHA1/reset/67 6973s ok 626 /checksum/SHA1/reset/68 6973s ok 627 /checksum/SHA1/reset/69 6973s ok 628 /checksum/SHA1/reset/70 6973s ok 629 /checksum/SHA1/reset/71 6973s ok 630 /checksum/SHA1/reset/72 6973s ok 631 /checksum/SHA1/reset/73 6973s ok 632 /checksum/SHA1/reset/74 6973s ok 633 /checksum/SHA1/reset/75 6973s ok 634 /checksum/SHA1/reset/76 6973s ok 635 /checksum/SHA1/reset/77 6973s ok 636 /checksum/SHA1/reset/78 6973s ok 637 /checksum/SHA1/reset/79 6973s ok 638 /checksum/SHA1/reset/80 6973s ok 639 /checksum/SHA1/reset/81 6973s ok 640 /checksum/SHA1/reset/82 6973s ok 641 /checksum/SHA1/reset/83 6973s ok 642 /checksum/SHA1/reset/84 6973s ok 643 /checksum/SHA1/reset/85 6973s ok 644 /checksum/SHA1/reset/86 6973s ok 645 /checksum/SHA1/reset/87 6973s ok 646 /checksum/SHA1/reset/88 6973s ok 647 /checksum/SHA1/reset/89 6973s ok 648 /checksum/SHA1/reset/90 6973s ok 649 /checksum/SHA1/reset/91 6973s ok 650 /checksum/SHA1/reset/92 6973s ok 651 /checksum/SHA1/reset/93 6973s ok 652 /checksum/SHA1/reset/94 6973s ok 653 /checksum/SHA1/reset/95 6973s ok 654 /checksum/SHA1/reset/96 6973s ok 655 /checksum/SHA1/reset/97 6973s ok 656 /checksum/SHA1/reset/98 6973s ok 657 /checksum/SHA1/reset/99 6973s ok 658 /checksum/SHA1/reset/100 6973s ok 659 /checksum/SHA1/reset/101 6973s ok 660 /checksum/SHA1/reset/102 6973s ok 661 /checksum/SHA1/reset/103 6973s ok 662 /checksum/SHA1/reset/104 6973s ok 663 /checksum/SHA1/reset/105 6973s ok 664 /checksum/SHA1/reset/106 6973s ok 665 /checksum/SHA1/reset/107 6973s ok 666 /checksum/SHA1/reset/108 6973s ok 667 /checksum/SHA1/reset/109 6973s ok 668 /checksum/SHA1/reset/110 6973s ok 669 /checksum/SHA1/reset/111 6973s ok 670 /checksum/SHA1/reset/112 6973s ok 671 /checksum/SHA1/reset/113 6973s ok 672 /checksum/SHA1/reset/114 6973s ok 673 /checksum/SHA1/reset/115 6973s ok 674 /checksum/SHA1/reset/116 6973s ok 675 /checksum/SHA1/reset/117 6973s ok 676 /checksum/SHA1/reset/118 6973s ok 677 /checksum/SHA1/reset/119 6973s ok 678 /checksum/SHA1/reset/120 6973s ok 679 /checksum/SHA1/reset/121 6973s ok 680 /checksum/SHA1/reset/122 6973s ok 681 /checksum/SHA1/reset/123 6973s ok 682 /checksum/SHA1/reset/124 6973s ok 683 /checksum/SHA1/reset/125 6973s ok 684 /checksum/SHA1/reset/126 6973s ok 685 /checksum/SHA1/reset/127 6973s ok 686 /checksum/SHA1/reset/128 6973s ok 687 /checksum/SHA1/reset/129 6973s ok 688 /checksum/SHA1/reset/130 6973s ok 689 /checksum/SHA1/reset/131 6973s ok 690 /checksum/SHA1/reset/132 6973s ok 691 /checksum/SHA1/reset/133 6973s ok 692 /checksum/SHA1/reset/134 6973s ok 693 /checksum/SHA1/reset/135 6973s ok 694 /checksum/SHA1/reset/136 6973s ok 695 /checksum/SHA1/reset/137 6973s ok 696 /checksum/SHA1/reset/138 6973s ok 697 /checksum/SHA1/reset/139 6973s ok 698 /checksum/SHA1/reset/140 6973s ok 699 /checksum/SHA1/reset/141 6973s ok 700 /checksum/SHA1/reset/142 6973s ok 701 /checksum/SHA1/reset/143 6973s ok 702 /checksum/SHA1/reset/144 6973s ok 703 /checksum/SHA1/reset/145 6973s ok 704 /checksum/SHA1/reset/146 6973s ok 705 /checksum/SHA1/reset/147 6973s ok 706 /checksum/SHA1/reset/148 6973s ok 707 /checksum/SHA1/reset/149 6973s ok 708 /checksum/SHA1/reset/150 6973s ok 709 /checksum/SHA1/reset/151 6973s ok 710 /checksum/SHA1/reset/152 6973s ok 711 /checksum/SHA1/reset/153 6973s ok 712 /checksum/SHA1/reset/154 6973s ok 713 /checksum/SHA1/reset/155 6973s ok 714 /checksum/SHA1/reset/156 6973s ok 715 /checksum/SHA1/reset/157 6973s ok 716 /checksum/SHA1/reset/158 6973s ok 717 /checksum/SHA1/reset/159 6973s ok 718 /checksum/SHA1/reset/160 6973s ok 719 /checksum/SHA1/reset/161 6973s ok 720 /checksum/SHA1/reset/162 6973s ok 721 /checksum/SHA1/reset/163 6973s ok 722 /checksum/SHA1/reset/164 6973s ok 723 /checksum/SHA1/reset/165 6973s ok 724 /checksum/SHA1/reset/166 6973s ok 725 /checksum/SHA1/reset/167 6973s ok 726 /checksum/SHA1/reset/168 6973s ok 727 /checksum/SHA1/reset/169 6973s ok 728 /checksum/SHA1/reset/170 6973s ok 729 /checksum/SHA1/reset/171 6973s ok 730 /checksum/SHA1/reset/172 6973s ok 731 /checksum/SHA1/reset/173 6973s ok 732 /checksum/SHA1/reset/174 6973s ok 733 /checksum/SHA1/reset/175 6973s ok 734 /checksum/SHA1/reset/176 6973s ok 735 /checksum/SHA1/reset/177 6973s ok 736 /checksum/SHA1/reset/178 6973s ok 737 /checksum/SHA1/reset/179 6973s ok 738 /checksum/SHA1/reset/180 6973s ok 739 /checksum/SHA1/reset/181 6973s ok 740 /checksum/SHA1/reset/182 6973s ok 741 /checksum/SHA1/reset/183 6973s # End of reset tests 6973s # End of SHA1 tests 6973s # Start of SHA256 tests 6973s ok 742 /checksum/SHA256/0 6973s ok 743 /checksum/SHA256/1 6973s ok 744 /checksum/SHA256/2 6973s ok 745 /checksum/SHA256/3 6973s ok 746 /checksum/SHA256/4 6973s ok 747 /checksum/SHA256/5 6973s ok 748 /checksum/SHA256/6 6973s ok 749 /checksum/SHA256/7 6973s ok 750 /checksum/SHA256/8 6973s ok 751 /checksum/SHA256/9 6973s ok 752 /checksum/SHA256/10 6973s ok 753 /checksum/SHA256/11 6973s ok 754 /checksum/SHA256/12 6973s ok 755 /checksum/SHA256/13 6973s ok 756 /checksum/SHA256/14 6973s ok 757 /checksum/SHA256/15 6973s ok 758 /checksum/SHA256/16 6973s ok 759 /checksum/SHA256/17 6973s ok 760 /checksum/SHA256/18 6973s ok 761 /checksum/SHA256/19 6973s ok 762 /checksum/SHA256/20 6973s ok 763 /checksum/SHA256/21 6973s ok 764 /checksum/SHA256/22 6973s ok 765 /checksum/SHA256/23 6973s ok 766 /checksum/SHA256/24 6973s ok 767 /checksum/SHA256/25 6973s ok 768 /checksum/SHA256/26 6973s ok 769 /checksum/SHA256/27 6973s ok 770 /checksum/SHA256/28 6973s ok 771 /checksum/SHA256/29 6973s ok 772 /checksum/SHA256/30 6973s ok 773 /checksum/SHA256/31 6973s ok 774 /checksum/SHA256/32 6973s ok 775 /checksum/SHA256/33 6973s ok 776 /checksum/SHA256/34 6973s ok 777 /checksum/SHA256/35 6973s ok 778 /checksum/SHA256/36 6973s ok 779 /checksum/SHA256/37 6973s ok 780 /checksum/SHA256/38 6973s ok 781 /checksum/SHA256/39 6973s ok 782 /checksum/SHA256/40 6973s ok 783 /checksum/SHA256/41 6973s ok 784 /checksum/SHA256/42 6973s ok 785 /checksum/SHA256/43 6973s ok 786 /checksum/SHA256/44 6973s ok 787 /checksum/SHA256/45 6973s ok 788 /checksum/SHA256/46 6973s ok 789 /checksum/SHA256/47 6973s ok 790 /checksum/SHA256/48 6973s ok 791 /checksum/SHA256/49 6973s ok 792 /checksum/SHA256/50 6973s ok 793 /checksum/SHA256/51 6973s ok 794 /checksum/SHA256/52 6973s ok 795 /checksum/SHA256/53 6973s ok 796 /checksum/SHA256/54 6973s ok 797 /checksum/SHA256/55 6973s ok 798 /checksum/SHA256/56 6973s ok 799 /checksum/SHA256/57 6973s ok 800 /checksum/SHA256/58 6973s ok 801 /checksum/SHA256/59 6973s ok 802 /checksum/SHA256/60 6973s ok 803 /checksum/SHA256/61 6973s ok 804 /checksum/SHA256/62 6973s ok 805 /checksum/SHA256/63 6973s ok 806 /checksum/SHA256/64 6973s ok 807 /checksum/SHA256/65 6973s ok 808 /checksum/SHA256/66 6973s ok 809 /checksum/SHA256/67 6973s ok 810 /checksum/SHA256/68 6973s ok 811 /checksum/SHA256/69 6973s ok 812 /checksum/SHA256/70 6973s ok 813 /checksum/SHA256/71 6973s ok 814 /checksum/SHA256/72 6973s ok 815 /checksum/SHA256/73 6973s ok 816 /checksum/SHA256/74 6973s ok 817 /checksum/SHA256/75 6973s ok 818 /checksum/SHA256/76 6973s ok 819 /checksum/SHA256/77 6973s ok 820 /checksum/SHA256/78 6973s ok 821 /checksum/SHA256/79 6973s ok 822 /checksum/SHA256/80 6973s ok 823 /checksum/SHA256/81 6973s ok 824 /checksum/SHA256/82 6973s ok 825 /checksum/SHA256/83 6973s ok 826 /checksum/SHA256/84 6973s ok 827 /checksum/SHA256/85 6973s ok 828 /checksum/SHA256/86 6973s ok 829 /checksum/SHA256/87 6973s ok 830 /checksum/SHA256/88 6973s ok 831 /checksum/SHA256/89 6973s ok 832 /checksum/SHA256/90 6973s ok 833 /checksum/SHA256/91 6973s ok 834 /checksum/SHA256/92 6973s ok 835 /checksum/SHA256/93 6973s ok 836 /checksum/SHA256/94 6973s ok 837 /checksum/SHA256/95 6973s ok 838 /checksum/SHA256/96 6973s ok 839 /checksum/SHA256/97 6973s ok 840 /checksum/SHA256/98 6973s ok 841 /checksum/SHA256/99 6973s ok 842 /checksum/SHA256/100 6973s ok 843 /checksum/SHA256/101 6973s ok 844 /checksum/SHA256/102 6973s ok 845 /checksum/SHA256/103 6973s ok 846 /checksum/SHA256/104 6973s ok 847 /checksum/SHA256/105 6973s ok 848 /checksum/SHA256/106 6973s ok 849 /checksum/SHA256/107 6973s ok 850 /checksum/SHA256/108 6973s ok 851 /checksum/SHA256/109 6973s ok 852 /checksum/SHA256/110 6973s ok 853 /checksum/SHA256/111 6973s ok 854 /checksum/SHA256/112 6973s ok 855 /checksum/SHA256/113 6973s ok 856 /checksum/SHA256/114 6973s ok 857 /checksum/SHA256/115 6973s ok 858 /checksum/SHA256/116 6973s ok 859 /checksum/SHA256/117 6973s ok 860 /checksum/SHA256/118 6973s ok 861 /checksum/SHA256/119 6973s ok 862 /checksum/SHA256/120 6973s ok 863 /checksum/SHA256/121 6973s ok 864 /checksum/SHA256/122 6973s ok 865 /checksum/SHA256/123 6973s ok 866 /checksum/SHA256/124 6973s ok 867 /checksum/SHA256/125 6973s ok 868 /checksum/SHA256/126 6973s ok 869 /checksum/SHA256/127 6973s ok 870 /checksum/SHA256/128 6973s ok 871 /checksum/SHA256/129 6973s ok 872 /checksum/SHA256/130 6973s ok 873 /checksum/SHA256/131 6973s ok 874 /checksum/SHA256/132 6973s ok 875 /checksum/SHA256/133 6973s ok 876 /checksum/SHA256/134 6973s ok 877 /checksum/SHA256/135 6973s ok 878 /checksum/SHA256/136 6973s ok 879 /checksum/SHA256/137 6973s ok 880 /checksum/SHA256/138 6973s ok 881 /checksum/SHA256/139 6973s ok 882 /checksum/SHA256/140 6973s ok 883 /checksum/SHA256/141 6973s ok 884 /checksum/SHA256/142 6973s ok 885 /checksum/SHA256/143 6973s ok 886 /checksum/SHA256/144 6973s ok 887 /checksum/SHA256/145 6973s ok 888 /checksum/SHA256/146 6973s ok 889 /checksum/SHA256/147 6973s ok 890 /checksum/SHA256/148 6973s ok 891 /checksum/SHA256/149 6973s ok 892 /checksum/SHA256/150 6973s ok 893 /checksum/SHA256/151 6973s ok 894 /checksum/SHA256/152 6973s ok 895 /checksum/SHA256/153 6973s ok 896 /checksum/SHA256/154 6973s ok 897 /checksum/SHA256/155 6973s ok 898 /checksum/SHA256/156 6973s ok 899 /checksum/SHA256/157 6973s ok 900 /checksum/SHA256/158 6973s ok 901 /checksum/SHA256/159 6973s ok 902 /checksum/SHA256/160 6973s ok 903 /checksum/SHA256/161 6973s ok 904 /checksum/SHA256/162 6973s ok 905 /checksum/SHA256/163 6973s ok 906 /checksum/SHA256/164 6973s ok 907 /checksum/SHA256/165 6973s ok 908 /checksum/SHA256/166 6973s ok 909 /checksum/SHA256/167 6973s ok 910 /checksum/SHA256/168 6973s ok 911 /checksum/SHA256/169 6973s ok 912 /checksum/SHA256/170 6973s ok 913 /checksum/SHA256/171 6973s ok 914 /checksum/SHA256/172 6973s ok 915 /checksum/SHA256/173 6973s ok 916 /checksum/SHA256/174 6973s ok 917 /checksum/SHA256/175 6973s ok 918 /checksum/SHA256/176 6973s ok 919 /checksum/SHA256/177 6973s ok 920 /checksum/SHA256/178 6973s ok 921 /checksum/SHA256/179 6973s ok 922 /checksum/SHA256/180 6973s ok 923 /checksum/SHA256/181 6973s ok 924 /checksum/SHA256/182 6973s ok 925 /checksum/SHA256/183 6973s ok 926 /checksum/SHA256/string 6973s ok 927 /checksum/SHA256/bytes 6973s # Start of reset tests 6973s ok 928 /checksum/SHA256/reset/0 6973s ok 929 /checksum/SHA256/reset/1 6973s ok 930 /checksum/SHA256/reset/2 6973s ok 931 /checksum/SHA256/reset/3 6973s ok 932 /checksum/SHA256/reset/4 6973s ok 933 /checksum/SHA256/reset/5 6973s ok 934 /checksum/SHA256/reset/6 6973s ok 935 /checksum/SHA256/reset/7 6973s ok 936 /checksum/SHA256/reset/8 6973s ok 937 /checksum/SHA256/reset/9 6973s ok 938 /checksum/SHA256/reset/10 6973s ok 939 /checksum/SHA256/reset/11 6973s ok 940 /checksum/SHA256/reset/12 6973s ok 941 /checksum/SHA256/reset/13 6973s ok 942 /checksum/SHA256/reset/14 6973s ok 943 /checksum/SHA256/reset/15 6973s ok 944 /checksum/SHA256/reset/16 6973s ok 945 /checksum/SHA256/reset/17 6973s ok 946 /checksum/SHA256/reset/18 6973s ok 947 /checksum/SHA256/reset/19 6973s ok 948 /checksum/SHA256/reset/20 6973s ok 949 /checksum/SHA256/reset/21 6973s ok 950 /checksum/SHA256/reset/22 6973s ok 951 /checksum/SHA256/reset/23 6973s ok 952 /checksum/SHA256/reset/24 6973s ok 953 /checksum/SHA256/reset/25 6973s ok 954 /checksum/SHA256/reset/26 6973s ok 955 /checksum/SHA256/reset/27 6973s # Executing: glib/checksum.test 6973s ok 956 /checksum/SHA256/reset/28 6973s ok 957 /checksum/SHA256/reset/29 6973s ok 958 /checksum/SHA256/reset/30 6973s ok 959 /checksum/SHA256/reset/31 6973s ok 960 /checksum/SHA256/reset/32 6973s ok 961 /checksum/SHA256/reset/33 6973s ok 962 /checksum/SHA256/reset/34 6973s ok 963 /checksum/SHA256/reset/35 6973s ok 964 /checksum/SHA256/reset/36 6973s ok 965 /checksum/SHA256/reset/37 6973s ok 966 /checksum/SHA256/reset/38 6973s ok 967 /checksum/SHA256/reset/39 6973s ok 968 /checksum/SHA256/reset/40 6973s ok 969 /checksum/SHA256/reset/41 6973s ok 970 /checksum/SHA256/reset/42 6973s ok 971 /checksum/SHA256/reset/43 6973s ok 972 /checksum/SHA256/reset/44 6973s ok 973 /checksum/SHA256/reset/45 6973s ok 974 /checksum/SHA256/reset/46 6973s ok 975 /checksum/SHA256/reset/47 6973s ok 976 /checksum/SHA256/reset/48 6973s ok 977 /checksum/SHA256/reset/49 6973s ok 978 /checksum/SHA256/reset/50 6973s ok 979 /checksum/SHA256/reset/51 6973s ok 980 /checksum/SHA256/reset/52 6973s ok 981 /checksum/SHA256/reset/53 6973s ok 982 /checksum/SHA256/reset/54 6973s ok 983 /checksum/SHA256/reset/55 6973s ok 984 /checksum/SHA256/reset/56 6973s ok 985 /checksum/SHA256/reset/57 6973s ok 986 /checksum/SHA256/reset/58 6973s ok 987 /checksum/SHA256/reset/59 6973s ok 988 /checksum/SHA256/reset/60 6973s ok 989 /checksum/SHA256/reset/61 6973s ok 990 /checksum/SHA256/reset/62 6973s ok 991 /checksum/SHA256/reset/63 6973s ok 992 /checksum/SHA256/reset/64 6973s ok 993 /checksum/SHA256/reset/65 6973s ok 994 /checksum/SHA256/reset/66 6973s ok 995 /checksum/SHA256/reset/67 6973s ok 996 /checksum/SHA256/reset/68 6973s ok 997 /checksum/SHA256/reset/69 6973s ok 998 /checksum/SHA256/reset/70 6973s ok 999 /checksum/SHA256/reset/71 6973s ok 1000 /checksum/SHA256/reset/72 6973s ok 1001 /checksum/SHA256/reset/73 6973s ok 1002 /checksum/SHA256/reset/74 6973s ok 1003 /checksum/SHA256/reset/75 6973s ok 1004 /checksum/SHA256/reset/76 6973s ok 1005 /checksum/SHA256/reset/77 6973s ok 1006 /checksum/SHA256/reset/78 6973s ok 1007 /checksum/SHA256/reset/79 6973s ok 1008 /checksum/SHA256/reset/80 6973s ok 1009 /checksum/SHA256/reset/81 6973s ok 1010 /checksum/SHA256/reset/82 6973s ok 1011 /checksum/SHA256/reset/83 6973s ok 1012 /checksum/SHA256/reset/84 6973s ok 1013 /checksum/SHA256/reset/85 6973s ok 1014 /checksum/SHA256/reset/86 6973s ok 1015 /checksum/SHA256/reset/87 6973s ok 1016 /checksum/SHA256/reset/88 6973s ok 1017 /checksum/SHA256/reset/89 6973s ok 1018 /checksum/SHA256/reset/90 6973s ok 1019 /checksum/SHA256/reset/91 6973s ok 1020 /checksum/SHA256/reset/92 6973s ok 1021 /checksum/SHA256/reset/93 6973s ok 1022 /checksum/SHA256/reset/94 6973s ok 1023 /checksum/SHA256/reset/95 6973s ok 1024 /checksum/SHA256/reset/96 6973s ok 1025 /checksum/SHA256/reset/97 6973s ok 1026 /checksum/SHA256/reset/98 6973s ok 1027 /checksum/SHA256/reset/99 6973s ok 1028 /checksum/SHA256/reset/100 6973s ok 1029 /checksum/SHA256/reset/101 6973s ok 1030 /checksum/SHA256/reset/102 6973s ok 1031 /checksum/SHA256/reset/103 6973s ok 1032 /checksum/SHA256/reset/104 6973s ok 1033 /checksum/SHA256/reset/105 6973s ok 1034 /checksum/SHA256/reset/106 6973s ok 1035 /checksum/SHA256/reset/107 6973s ok 1036 /checksum/SHA256/reset/108 6973s ok 1037 /checksum/SHA256/reset/109 6973s ok 1038 /checksum/SHA256/reset/110 6973s ok 1039 /checksum/SHA256/reset/111 6973s ok 1040 /checksum/SHA256/reset/112 6973s ok 1041 /checksum/SHA256/reset/113 6973s ok 1042 /checksum/SHA256/reset/114 6973s ok 1043 /checksum/SHA256/reset/115 6973s ok 1044 /checksum/SHA256/reset/116 6973s ok 1045 /checksum/SHA256/reset/117 6973s ok 1046 /checksum/SHA256/reset/118 6973s ok 1047 /checksum/SHA256/reset/119 6973s ok 1048 /checksum/SHA256/reset/120 6973s ok 1049 /checksum/SHA256/reset/121 6973s ok 1050 /checksum/SHA256/reset/122 6973s ok 1051 /checksum/SHA256/reset/123 6973s ok 1052 /checksum/SHA256/reset/124 6973s ok 1053 /checksum/SHA256/reset/125 6973s ok 1054 /checksum/SHA256/reset/126 6973s ok 1055 /checksum/SHA256/reset/127 6973s ok 1056 /checksum/SHA256/reset/128 6973s ok 1057 /checksum/SHA256/reset/129 6973s ok 1058 /checksum/SHA256/reset/130 6973s ok 1059 /checksum/SHA256/reset/131 6973s ok 1060 /checksum/SHA256/reset/132 6973s ok 1061 /checksum/SHA256/reset/133 6973s ok 1062 /checksum/SHA256/reset/134 6973s ok 1063 /checksum/SHA256/reset/135 6973s ok 1064 /checksum/SHA256/reset/136 6973s ok 1065 /checksum/SHA256/reset/137 6973s ok 1066 /checksum/SHA256/reset/138 6973s ok 1067 /checksum/SHA256/reset/139 6973s ok 1068 /checksum/SHA256/reset/140 6973s ok 1069 /checksum/SHA256/reset/141 6973s ok 1070 /checksum/SHA256/reset/142 6973s ok 1071 /checksum/SHA256/reset/143 6973s ok 1072 /checksum/SHA256/reset/144 6973s ok 1073 /checksum/SHA256/reset/145 6973s ok 1074 /checksum/SHA256/reset/146 6973s ok 1075 /checksum/SHA256/reset/147 6973s ok 1076 /checksum/SHA256/reset/148 6973s ok 1077 /checksum/SHA256/reset/149 6973s ok 1078 /checksum/SHA256/reset/150 6973s ok 1079 /checksum/SHA256/reset/151 6973s ok 1080 /checksum/SHA256/reset/152 6973s ok 1081 /checksum/SHA256/reset/153 6973s ok 1082 /checksum/SHA256/reset/154 6973s ok 1083 /checksum/SHA256/reset/155 6973s ok 1084 /checksum/SHA256/reset/156 6973s ok 1085 /checksum/SHA256/reset/157 6973s ok 1086 /checksum/SHA256/reset/158 6973s ok 1087 /checksum/SHA256/reset/159 6973s ok 1088 /checksum/SHA256/reset/160 6973s ok 1089 /checksum/SHA256/reset/161 6973s ok 1090 /checksum/SHA256/reset/162 6973s ok 1091 /checksum/SHA256/reset/163 6973s ok 1092 /checksum/SHA256/reset/164 6973s ok 1093 /checksum/SHA256/reset/165 6973s ok 1094 /checksum/SHA256/reset/166 6973s ok 1095 /checksum/SHA256/reset/167 6973s ok 1096 /checksum/SHA256/reset/168 6973s ok 1097 /checksum/SHA256/reset/169 6973s ok 1098 /checksum/SHA256/reset/170 6973s ok 1099 /checksum/SHA256/reset/171 6973s ok 1100 /checksum/SHA256/reset/172 6973s ok 1101 /checksum/SHA256/reset/173 6973s ok 1102 /checksum/SHA256/reset/174 6973s ok 1103 /checksum/SHA256/reset/175 6973s ok 1104 /checksum/SHA256/reset/176 6973s ok 1105 /checksum/SHA256/reset/177 6973s ok 1106 /checksum/SHA256/reset/178 6973s ok 1107 /checksum/SHA256/reset/179 6973s ok 1108 /checksum/SHA256/reset/180 6973s ok 1109 /checksum/SHA256/reset/181 6973s ok 1110 /checksum/SHA256/reset/182 6973s ok 1111 /checksum/SHA256/reset/183 6973s # End of reset tests 6973s # End of SHA256 tests 6973s # Start of SHA384 tests 6973s ok 1112 /checksum/SHA384/0 6973s ok 1113 /checksum/SHA384/1 6973s ok 1114 /checksum/SHA384/2 6973s ok 1115 /checksum/SHA384/3 6973s ok 1116 /checksum/SHA384/4 6973s ok 1117 /checksum/SHA384/5 6973s ok 1118 /checksum/SHA384/6 6973s ok 1119 /checksum/SHA384/7 6973s ok 1120 /checksum/SHA384/8 6973s ok 1121 /checksum/SHA384/9 6973s ok 1122 /checksum/SHA384/10 6973s ok 1123 /checksum/SHA384/11 6973s ok 1124 /checksum/SHA384/12 6973s ok 1125 /checksum/SHA384/13 6973s ok 1126 /checksum/SHA384/14 6973s ok 1127 /checksum/SHA384/15 6973s ok 1128 /checksum/SHA384/16 6973s ok 1129 /checksum/SHA384/17 6973s ok 1130 /checksum/SHA384/18 6973s ok 1131 /checksum/SHA384/19 6973s ok 1132 /checksum/SHA384/20 6973s ok 1133 /checksum/SHA384/21 6973s ok 1134 /checksum/SHA384/22 6973s ok 1135 /checksum/SHA384/23 6973s ok 1136 /checksum/SHA384/24 6973s ok 1137 /checksum/SHA384/25 6973s ok 1138 /checksum/SHA384/26 6973s ok 1139 /checksum/SHA384/27 6973s ok 1140 /checksum/SHA384/28 6973s ok 1141 /checksum/SHA384/29 6973s ok 1142 /checksum/SHA384/30 6973s ok 1143 /checksum/SHA384/31 6973s ok 1144 /checksum/SHA384/32 6973s ok 1145 /checksum/SHA384/33 6973s ok 1146 /checksum/SHA384/34 6973s ok 1147 /checksum/SHA384/35 6973s ok 1148 /checksum/SHA384/36 6973s ok 1149 /checksum/SHA384/37 6973s ok 1150 /checksum/SHA384/38 6973s ok 1151 /checksum/SHA384/39 6974s ok 1152 /checksum/SHA384/40 6974s ok 1153 /checksum/SHA384/41 6974s ok 1154 /checksum/SHA384/42 6974s ok 1155 /checksum/SHA384/43 6974s ok 1156 /checksum/SHA384/44 6974s ok 1157 /checksum/SHA384/45 6974s ok 1158 /checksum/SHA384/46 6974s ok 1159 /checksum/SHA384/47 6974s ok 1160 /checksum/SHA384/48 6974s ok 1161 /checksum/SHA384/49 6974s ok 1162 /checksum/SHA384/50 6974s ok 1163 /checksum/SHA384/51 6974s ok 1164 /checksum/SHA384/52 6974s ok 1165 /checksum/SHA384/53 6974s ok 1166 /checksum/SHA384/54 6974s ok 1167 /checksum/SHA384/55 6974s ok 1168 /checksum/SHA384/56 6974s ok 1169 /checksum/SHA384/57 6974s ok 1170 /checksum/SHA384/58 6974s ok 1171 /checksum/SHA384/59 6974s ok 1172 /checksum/SHA384/60 6974s ok 1173 /checksum/SHA384/61 6974s ok 1174 /checksum/SHA384/62 6974s ok 1175 /checksum/SHA384/63 6974s ok 1176 /checksum/SHA384/64 6974s ok 1177 /checksum/SHA384/65 6974s ok 1178 /checksum/SHA384/66 6974s ok 1179 /checksum/SHA384/67 6974s ok 1180 /checksum/SHA384/68 6974s ok 1181 /checksum/SHA384/69 6974s ok 1182 /checksum/SHA384/70 6974s ok 1183 /checksum/SHA384/71 6974s ok 1184 /checksum/SHA384/72 6974s ok 1185 /checksum/SHA384/73 6974s ok 1186 /checksum/SHA384/74 6974s ok 1187 /checksum/SHA384/75 6974s ok 1188 /checksum/SHA384/76 6974s ok 1189 /checksum/SHA384/77 6974s ok 1190 /checksum/SHA384/78 6974s ok 1191 /checksum/SHA384/79 6974s ok 1192 /checksum/SHA384/80 6974s ok 1193 /checksum/SHA384/81 6974s ok 1194 /checksum/SHA384/82 6974s ok 1195 /checksum/SHA384/83 6974s ok 1196 /checksum/SHA384/84 6974s ok 1197 /checksum/SHA384/85 6974s ok 1198 /checksum/SHA384/86 6974s ok 1199 /checksum/SHA384/87 6974s ok 1200 /checksum/SHA384/88 6974s ok 1201 /checksum/SHA384/89 6974s ok 1202 /checksum/SHA384/90 6974s ok 1203 /checksum/SHA384/91 6974s ok 1204 /checksum/SHA384/92 6974s ok 1205 /checksum/SHA384/93 6974s ok 1206 /checksum/SHA384/94 6974s ok 1207 /checksum/SHA384/95 6974s ok 1208 /checksum/SHA384/96 6974s ok 1209 /checksum/SHA384/97 6974s ok 1210 /checksum/SHA384/98 6974s ok 1211 /checksum/SHA384/99 6974s ok 1212 /checksum/SHA384/100 6974s ok 1213 /checksum/SHA384/101 6974s ok 1214 /checksum/SHA384/102 6974s ok 1215 /checksum/SHA384/103 6974s ok 1216 /checksum/SHA384/104 6974s ok 1217 /checksum/SHA384/105 6974s ok 1218 /checksum/SHA384/106 6974s ok 1219 /checksum/SHA384/107 6974s ok 1220 /checksum/SHA384/108 6974s ok 1221 /checksum/SHA384/109 6974s ok 1222 /checksum/SHA384/110 6974s ok 1223 /checksum/SHA384/111 6974s ok 1224 /checksum/SHA384/112 6974s ok 1225 /checksum/SHA384/113 6974s ok 1226 /checksum/SHA384/114 6974s ok 1227 /checksum/SHA384/115 6974s ok 1228 /checksum/SHA384/116 6974s ok 1229 /checksum/SHA384/117 6974s ok 1230 /checksum/SHA384/118 6974s ok 1231 /checksum/SHA384/119 6974s ok 1232 /checksum/SHA384/120 6974s ok 1233 /checksum/SHA384/121 6974s ok 1234 /checksum/SHA384/122 6974s ok 1235 /checksum/SHA384/123 6974s ok 1236 /checksum/SHA384/124 6974s ok 1237 /checksum/SHA384/125 6974s ok 1238 /checksum/SHA384/126 6974s ok 1239 /checksum/SHA384/127 6974s ok 1240 /checksum/SHA384/128 6974s ok 1241 /checksum/SHA384/129 6974s ok 1242 /checksum/SHA384/130 6974s ok 1243 /checksum/SHA384/131 6974s ok 1244 /checksum/SHA384/132 6974s ok 1245 /checksum/SHA384/133 6974s ok 1246 /checksum/SHA384/134 6974s ok 1247 /checksum/SHA384/135 6974s ok 1248 /checksum/SHA384/136 6974s ok 1249 /checksum/SHA384/137 6974s ok 1250 /checksum/SHA384/138 6974s ok 1251 /checksum/SHA384/139 6974s ok 1252 /checksum/SHA384/140 6974s ok 1253 /checksum/SHA384/141 6974s ok 1254 /checksum/SHA384/142 6974s ok 1255 /checksum/SHA384/143 6974s ok 1256 /checksum/SHA384/144 6974s ok 1257 /checksum/SHA384/145 6974s ok 1258 /checksum/SHA384/146 6974s ok 1259 /checksum/SHA384/147 6974s ok 1260 /checksum/SHA384/148 6974s ok 1261 /checksum/SHA384/149 6974s ok 1262 /checksum/SHA384/150 6974s ok 1263 /checksum/SHA384/151 6974s ok 1264 /checksum/SHA384/152 6974s ok 1265 /checksum/SHA384/153 6974s ok 1266 /checksum/SHA384/154 6974s ok 1267 /checksum/SHA384/155 6974s ok 1268 /checksum/SHA384/156 6974s ok 1269 /checksum/SHA384/157 6974s ok 1270 /checksum/SHA384/158 6974s ok 1271 /checksum/SHA384/159 6974s ok 1272 /checksum/SHA384/160 6974s ok 1273 /checksum/SHA384/161 6974s ok 1274 /checksum/SHA384/162 6974s ok 1275 /checksum/SHA384/163 6974s ok 1276 /checksum/SHA384/164 6974s ok 1277 /checksum/SHA384/165 6974s ok 1278 /checksum/SHA384/166 6974s ok 1279 /checksum/SHA384/167 6974s ok 1280 /checksum/SHA384/168 6974s ok 1281 /checksum/SHA384/169 6974s ok 1282 /checksum/SHA384/170 6974s ok 1283 /checksum/SHA384/171 6974s ok 1284 /checksum/SHA384/172 6974s ok 1285 /checksum/SHA384/173 6974s ok 1286 /checksum/SHA384/174 6974s ok 1287 /checksum/SHA384/175 6974s ok 1288 /checksum/SHA384/176 6974s ok 1289 /checksum/SHA384/177 6974s ok 1290 /checksum/SHA384/178 6974s ok 1291 /checksum/SHA384/179 6974s ok 1292 /checksum/SHA384/180 6974s ok 1293 /checksum/SHA384/181 6974s ok 1294 /checksum/SHA384/182 6974s ok 1295 /checksum/SHA384/183 6974s ok 1296 /checksum/SHA384/string 6974s ok 1297 /checksum/SHA384/bytes 6974s # Start of reset tests 6974s ok 1298 /checksum/SHA384/reset/0 6974s ok 1299 /checksum/SHA384/reset/1 6974s ok 1300 /checksum/SHA384/reset/2 6974s ok 1301 /checksum/SHA384/reset/3 6974s ok 1302 /checksum/SHA384/reset/4 6974s ok 1303 /checksum/SHA384/reset/5 6974s ok 1304 /checksum/SHA384/reset/6 6974s ok 1305 /checksum/SHA384/reset/7 6974s ok 1306 /checksum/SHA384/reset/8 6974s ok 1307 /checksum/SHA384/reset/9 6974s ok 1308 /checksum/SHA384/reset/10 6974s ok 1309 /checksum/SHA384/reset/11 6974s ok 1310 /checksum/SHA384/reset/12 6974s ok 1311 /checksum/SHA384/reset/13 6974s ok 1312 /checksum/SHA384/reset/14 6974s ok 1313 /checksum/SHA384/reset/15 6974s ok 1314 /checksum/SHA384/reset/16 6974s ok 1315 /checksum/SHA384/reset/17 6974s ok 1316 /checksum/SHA384/reset/18 6974s ok 1317 /checksum/SHA384/reset/19 6974s ok 1318 /checksum/SHA384/reset/20 6974s ok 1319 /checksum/SHA384/reset/21 6974s ok 1320 /checksum/SHA384/reset/22 6974s ok 1321 /checksum/SHA384/reset/23 6974s ok 1322 /checksum/SHA384/reset/24 6974s ok 1323 /checksum/SHA384/reset/25 6974s ok 1324 /checksum/SHA384/reset/26 6974s ok 1325 /checksum/SHA384/reset/27 6974s ok 1326 /checksum/SHA384/reset/28 6974s ok 1327 /checksum/SHA384/reset/29 6974s ok 1328 /checksum/SHA384/reset/30 6974s ok 1329 /checksum/SHA384/reset/31 6974s ok 1330 /checksum/SHA384/reset/32 6974s ok 1331 /checksum/SHA384/reset/33 6974s ok 1332 /checksum/SHA384/reset/34 6974s ok 1333 /checksum/SHA384/reset/35 6974s ok 1334 /checksum/SHA384/reset/36 6974s ok 1335 /checksum/SHA384/reset/37 6974s ok 1336 /checksum/SHA384/reset/38 6974s ok 1337 /checksum/SHA384/reset/39 6974s ok 1338 /checksum/SHA384/reset/40 6974s ok 1339 /checksum/SHA384/reset/41 6974s ok 1340 /checksum/SHA384/reset/42 6974s ok 1341 /checksum/SHA384/reset/43 6974s ok 1342 /checksum/SHA384/reset/44 6974s ok 1343 /checksum/SHA384/reset/45 6974s ok 1344 /checksum/SHA384/reset/46 6974s ok 1345 /checksum/SHA384/reset/47 6974s ok 1346 /checksum/SHA384/reset/48 6974s ok 1347 /checksum/SHA384/reset/49 6974s ok 1348 /checksum/SHA384/reset/50 6974s ok 1349 /checksum/SHA384/reset/51 6974s ok 1350 /checksum/SHA384/reset/52 6974s ok 1351 /checksum/SHA384/reset/53 6974s ok 1352 /checksum/SHA384/reset/54 6974s ok 1353 /checksum/SHA384/reset/55 6974s ok 1354 /checksum/SHA384/reset/56 6974s ok 1355 /checksum/SHA384/reset/57 6974s ok 1356 /checksum/SHA384/reset/58 6974s ok 1357 /checksum/SHA384/reset/59 6974s ok 1358 /checksum/SHA384/reset/60 6974s ok 1359 /checksum/SHA384/reset/61 6974s ok 1360 /checksum/SHA384/reset/62 6974s ok 1361 /checksum/SHA384/reset/63 6974s ok 1362 /checksum/SHA384/reset/64 6974s ok 1363 /checksum/SHA384/reset/65 6974s ok 1364 /checksum/SHA384/reset/66 6974s ok 1365 /checksum/SHA384/reset/67 6974s ok 1366 /checksum/SHA384/reset/68 6974s ok 1367 /checksum/SHA384/reset/69 6974s ok 1368 /checksum/SHA384/reset/70 6974s ok 1369 /checksum/SHA384/reset/71 6974s ok 1370 /checksum/SHA384/reset/72 6974s ok 1371 /checksum/SHA384/reset/73 6974s ok 1372 /checksum/SHA384/reset/74 6974s ok 1373 /checksum/SHA384/reset/75 6974s ok 1374 /checksum/SHA384/reset/76 6974s ok 1375 /checksum/SHA384/reset/77 6974s ok 1376 /checksum/SHA384/reset/78 6974s ok 1377 /checksum/SHA384/reset/79 6974s ok 1378 /checksum/SHA384/reset/80 6974s ok 1379 /checksum/SHA384/reset/81 6974s ok 1380 /checksum/SHA384/reset/82 6974s ok 1381 /checksum/SHA384/reset/83 6974s ok 1382 /checksum/SHA384/reset/84 6974s ok 1383 /checksum/SHA384/reset/85 6974s ok 1384 /checksum/SHA384/reset/86 6974s ok 1385 /checksum/SHA384/reset/87 6974s ok 1386 /checksum/SHA384/reset/88 6974s ok 1387 /checksum/SHA384/reset/89 6974s ok 1388 /checksum/SHA384/reset/90 6974s ok 1389 /checksum/SHA384/reset/91 6974s ok 1390 /checksum/SHA384/reset/92 6974s ok 1391 /checksum/SHA384/reset/93 6974s ok 1392 /checksum/SHA384/reset/94 6974s ok 1393 /checksum/SHA384/reset/95 6974s ok 1394 /checksum/SHA384/reset/96 6974s ok 1395 /checksum/SHA384/reset/97 6974s ok 1396 /checksum/SHA384/reset/98 6974s ok 1397 /checksum/SHA384/reset/99 6974s ok 1398 /checksum/SHA384/reset/100 6974s ok 1399 /checksum/SHA384/reset/101 6974s ok 1400 /checksum/SHA384/reset/102 6974s ok 1401 /checksum/SHA384/reset/103 6974s ok 1402 /checksum/SHA384/reset/104 6974s ok 1403 /checksum/SHA384/reset/105 6974s ok 1404 /checksum/SHA384/reset/106 6974s ok 1405 /checksum/SHA384/reset/107 6974s ok 1406 /checksum/SHA384/reset/108 6974s ok 1407 /checksum/SHA384/reset/109 6974s ok 1408 /checksum/SHA384/reset/110 6974s ok 1409 /checksum/SHA384/reset/111 6974s ok 1410 /checksum/SHA384/reset/112 6974s ok 1411 /checksum/SHA384/reset/113 6974s ok 1412 /checksum/SHA384/reset/114 6974s ok 1413 /checksum/SHA384/reset/115 6974s ok 1414 /checksum/SHA384/reset/116 6974s ok 1415 /checksum/SHA384/reset/117 6974s ok 1416 /checksum/SHA384/reset/118 6974s ok 1417 /checksum/SHA384/reset/119 6974s ok 1418 /checksum/SHA384/reset/120 6974s ok 1419 /checksum/SHA384/reset/121 6974s ok 1420 /checksum/SHA384/reset/122 6974s ok 1421 /checksum/SHA384/reset/123 6974s ok 1422 /checksum/SHA384/reset/124 6974s ok 1423 /checksum/SHA384/reset/125 6974s ok 1424 /checksum/SHA384/reset/126 6974s ok 1425 /checksum/SHA384/reset/127 6974s ok 1426 /checksum/SHA384/reset/128 6974s ok 1427 /checksum/SHA384/reset/129 6974s ok 1428 /checksum/SHA384/reset/130 6974s ok 1429 /checksum/SHA384/reset/131 6974s ok 1430 /checksum/SHA384/reset/132 6974s ok 1431 /checksum/SHA384/reset/133 6974s ok 1432 /checksum/SHA384/reset/134 6974s ok 1433 /checksum/SHA384/reset/135 6974s ok 1434 /checksum/SHA384/reset/136 6974s ok 1435 /checksum/SHA384/reset/137 6974s ok 1436 /checksum/SHA384/reset/138 6974s ok 1437 /checksum/SHA384/reset/139 6974s ok 1438 /checksum/SHA384/reset/140 6974s ok 1439 /checksum/SHA384/reset/141 6974s ok 1440 /checksum/SHA384/reset/142 6974s ok 1441 /checksum/SHA384/reset/143 6974s ok 1442 /checksum/SHA384/reset/144 6974s ok 1443 /checksum/SHA384/reset/145 6974s ok 1444 /checksum/SHA384/reset/146 6974s ok 1445 /checksum/SHA384/reset/147 6974s ok 1446 /checksum/SHA384/reset/148 6974s ok 1447 /checksum/SHA384/reset/149 6974s ok 1448 /checksum/SHA384/reset/150 6974s ok 1449 /checksum/SHA384/reset/151 6974s ok 1450 /checksum/SHA384/reset/152 6974s ok 1451 /checksum/SHA384/reset/153 6974s ok 1452 /checksum/SHA384/reset/154 6974s ok 1453 /checksum/SHA384/reset/155 6974s ok 1454 /checksum/SHA384/reset/156 6974s ok 1455 /checksum/SHA384/reset/157 6974s ok 1456 /checksum/SHA384/reset/158 6974s ok 1457 /checksum/SHA384/reset/159 6974s ok 1458 /checksum/SHA384/reset/160 6974s ok 1459 /checksum/SHA384/reset/161 6974s ok 1460 /checksum/SHA384/reset/162 6974s ok 1461 /checksum/SHA384/reset/163 6974s ok 1462 /checksum/SHA384/reset/164 6974s ok 1463 /checksum/SHA384/reset/165 6974s ok 1464 /checksum/SHA384/reset/166 6974s ok 1465 /checksum/SHA384/reset/167 6974s ok 1466 /checksum/SHA384/reset/168 6974s ok 1467 /checksum/SHA384/reset/169 6974s ok 1468 /checksum/SHA384/reset/170 6974s ok 1469 /checksum/SHA384/reset/171 6974s ok 1470 /checksum/SHA384/reset/172 6974s ok 1471 /checksum/SHA384/reset/173 6974s ok 1472 /checksum/SHA384/reset/174 6974s ok 1473 /checksum/SHA384/reset/175 6974s ok 1474 /checksum/SHA384/reset/176 6974s ok 1475 /checksum/SHA384/reset/177 6974s ok 1476 /checksum/SHA384/reset/178 6974s ok 1477 /checksum/SHA384/reset/179 6974s ok 1478 /checksum/SHA384/reset/180 6974s ok 1479 /checksum/SHA384/reset/181 6974s ok 1480 /checksum/SHA384/reset/182 6974s ok 1481 /checksum/SHA384/reset/183 6974s # End of reset tests 6974s # End of SHA384 tests 6974s # Start of SHA512 tests 6974s ok 1482 /checksum/SHA512/0 6974s ok 1483 /checksum/SHA512/1 6974s ok 1484 /checksum/SHA512/2 6974s ok 1485 /checksum/SHA512/3 6974s ok 1486 /checksum/SHA512/4 6974s ok 1487 /checksum/SHA512/5 6974s ok 1488 /checksum/SHA512/6 6974s ok 1489 /checksum/SHA512/7 6974s ok 1490 /checksum/SHA512/8 6974s ok 1491 /checksum/SHA512/9 6974s ok 1492 /checksum/SHA512/10 6974s ok 1493 /checksum/SHA512/11 6974s ok 1494 /checksum/SHA512/12 6974s ok 1495 /checksum/SHA512/13 6974s ok 1496 /checksum/SHA512/14 6974s ok 1497 /checksum/SHA512/15 6974s ok 1498 /checksum/SHA512/16 6974s ok 1499 /checksum/SHA512/17 6974s ok 1500 /checksum/SHA512/18 6974s ok 1501 /checksum/SHA512/19 6974s ok 1502 /checksum/SHA512/20 6974s ok 1503 /checksum/SHA512/21 6974s ok 1504 /checksum/SHA512/22 6974s ok 1505 /checksum/SHA512/23 6974s ok 1506 /checksum/SHA512/24 6974s ok 1507 /checksum/SHA512/25 6974s ok 1508 /checksum/SHA512/26 6974s ok 1509 /checksum/SHA512/27 6974s ok 1510 /checksum/SHA512/28 6974s ok 1511 /checksum/SHA512/29 6974s ok 1512 /checksum/SHA512/30 6974s ok 1513 /checksum/SHA512/31 6974s ok 1514 /checksum/SHA512/32 6974s ok 1515 /checksum/SHA512/33 6974s ok 1516 /checksum/SHA512/34 6974s ok 1517 /checksum/SHA512/35 6974s ok 1518 /checksum/SHA512/36 6974s ok 1519 /checksum/SHA512/37 6974s ok 1520 /checksum/SHA512/38 6974s ok 1521 /checksum/SHA512/39 6974s ok 1522 /checksum/SHA512/40 6974s ok 1523 /checksum/SHA512/41 6974s ok 1524 /checksum/SHA512/42 6974s ok 1525 /checksum/SHA512/43 6974s ok 1526 /checksum/SHA512/44 6974s ok 1527 /checksum/SHA512/45 6974s ok 1528 /checksum/SHA512/46 6974s ok 1529 /checksum/SHA512/47 6974s ok 1530 /checksum/SHA512/48 6974s ok 1531 /checksum/SHA512/49 6974s ok 1532 /checksum/SHA512/50 6974s ok 1533 /checksum/SHA512/51 6974s ok 1534 /checksum/SHA512/52 6974s ok 1535 /checksum/SHA512/53 6974s ok 1536 /checksum/SHA512/54 6974s ok 1537 /checksum/SHA512/55 6974s ok 1538 /checksum/SHA512/56 6974s ok 1539 /checksum/SHA512/57 6974s ok 1540 /checksum/SHA512/58 6974s ok 1541 /checksum/SHA512/59 6974s ok 1542 /checksum/SHA512/60 6974s ok 1543 /checksum/SHA512/61 6974s ok 1544 /checksum/SHA512/62 6974s ok 1545 /checksum/SHA512/63 6974s ok 1546 /checksum/SHA512/64 6974s ok 1547 /checksum/SHA512/65 6974s ok 1548 /checksum/SHA512/66 6974s ok 1549 /checksum/SHA512/67 6974s ok 1550 /checksum/SHA512/68 6974s ok 1551 /checksum/SHA512/69 6974s ok 1552 /checksum/SHA512/70 6974s ok 1553 /checksum/SHA512/71 6974s ok 1554 /checksum/SHA512/72 6974s ok 1555 /checksum/SHA512/73 6974s ok 1556 /checksum/SHA512/74 6974s ok 1557 /checksum/SHA512/75 6974s ok 1558 /checksum/SHA512/76 6974s ok 1559 /checksum/SHA512/77 6974s ok 1560 /checksum/SHA512/78 6974s ok 1561 /checksum/SHA512/79 6974s ok 1562 /checksum/SHA512/80 6974s ok 1563 /checksum/SHA512/81 6974s ok 1564 /checksum/SHA512/82 6974s ok 1565 /checksum/SHA512/83 6974s ok 1566 /checksum/SHA512/84 6974s ok 1567 /checksum/SHA512/85 6974s ok 1568 /checksum/SHA512/86 6974s ok 1569 /checksum/SHA512/87 6974s ok 1570 /checksum/SHA512/88 6974s ok 1571 /checksum/SHA512/89 6974s ok 1572 /checksum/SHA512/90 6974s ok 1573 /checksum/SHA512/91 6974s ok 1574 /checksum/SHA512/92 6974s ok 1575 /checksum/SHA512/93 6974s ok 1576 /checksum/SHA512/94 6974s ok 1577 /checksum/SHA512/95 6974s ok 1578 /checksum/SHA512/96 6974s ok 1579 /checksum/SHA512/97 6974s ok 1580 /checksum/SHA512/98 6974s ok 1581 /checksum/SHA512/99 6974s ok 1582 /checksum/SHA512/100 6974s ok 1583 /checksum/SHA512/101 6974s ok 1584 /checksum/SHA512/102 6974s ok 1585 /checksum/SHA512/103 6974s ok 1586 /checksum/SHA512/104 6974s ok 1587 /checksum/SHA512/105 6974s ok 1588 /checksum/SHA512/106 6974s ok 1589 /checksum/SHA512/107 6974s ok 1590 /checksum/SHA512/108 6974s ok 1591 /checksum/SHA512/109 6974s ok 1592 /checksum/SHA512/110 6974s ok 1593 /checksum/SHA512/111 6974s ok 1594 /checksum/SHA512/112 6974s ok 1595 /checksum/SHA512/113 6974s ok 1596 /checksum/SHA512/114 6974s ok 1597 /checksum/SHA512/115 6974s ok 1598 /checksum/SHA512/116 6974s ok 1599 /checksum/SHA512/117 6974s ok 1600 /checksum/SHA512/118 6974s ok 1601 /checksum/SHA512/119 6974s ok 1602 /checksum/SHA512/120 6974s ok 1603 /checksum/SHA512/121 6974s ok 1604 /checksum/SHA512/122 6974s ok 1605 /checksum/SHA512/123 6974s ok 1606 /checksum/SHA512/124 6974s ok 1607 /checksum/SHA512/125 6974s ok 1608 /checksum/SHA512/126 6974s ok 1609 /checksum/SHA512/127 6974s ok 1610 /checksum/SHA512/128 6974s ok 1611 /checksum/SHA512/129 6974s ok 1612 /checksum/SHA512/130 6974s ok 1613 /checksum/SHA512/131 6974s ok 1614 /checksum/SHA512/132 6974s ok 1615 /checksum/SHA512/133 6974s ok 1616 /checksum/SHA512/134 6974s ok 1617 /checksum/SHA512/135 6974s ok 1618 /checksum/SHA512/136 6974s ok 1619 /checksum/SHA512/137 6974s ok 1620 /checksum/SHA512/138 6974s ok 1621 /checksum/SHA512/139 6974s ok 1622 /checksum/SHA512/140 6974s ok 1623 /checksum/SHA512/141 6974s ok 1624 /checksum/SHA512/142 6975s ok 1625 /checksum/SHA512/143 6975s ok 1626 /checksum/SHA512/144 6975s ok 1627 /checksum/SHA512/145 6975s ok 1628 /checksum/SHA512/146 6975s ok 1629 /checksum/SHA512/147 6975s ok 1630 /checksum/SHA512/148 6975s ok 1631 /checksum/SHA512/149 6975s ok 1632 /checksum/SHA512/150 6975s ok 1633 /checksum/SHA512/151 6975s ok 1634 /checksum/SHA512/152 6975s ok 1635 /checksum/SHA512/153 6975s ok 1636 /checksum/SHA512/154 6975s ok 1637 /checksum/SHA512/155 6975s ok 1638 /checksum/SHA512/156 6975s ok 1639 /checksum/SHA512/157 6975s ok 1640 /checksum/SHA512/158 6975s ok 1641 /checksum/SHA512/159 6975s ok 1642 /checksum/SHA512/160 6975s ok 1643 /checksum/SHA512/161 6975s ok 1644 /checksum/SHA512/162 6975s ok 1645 /checksum/SHA512/163 6975s ok 1646 /checksum/SHA512/164 6975s ok 1647 /checksum/SHA512/165 6975s ok 1648 /checksum/SHA512/166 6975s ok 1649 /checksum/SHA512/167 6975s ok 1650 /checksum/SHA512/168 6975s ok 1651 /checksum/SHA512/169 6975s ok 1652 /checksum/SHA512/170 6975s ok 1653 /checksum/SHA512/171 6975s ok 1654 /checksum/SHA512/172 6975s ok 1655 /checksum/SHA512/173 6975s ok 1656 /checksum/SHA512/174 6975s ok 1657 /checksum/SHA512/175 6975s ok 1658 /checksum/SHA512/176 6975s ok 1659 /checksum/SHA512/177 6975s ok 1660 /checksum/SHA512/178 6975s ok 1661 /checksum/SHA512/179 6975s ok 1662 /checksum/SHA512/180 6975s ok 1663 /checksum/SHA512/181 6975s ok 1664 /checksum/SHA512/182 6975s ok 1665 /checksum/SHA512/183 6975s ok 1666 /checksum/SHA512/string 6975s ok 1667 /checksum/SHA512/bytes 6975s # Start of reset tests 6975s ok 1668 /checksum/SHA512/reset/0 6975s ok 1669 /checksum/SHA512/reset/1 6975s ok 1670 /checksum/SHA512/reset/2 6975s ok 1671 /checksum/SHA512/reset/3 6975s ok 1672 /checksum/SHA512/reset/4 6975s ok 1673 /checksum/SHA512/reset/5 6975s ok 1674 /checksum/SHA512/reset/6 6975s ok 1675 /checksum/SHA512/reset/7 6975s ok 1676 /checksum/SHA512/reset/8 6975s ok 1677 /checksum/SHA512/reset/9 6975s ok 1678 /checksum/SHA512/reset/10 6975s ok 1679 /checksum/SHA512/reset/11 6975s ok 1680 /checksum/SHA512/reset/12 6975s ok 1681 /checksum/SHA512/reset/13 6975s ok 1682 /checksum/SHA512/reset/14 6975s ok 1683 /checksum/SHA512/reset/15 6975s ok 1684 /checksum/SHA512/reset/16 6975s ok 1685 /checksum/SHA512/reset/17 6975s ok 1686 /checksum/SHA512/reset/18 6975s ok 1687 /checksum/SHA512/reset/19 6975s ok 1688 /checksum/SHA512/reset/20 6975s ok 1689 /checksum/SHA512/reset/21 6975s ok 1690 /checksum/SHA512/reset/22 6975s ok 1691 /checksum/SHA512/reset/23 6975s ok 1692 /checksum/SHA512/reset/24 6975s ok 1693 /checksum/SHA512/reset/25 6975s ok 1694 /checksum/SHA512/reset/26 6975s ok 1695 /checksum/SHA512/reset/27 6975s ok 1696 /checksum/SHA512/reset/28 6975s ok 1697 /checksum/SHA512/reset/29 6975s ok 1698 /checksum/SHA512/reset/30 6975s ok 1699 /checksum/SHA512/reset/31 6975s ok 1700 /checksum/SHA512/reset/32 6975s ok 1701 /checksum/SHA512/reset/33 6975s ok 1702 /checksum/SHA512/reset/34 6975s ok 1703 /checksum/SHA512/reset/35 6975s ok 1704 /checksum/SHA512/reset/36 6975s ok 1705 /checksum/SHA512/reset/37 6975s ok 1706 /checksum/SHA512/reset/38 6975s ok 1707 /checksum/SHA512/reset/39 6975s ok 1708 /checksum/SHA512/reset/40 6975s ok 1709 /checksum/SHA512/reset/41 6975s ok 1710 /checksum/SHA512/reset/42 6975s ok 1711 /checksum/SHA512/reset/43 6975s ok 1712 /checksum/SHA512/reset/44 6975s ok 1713 /checksum/SHA512/reset/45 6975s ok 1714 /checksum/SHA512/reset/46 6975s ok 1715 /checksum/SHA512/reset/47 6975s ok 1716 /checksum/SHA512/reset/48 6975s ok 1717 /checksum/SHA512/reset/49 6975s ok 1718 /checksum/SHA512/reset/50 6975s ok 1719 /checksum/SHA512/reset/51 6975s ok 1720 /checksum/SHA512/reset/52 6975s ok 1721 /checksum/SHA512/reset/53 6975s ok 1722 /checksum/SHA512/reset/54 6975s ok 1723 /checksum/SHA512/reset/55 6975s ok 1724 /checksum/SHA512/reset/56 6975s ok 1725 /checksum/SHA512/reset/57 6975s ok 1726 /checksum/SHA512/reset/58 6975s ok 1727 /checksum/SHA512/reset/59 6975s ok 1728 /checksum/SHA512/reset/60 6975s ok 1729 /checksum/SHA512/reset/61 6975s ok 1730 /checksum/SHA512/reset/62 6975s ok 1731 /checksum/SHA512/reset/63 6975s ok 1732 /checksum/SHA512/reset/64 6975s ok 1733 /checksum/SHA512/reset/65 6975s ok 1734 /checksum/SHA512/reset/66 6975s ok 1735 /checksum/SHA512/reset/67 6975s ok 1736 /checksum/SHA512/reset/68 6975s ok 1737 /checksum/SHA512/reset/69 6975s ok 1738 /checksum/SHA512/reset/70 6975s ok 1739 /checksum/SHA512/reset/71 6975s ok 1740 /checksum/SHA512/reset/72 6975s ok 1741 /checksum/SHA512/reset/73 6975s ok 1742 /checksum/SHA512/reset/74 6975s ok 1743 /checksum/SHA512/reset/75 6975s ok 1744 /checksum/SHA512/reset/76 6975s ok 1745 /checksum/SHA512/reset/77 6975s ok 1746 /checksum/SHA512/reset/78 6975s ok 1747 /checksum/SHA512/reset/79 6975s ok 1748 /checksum/SHA512/reset/80 6975s ok 1749 /checksum/SHA512/reset/81 6975s ok 1750 /checksum/SHA512/reset/82 6975s ok 1751 /checksum/SHA512/reset/83 6975s ok 1752 /checksum/SHA512/reset/84 6975s ok 1753 /checksum/SHA512/reset/85 6975s ok 1754 /checksum/SHA512/reset/86 6975s ok 1755 /checksum/SHA512/reset/87 6975s ok 1756 /checksum/SHA512/reset/88 6975s ok 1757 /checksum/SHA512/reset/89 6975s ok 1758 /checksum/SHA512/reset/90 6975s ok 1759 /checksum/SHA512/reset/91 6975s ok 1760 /checksum/SHA512/reset/92 6975s ok 1761 /checksum/SHA512/reset/93 6975s ok 1762 /checksum/SHA512/reset/94 6975s ok 1763 /checksum/SHA512/reset/95 6975s ok 1764 /checksum/SHA512/reset/96 6975s ok 1765 /checksum/SHA512/reset/97 6975s ok 1766 /checksum/SHA512/reset/98 6975s ok 1767 /checksum/SHA512/reset/99 6975s ok 1768 /checksum/SHA512/reset/100 6975s ok 1769 /checksum/SHA512/reset/101 6975s ok 1770 /checksum/SHA512/reset/102 6975s ok 1771 /checksum/SHA512/reset/103 6975s ok 1772 /checksum/SHA512/reset/104 6975s ok 1773 /checksum/SHA512/reset/105 6975s ok 1774 /checksum/SHA512/reset/106 6975s ok 1775 /checksum/SHA512/reset/107 6975s ok 1776 /checksum/SHA512/reset/108 6975s ok 1777 /checksum/SHA512/reset/109 6975s ok 1778 /checksum/SHA512/reset/110 6975s ok 1779 /checksum/SHA512/reset/111 6975s ok 1780 /checksum/SHA512/reset/112 6975s ok 1781 /checksum/SHA512/reset/113 6975s ok 1782 /checksum/SHA512/reset/114 6975s ok 1783 /checksum/SHA512/reset/115 6975s ok 1784 /checksum/SHA512/reset/116 6975s ok 1785 /checksum/SHA512/reset/117 6975s ok 1786 /checksum/SHA512/reset/118 6975s ok 1787 /checksum/SHA512/reset/119 6975s ok 1788 /checksum/SHA512/reset/120 6975s ok 1789 /checksum/SHA512/reset/121 6975s ok 1790 /checksum/SHA512/reset/122 6975s ok 1791 /checksum/SHA512/reset/123 6975s ok 1792 /checksum/SHA512/reset/124 6975s ok 1793 /checksum/SHA512/reset/125 6975s ok 1794 /checksum/SHA512/reset/126 6975s ok 1795 /checksum/SHA512/reset/127 6975s ok 1796 /checksum/SHA512/reset/128 6975s ok 1797 /checksum/SHA512/reset/129 6975s ok 1798 /checksum/SHA512/reset/130 6975s ok 1799 /checksum/SHA512/reset/131 6975s ok 1800 /checksum/SHA512/reset/132 6975s ok 1801 /checksum/SHA512/reset/133 6975s ok 1802 /checksum/SHA512/reset/134 6975s ok 1803 /checksum/SHA512/reset/135 6975s ok 1804 /checksum/SHA512/reset/136 6975s ok 1805 /checksum/SHA512/reset/137 6975s ok 1806 /checksum/SHA512/reset/138 6975s ok 1807 /checksum/SHA512/reset/139 6975s ok 1808 /checksum/SHA512/reset/140 6975s ok 1809 /checksum/SHA512/reset/141 6975s ok 1810 /checksum/SHA512/reset/142 6975s ok 1811 /checksum/SHA512/reset/143 6975s ok 1812 /checksum/SHA512/reset/144 6975s ok 1813 /checksum/SHA512/reset/145 6975s ok 1814 /checksum/SHA512/reset/146 6975s ok 1815 /checksum/SHA512/reset/147 6975s ok 1816 /checksum/SHA512/reset/148 6975s ok 1817 /checksum/SHA512/reset/149 6975s ok 1818 /checksum/SHA512/reset/150 6975s ok 1819 /checksum/SHA512/reset/151 6975s ok 1820 /checksum/SHA512/reset/152 6975s ok 1821 /checksum/SHA512/reset/153 6975s ok 1822 /checksum/SHA512/reset/154 6975s ok 1823 /checksum/SHA512/reset/155 6975s ok 1824 /checksum/SHA512/reset/156 6975s ok 1825 /checksum/SHA512/reset/157 6975s ok 1826 /checksum/SHA512/reset/158 6975s ok 1827 /checksum/SHA512/reset/159 6975s ok 1828 /checksum/SHA512/reset/160 6975s ok 1829 /checksum/SHA512/reset/161 6975s ok 1830 /checksum/SHA512/reset/162 6975s ok 1831 /checksum/SHA512/reset/163 6975s ok 1832 /checksum/SHA512/reset/164 6975s ok 1833 /checksum/SHA512/reset/165 6975s ok 1834 /checksum/SHA512/reset/166 6975s ok 1835 /checksum/SHA512/reset/167 6975s ok 1836 /checksum/SHA512/reset/168 6975s ok 1837 /checksum/SHA512/reset/169 6975s ok 1838 /checksum/SHA512/reset/170 6975s ok 1839 /checksum/SHA512/reset/171 6975s ok 1840 /checksum/SHA512/reset/172 6975s ok 1841 /checksum/SHA512/reset/173 6975s ok 1842 /checksum/SHA512/reset/174 6975s ok 1843 /checksum/SHA512/reset/175 6975s ok 1844 /checksum/SHA512/reset/176 6975s ok 1845 /checksum/SHA512/reset/177 6975s ok 1846 /checksum/SHA512/reset/178 6975s ok 1847 /checksum/SHA512/reset/179 6975s ok 1848 /checksum/SHA512/reset/180 6975s ok 1849 /checksum/SHA512/reset/181 6975s ok 1850 /checksum/SHA512/reset/182 6975s ok 1851 /checksum/SHA512/reset/183 6975s # End of reset tests 6975s # End of SHA512 tests 6975s # End of checksum tests 6975s ok - glib/checksum.test 6975s # Running test: glib/utf8-validate.test 6975s TAP version 14 6975s # random seed: R02S55e8756935473d498e305a69558cb4fc 6975s 1..238 6975s # Start of utf8 tests 6975s # Vector 0 6975s # Vector 1 6975s # Vector 2 6975s # Vector 3 6975s # Vector 4 6975s # Vector 5 6975s # Vector 6 6975s # Vector 7 6975s # Vector 8 6975s # Vector 9 6975s # Vector 10 6975s # Vector 11 6975s # Vector 12 6975s # Vector 13 6975s # Vector 14 6975s # Vector 15 6975s # Vector 16 6975s # Vector 17 6975s # Vector 18 6975s # Vector 19 6975s # Vector 20 6975s # Vector 21 6975s # Vector 22 6975s # Vector 23 6975s # Vector 24 6975s # Vector 25 6975s # Vector 26 6975s # Vector 27 6975s ok 1 /utf8/get-char-validated 6975s # Start of validate tests 6975s ok 2 /utf8/validate/0 6975s ok 3 /utf8/validate/1 6975s ok 4 /utf8/validate/2 6975s ok 5 /utf8/validate/3 6975s ok 6 /utf8/validate/4 6975s ok 7 /utf8/validate/5 6975s ok 8 /utf8/validate/6 6975s ok 9 /utf8/validate/7 6975s ok 10 /utf8/validate/8 6975s ok 11 /utf8/validate/9 6975s ok 12 /utf8/validate/10 6975s ok 13 /utf8/validate/11 6975s ok 14 /utf8/validate/12 6975s ok 15 /utf8/validate/13 6975s ok 16 /utf8/validate/14 6975s ok 17 /utf8/validate/15 6975s ok 18 /utf8/validate/16 6975s ok 19 /utf8/validate/17 6975s ok 20 /utf8/validate/18 6975s ok 21 /utf8/validate/19 6975s ok 22 /utf8/validate/20 6975s ok 23 /utf8/validate/21 6975s ok 24 /utf8/validate/22 6975s ok 25 /utf8/validate/23 6975s ok 26 /utf8/validate/24 6975s ok 27 /utf8/validate/25 6975s ok 28 /utf8/validate/26 6975s ok 29 /utf8/validate/27 6975s ok 30 /utf8/validate/28 6975s ok 31 /utf8/validate/29 6975s ok 32 /utf8/validate/30 6975s ok 33 /utf8/validate/31 6975s ok 34 /utf8/validate/32 6975s ok 35 /utf8/validate/33 6975s ok 36 /utf8/validate/34 6975s ok 37 /utf8/validate/35 6975s ok 38 /utf8/validate/36 6975s ok 39 /utf8/validate/37 6975s ok 40 /utf8/validate/38 6975s ok 41 /utf8/validate/39 6975s ok 42 /utf8/validate/40 6975s ok 43 /utf8/validate/41 6975s ok 44 /utf8/validate/42 6975s ok 45 /utf8/validate/43 6975s ok 46 /utf8/validate/44 6975s ok 47 /utf8/validate/45 6975s ok 48 /utf8/validate/46 6975s ok 49 /utf8/validate/47 6975s ok 50 /utf8/validate/48 6975s ok 51 /utf8/validate/49 6975s ok 52 /utf8/validate/50 6975s ok 53 /utf8/validate/51 6975s ok 54 /utf8/validate/52 6975s ok 55 /utf8/validate/53 6975s ok 56 /utf8/validate/54 6975s ok 57 /utf8/validate/55 6975s ok 58 /utf8/validate/56 6975s ok 59 /utf8/validate/57 6975s ok 60 /utf8/validate/58 6975s ok 61 /utf8/validate/59 6975s ok 62 /utf8/validate/60 6975s ok 63 /utf8/validate/61 6975s ok 64 /utf8/validate/62 6975s ok 65 /utf8/validate/63 6975s ok 66 /utf8/validate/64 6975s ok 67 /utf8/validate/65 6975s ok 68 /utf8/validate/66 6975s ok 69 /utf8/validate/67 6975s ok 70 /utf8/validate/68 6975s ok 71 /utf8/validate/69 6975s ok 72 /utf8/validate/70 6975s ok 73 /utf8/validate/71 6975s ok 74 /utf8/validate/72 6975s ok 75 /utf8/validate/73 6975s ok 76 /utf8/validate/74 6975s ok 77 /utf8/validate/75 6975s ok 78 /utf8/validate/76 6975s ok 79 /utf8/validate/77 6975s ok 80 /utf8/validate/78 6975s ok 81 /utf8/validate/79 6975s ok 82 /utf8/validate/80 6975s ok 83 /utf8/validate/81 6975s ok 84 /utf8/validate/82 6975s ok 85 /utf8/validate/83 6975s ok 86 /utf8/validate/84 6975s ok 87 /utf8/validate/85 6975s ok 88 /utf8/validate/86 6975s ok 89 /utf8/validate/87 6975s ok 90 /utf8/validate/88 6975s ok 91 /utf8/validate/89 6975s ok 92 /utf8/validate/90 6975s ok 93 /utf8/validate/91 6975s ok 94 /utf8/validate/92 6975s ok 95 /utf8/validate/93 6975s ok 96 /utf8/validate/94 6975s ok 97 /utf8/validate/95 6975s ok 98 /utf8/validate/96 6975s ok 99 /utf8/validate/97 6975s ok 100 /utf8/validate/98 6975s ok 101 /utf8/validate/99 6975s ok 102 /utf8/validate/100 6975s ok 103 /utf8/validate/101 6975s ok 104 /utf8/validate/102 6975s ok 105 /utf8/validate/103 6975s ok 106 /utf8/validate/104 6975s ok 107 /utf8/validate/105 6975s ok 108 /utf8/validate/106 6975s ok 109 /utf8/validate/107 6975s ok 110 /utf8/validate/108 6975s ok 111 /utf8/validate/109 6975s ok 112 /utf8/validate/110 6975s ok 113 /utf8/validate/111 6975s ok 114 /utf8/validate/112 6975s ok 115 /utf8/validate/113 6975s ok 116 /utf8/validate/114 6975s ok 117 /utf8/validate/115 6975s ok 118 /utf8/validate/116 6975s ok 119 /utf8/validate/117 6975s ok 120 /utf8/validate/118 6975s ok 121 /utf8/validate/119 6975s ok 122 /utf8/validate/120 6975s ok 123 /utf8/validate/121 6975s ok 124 /utf8/validate/122 6975s ok 125 /utf8/validate/123 6975s ok 126 /utf8/validate/124 6975s ok 127 /utf8/validate/125 6975s ok 128 /utf8/validate/126 6975s ok 129 /utf8/validate/127 6975s ok 130 /utf8/validate/128 6975s ok 131 /utf8/validate/129 6975s ok 132 /utf8/validate/130 6975s ok 133 /utf8/validate/131 6975s ok 134 /utf8/validate/132 6975s ok 135 /utf8/validate/133 6975s ok 136 /utf8/validate/134 6975s ok 137 /utf8/validate/135 6975s ok 138 /utf8/validate/136 6975s ok 139 /utf8/validate/137 6975s ok 140 /utf8/validate/138 6975s ok 141 /utf8/validate/139 6975s ok 142 /utf8/validate/140 6975s ok 143 /utf8/validate/141 6976s ok 144 /utf8/validate/142 6976s ok 145 /utf8/validate/143 6976s ok 146 /utf8/validate/144 6976s ok 147 /utf8/validate/145 6976s ok 148 /utf8/validate/146 6976s ok 149 /utf8/validate/147 6976s ok 150 /utf8/validate/148 6976s ok 151 /utf8/validate/149 6976s ok 152 /utf8/validate/150 6976s ok 153 /utf8/validate/151 6976s ok 154 /utf8/validate/152 6976s ok 155 /utf8/validate/153 6976s ok 156 /utf8/validate/154 6976s ok 157 /utf8/validate/155 6976s ok 158 /utf8/validate/156 6976s ok 159 /utf8/validate/157 6976s ok 160 /utf8/validate/158 6976s ok 161 /utf8/validate/159 6976s ok 162 /utf8/validate/160 6976s ok 163 /utf8/validate/161 6976s ok 164 /utf8/validate/162 6976s ok 165 /utf8/validate/163 6976s ok 166 /utf8/validate/164 6976s ok 167 /utf8/validate/165 6976s ok 168 /utf8/validate/166 6976s ok 169 /utf8/validate/167 6976s ok 170 /utf8/validate/168 6976s ok 171 /utf8/validate/169 6976s ok 172 /utf8/validate/170 6976s ok 173 /utf8/validate/171 6976s ok 174 /utf8/validate/172 6976s ok 175 /utf8/validate/173 6976s ok 176 /utf8/validate/174 6976s ok 177 /utf8/validate/175 6976s ok 178 /utf8/validate/176 6976s ok 179 /utf8/validate/177 6976s ok 180 /utf8/validate/178 6976s ok 181 /utf8/validate/179 6976s ok 182 /utf8/validate/180 6976s ok 183 /utf8/validate/181 6976s ok 184 /utf8/validate/182 6976s ok 185 /utf8/validate/183 6976s ok 186 /utf8/validate/184 6976s ok 187 /utf8/validate/185 6976s ok 188 /utf8/validate/186 6976s ok 189 /utf8/validate/187 6976s ok 190 /utf8/validate/188 6976s ok 191 /utf8/validate/189 6976s ok 192 /utf8/validate/190 6976s ok 193 /utf8/validate/191 6976s ok 194 /utf8/validate/192 6976s ok 195 /utf8/validate/193 6976s ok 196 /utf8/validate/194 6976s ok 197 /utf8/validate/195 6976s ok 198 /utf8/validate/196 6976s ok 199 /utf8/validate/197 6976s ok 200 /utf8/validate/198 6976s ok 201 /utf8/validate/199 6976s ok 202 /utf8/validate/200 6976s ok 203 /utf8/validate/201 6976s ok 204 /utf8/validate/202 6976s ok 205 /utf8/validate/203 6976s ok 206 /utf8/validate/204 6976s ok 207 /utf8/validate/205 6976s ok 208 /utf8/validate/206 6976s ok 209 /utf8/validate/207 6976s ok 210 /utf8/validate/208 6976s ok 211 /utf8/validate/209 6976s ok 212 /utf8/validate/210 6976s ok 213 /utf8/validate/211 6976s ok 214 /utf8/validate/212 6976s ok 215 /utf8/validate/213 6976s ok 216 /utf8/validate/214 6976s ok 217 /utf8/validate/215 6976s ok 218 /utf8/validate/216 6976s ok 219 /utf8/validate/217 6976s ok 220 /utf8/validate/218 6976s ok 221 /utf8/validate/219 6976s ok 222 /utf8/validate/220 6976s ok 223 /utf8/validate/221 6976s ok 224 /utf8/validate/222 6976s ok 225 /utf8/validate/223 6976s ok 226 /utf8/validate/224 6976s ok 227 /utf8/validate/225 6976s ok 228 /utf8/validate/226 6976s ok 229 /utf8/validate/227 6976s ok 230 /utf8/validate/228 6976s ok 231 /utf8/validate/229 6976s ok 232 /utf8/validate/230 6976s ok 233 /utf8/validate/231 6976s ok 234 /utf8/validate/232 6976s ok 235 /utf8/validate/233 6976s ok 236 /utf8/validate/234 6976s ok 237 /utf8/validate/235 6976s ok 238 /utf8/validate/236 6976s # End of validate tests 6976s # End of utf8 tests 6976s ok - glib/utf8-validate.test 6976s # Running test: glib/markup.test 6976s TAP version 14 6976s # random seed: R02S3880ca77994485d3df64bac355766041 6976s 1..1 6976s # Start of markup tests 6976s ok 1 /markup/stack 6976s # End of markup tests 6976s ok - glib/markup.test 6976s # Running test: glib/socket-listener.test 6976s TAP version 14 6976s # random seed: R02S4507acad244f388d43900ffaba581c6c 6976s 1..1 6976s # Start of socket-listener tests 6976s ok 1 /socket-listener/event-signal 6976s # End of socket-listener tests 6976s ok - glib/socket-listener.test 6976s # Running test: glib/list.test 6976s TAP version 14 6976s # random seed: R02S1902d6f28ac1fd6c4d12edf2c570dd77 6976s 1..20 6976s # Start of list tests 6976s ok 1 /list/sort 6976s ok 2 /list/sort-with-data 6976s ok 3 /list/insert-before-link 6976s ok 4 /list/insert-sorted 6976s ok 5 /list/insert-sorted-with-data 6976s ok 6 /list/reverse 6976s ok 7 /list/nth 6976s ok 8 /list/concat 6976s ok 9 /list/remove 6976s ok 10 /list/remove-all 6976s ok 11 /list/first-last 6976s ok 12 /list/insert 6976s ok 13 /list/free-full 6976s ok 14 /list/copy 6976s ok 15 /list/copy-deep 6976s ok 16 /list/delete-link 6976s ok 17 /list/prepend 6976s ok 18 /list/position 6976s ok - glib/list.test 6976s ok 19 /list/double-free 6976s # Start of sort tests 6976s ok 20 /list/sort/stable 6976s # End of sort tests 6976s # End of list tests 6977s # Running test: glib/memory-input-stream.test 6977s TAP version 14 6977s # random seed: R02S498b1cdf7658b7ec891faf0eb624b02e 6977s 1..6 6977s # Start of memory-input-stream tests 6977s ok 1 /memory-input-stream/read-chunks 6977s ok 2 /memory-input-stream/async 6977s ok 3 /memory-input-stream/seek 6977s ok 4 /memory-input-stream/truncate 6977s ok 5 /memory-input-stream/read-bytes 6977s ok 6 /memory-input-stream/from-bytes 6977s # End of memory-input-stream tests 6977s ok - glib/memory-input-stream.test 6977s # Running test: glib/portal-support-flatpak-full.test 6977s TAP version 14 6977s # random seed: R02S36bb5c65a3820c2a1a2d4105e8af0e8d 6977s 1..1 6977s # Start of portal-support tests 6977s # Start of flatpak tests 6977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/home 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/cache 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/system-config2 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/config 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/system-data2 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/data 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/state 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/runtime 6977s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_71RT52/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 6977s ok 1 /portal-support/flatpak/full 6977s # End of flatpak tests 6977s # End of portal-support tests 6977s ok - glib/portal-support-flatpak-full.test 6977s # Running test: glib/function-info.test 6977s TAP version 14 6977s # random seed: R02S013f19aa663535b160393ca5d704c06b 6977s 1..1 6977s # Start of function-info tests 6977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_S66252/function-info/invoker/.dirs/home 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_S66252/function-info/invoker/.dirs/cache 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_S66252/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_S66252/function-info/invoker/.dirs/system-config2 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_S66252/function-info/invoker/.dirs/config 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_S66252/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_S66252/function-info/invoker/.dirs/system-data2 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_S66252/function-info/invoker/.dirs/data 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_S66252/function-info/invoker/.dirs/state 6977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_S66252/function-info/invoker/.dirs/runtime 6977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 6977s # /function-info/invoker summary: Test preparing a function invoker 6977s ok 1 /function-info/invoker 6977s # End of function-info tests 6977s ok - glib/function-info.test 6978s # Running test: glib/gobject-private.test 6978s TAP version 14 6978s # random seed: R02Sdcccf0d5976e8664615b71a22ca01255 6978s 1..3 6978s # Start of private tests 6978s ok 1 /private/instance 6978s ok 2 /private/derived-instance 6978s ok 3 /private/mixed-derived-instance 6978s # End of private tests 6978s ok - glib/gobject-private.test 6978s # Running test: glib/regex.test 6978s TAP version 14 6978s # random seed: R02S9bfd0ac3b74dc27b57153ff86082ecfa 6978s 1..848 6978s # Start of regex tests 6978s ok 1 /regex/properties 6978s ok 2 /regex/class 6978s ok 3 /regex/lookahead 6978s ok 4 /regex/lookbehind 6978s ok 5 /regex/subpattern 6978s # Executing: glib/regex.test 6978s ok 6 /regex/condition 6978s ok 7 /regex/recursion 6978s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 6978s ok 8 /regex/multiline 6978s ok 9 /regex/explicit-crlf 6978s ok 10 /regex/max-lookbehind 6978s ok 11 /regex/compile-errors 6978s ok 12 /regex/jit-unsupported-matching 6978s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 6978s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 6978s ok 13 /regex/unmatched-named-subpattern 6978s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 6978s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 6978s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 6980s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 6983s ok 14 /regex/compiled-regex-after-jit-failure 6983s # slow test /regex/compiled-regex-after-jit-failure executed in 4.35 secs 6983s # Start of new tests 6983s ok 15 /regex/new/1 6983s ok 16 /regex/new/2 6983s ok 17 /regex/new/3 6983s ok 18 /regex/new/4 6983s ok 19 /regex/new/5 6983s ok 20 /regex/new/6 6983s ok 21 /regex/new/7 6983s ok 22 /regex/new/8 6983s ok 23 /regex/new/9 6983s ok 24 /regex/new/10 6983s ok 25 /regex/new/11 6983s ok 26 /regex/new/12 6983s ok 27 /regex/new/13 6983s ok 28 /regex/new/14 6983s ok 29 /regex/new/15 6983s ok 30 /regex/new/16 6983s ok 31 /regex/new/17 6983s ok 32 /regex/new/18 6983s ok 33 /regex/new/19 6983s ok 34 /regex/new/71 6983s ok 35 /regex/new/80 6983s ok 36 /regex/new/82 6983s # End of new tests 6983s # Start of new-check-flags tests 6983s ok 37 /regex/new-check-flags/20 6983s ok 38 /regex/new-check-flags/21 6983s ok 39 /regex/new-check-flags/22 6983s ok 40 /regex/new-check-flags/23 6983s ok 41 /regex/new-check-flags/24 6983s ok 42 /regex/new-check-flags/25 6983s ok 43 /regex/new-check-flags/26 6983s ok 44 /regex/new-check-flags/27 6983s ok 45 /regex/new-check-flags/28 6983s ok 46 /regex/new-check-flags/29 6983s ok 47 /regex/new-check-flags/30 6983s ok 48 /regex/new-check-flags/31 6983s ok 49 /regex/new-check-flags/32 6983s ok 50 /regex/new-check-flags/33 6983s ok 51 /regex/new-check-flags/34 6983s ok 52 /regex/new-check-flags/35 6983s ok 53 /regex/new-check-flags/36 6983s # End of new-check-flags tests 6983s # Start of new-fail tests 6983s ok 54 /regex/new-fail/37 6983s ok 55 /regex/new-fail/38 6983s ok 56 /regex/new-fail/39 6983s ok 57 /regex/new-fail/40 6983s ok 58 /regex/new-fail/41 6983s ok 59 /regex/new-fail/42 6983s ok 60 /regex/new-fail/43 6983s ok 61 /regex/new-fail/44 6983s ok 62 /regex/new-fail/45 6983s ok 63 /regex/new-fail/46 6983s ok 64 /regex/new-fail/47 6983s ok 65 /regex/new-fail/48 6983s ok 66 /regex/new-fail/49 6983s ok 67 /regex/new-fail/50 6983s ok 68 /regex/new-fail/51 6983s ok 69 /regex/new-fail/52 6983s ok 70 /regex/new-fail/53 6983s ok 71 /regex/new-fail/54 6983s ok 72 /regex/new-fail/55 6983s ok 73 /regex/new-fail/56 6983s ok 74 /regex/new-fail/57 6983s ok 75 /regex/new-fail/58 6983s ok 76 /regex/new-fail/59 6983s ok 77 /regex/new-fail/60 6983s ok 78 /regex/new-fail/61 6983s ok 79 /regex/new-fail/62 6983s ok 80 /regex/new-fail/63 6983s ok 81 /regex/new-fail/64 6983s ok 82 /regex/new-fail/65 6983s ok 83 /regex/new-fail/66 6983s ok 84 /regex/new-fail/67 6983s ok 85 /regex/new-fail/68 6983s ok 86 /regex/new-fail/69 6983s ok 87 /regex/new-fail/70 6983s ok 88 /regex/new-fail/72 6983s ok 89 /regex/new-fail/73 6983s ok 90 /regex/new-fail/74 6983s ok 91 /regex/new-fail/75 6983s ok 92 /regex/new-fail/76 6983s ok 93 /regex/new-fail/77 6983s ok 94 /regex/new-fail/78 6983s ok 95 /regex/new-fail/79 6983s ok 96 /regex/new-fail/81 6983s ok 97 /regex/new-fail/83 6983s ok 98 /regex/new-fail/84 6983s ok 99 /regex/new-fail/85 6983s ok 100 /regex/new-fail/86 6983s ok 101 /regex/new-fail/87 6983s ok 102 /regex/new-fail/88 6983s ok 103 /regex/new-fail/89 6983s ok 104 /regex/new-fail/90 6983s ok 105 /regex/new-fail/91 6983s # End of new-fail tests 6983s # Start of match-simple tests 6983s ok 106 /regex/match-simple/92 6983s ok 107 /regex/match-simple/93 6983s ok 108 /regex/match-simple/94 6983s ok 109 /regex/match-simple/95 6983s ok 110 /regex/match-simple/96 6983s ok 111 /regex/match-simple/97 6983s ok 112 /regex/match-simple/98 6983s ok 113 /regex/match-simple/99 6983s ok 114 /regex/match-simple/100 6983s ok 115 /regex/match-simple/101 6983s ok 116 /regex/match-simple/102 6983s ok 117 /regex/match-simple/103 6983s ok 118 /regex/match-simple/104 6983s ok 119 /regex/match-simple/105 6983s ok 120 /regex/match-simple/106 6983s ok 121 /regex/match-simple/107 6983s ok 122 /regex/match-simple/108 6983s ok 123 /regex/match-simple/109 6983s ok 124 /regex/match-simple/110 6983s ok 125 /regex/match-simple/111 6983s ok 126 /regex/match-simple/112 6983s ok 127 /regex/match-simple/113 6983s ok 128 /regex/match-simple/114 6983s ok 129 /regex/match-simple/115 6983s ok 130 /regex/match-simple/116 6983s ok 131 /regex/match-simple/117 6983s ok 132 /regex/match-simple/118 6983s ok 133 /regex/match-simple/119 6983s ok 134 /regex/match-simple/120 6983s ok 135 /regex/match-simple/121 6983s ok 136 /regex/match-simple/122 6983s ok 137 /regex/match-simple/123 6983s ok 138 /regex/match-simple/124 6983s ok 139 /regex/match-simple/125 6983s ok 140 /regex/match-simple/126 6983s ok 141 /regex/match-simple/127 6983s ok 142 /regex/match-simple/128 6983s ok 143 /regex/match-simple/129 6983s ok 144 /regex/match-simple/130 6983s ok 145 /regex/match-simple/131 6983s ok 146 /regex/match-simple/132 6983s ok 147 /regex/match-simple/133 6983s ok 148 /regex/match-simple/134 6983s ok 149 /regex/match-simple/135 6983s ok 150 /regex/match-simple/136 6983s ok 151 /regex/match-simple/137 6983s ok 152 /regex/match-simple/138 6983s ok 153 /regex/match-simple/139 6983s ok 154 /regex/match-simple/140 6983s ok 155 /regex/match-simple/141 6983s ok 156 /regex/match-simple/142 6983s ok 157 /regex/match-simple/143 6983s ok 158 /regex/match-simple/144 6983s ok 159 /regex/match-simple/145 6983s ok 160 /regex/match-simple/146 6983s ok 161 /regex/match-simple/147 6983s ok 162 /regex/match-simple/148 6983s ok 163 /regex/match-simple/149 6983s ok 164 /regex/match-simple/150 6983s ok 165 /regex/match-simple/151 6983s ok 166 /regex/match-simple/152 6983s ok 167 /regex/match-simple/153 6983s ok 168 /regex/match-simple/154 6983s ok 169 /regex/match-simple/155 6983s ok 170 /regex/match-simple/156 6983s ok 171 /regex/match-simple/157 6983s ok 172 /regex/match-simple/158 6983s ok 173 /regex/match-simple/159 6983s ok 174 /regex/match-simple/160 6983s ok 175 /regex/match-simple/161 6983s ok 176 /regex/match-simple/162 6983s ok 177 /regex/match-simple/163 6983s # Executing: glib/regex.test 6985s ok 178 /regex/match-simple/164 6985s # slow test /regex/match-simple/164 executed in 2.02 secs 6985s # End of match-simple tests 6985s # Start of match-simple-optimized tests 6985s ok 179 /regex/match-simple-optimized/92 6985s ok 180 /regex/match-simple-optimized/93 6985s ok 181 /regex/match-simple-optimized/94 6985s ok 182 /regex/match-simple-optimized/95 6985s ok 183 /regex/match-simple-optimized/96 6985s ok 184 /regex/match-simple-optimized/97 6985s ok 185 /regex/match-simple-optimized/98 6985s ok 186 /regex/match-simple-optimized/99 6985s ok 187 /regex/match-simple-optimized/100 6985s ok 188 /regex/match-simple-optimized/101 6985s ok 189 /regex/match-simple-optimized/102 6985s ok 190 /regex/match-simple-optimized/103 6985s ok 191 /regex/match-simple-optimized/104 6985s ok 192 /regex/match-simple-optimized/105 6985s ok 193 /regex/match-simple-optimized/106 6985s ok 194 /regex/match-simple-optimized/107 6985s ok 195 /regex/match-simple-optimized/108 6985s ok 196 /regex/match-simple-optimized/109 6985s ok 197 /regex/match-simple-optimized/110 6985s ok 198 /regex/match-simple-optimized/111 6985s ok 199 /regex/match-simple-optimized/112 6985s ok 200 /regex/match-simple-optimized/113 6985s ok 201 /regex/match-simple-optimized/114 6985s ok 202 /regex/match-simple-optimized/115 6985s ok 203 /regex/match-simple-optimized/116 6985s ok 204 /regex/match-simple-optimized/117 6985s ok 205 /regex/match-simple-optimized/118 6985s ok 206 /regex/match-simple-optimized/119 6985s ok 207 /regex/match-simple-optimized/120 6985s ok 208 /regex/match-simple-optimized/121 6985s ok 209 /regex/match-simple-optimized/122 6985s ok 210 /regex/match-simple-optimized/123 6985s ok 211 /regex/match-simple-optimized/124 6985s ok 212 /regex/match-simple-optimized/125 6985s ok 213 /regex/match-simple-optimized/126 6985s ok 214 /regex/match-simple-optimized/127 6985s ok 215 /regex/match-simple-optimized/128 6985s ok 216 /regex/match-simple-optimized/129 6985s ok 217 /regex/match-simple-optimized/130 6985s ok 218 /regex/match-simple-optimized/131 6985s ok 219 /regex/match-simple-optimized/132 6985s ok 220 /regex/match-simple-optimized/133 6985s ok 221 /regex/match-simple-optimized/134 6985s ok 222 /regex/match-simple-optimized/135 6985s ok 223 /regex/match-simple-optimized/136 6985s ok 224 /regex/match-simple-optimized/137 6985s ok 225 /regex/match-simple-optimized/138 6985s ok 226 /regex/match-simple-optimized/139 6985s ok 227 /regex/match-simple-optimized/140 6985s ok 228 /regex/match-simple-optimized/141 6985s ok 229 /regex/match-simple-optimized/142 6985s ok 230 /regex/match-simple-optimized/143 6985s ok 231 /regex/match-simple-optimized/144 6985s ok 232 /regex/match-simple-optimized/145 6985s ok 233 /regex/match-simple-optimized/146 6985s ok 234 /regex/match-simple-optimized/147 6985s ok 235 /regex/match-simple-optimized/148 6985s ok 236 /regex/match-simple-optimized/149 6985s ok 237 /regex/match-simple-optimized/150 6985s ok 238 /regex/match-simple-optimized/151 6985s ok 239 /regex/match-simple-optimized/152 6985s ok 240 /regex/match-simple-optimized/153 6985s ok 241 /regex/match-simple-optimized/154 6985s ok 242 /regex/match-simple-optimized/155 6985s ok 243 /regex/match-simple-optimized/156 6985s ok 244 /regex/match-simple-optimized/157 6985s ok 245 /regex/match-simple-optimized/158 6985s ok 246 /regex/match-simple-optimized/159 6985s ok 247 /regex/match-simple-optimized/160 6985s ok 248 /regex/match-simple-optimized/161 6985s ok 249 /regex/match-simple-optimized/162 6985s ok 250 /regex/match-simple-optimized/163 6985s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 6987s ok 251 /regex/match-simple-optimized/164 6987s # slow test /regex/match-simple-optimized/164 executed in 1.79 secs 6987s # End of match-simple-optimized tests 6987s # Start of match tests 6987s ok 252 /regex/match/165 6987s ok 253 /regex/match/166 6987s ok 254 /regex/match/167 6987s ok 255 /regex/match/168 6987s ok 256 /regex/match/169 6987s ok 257 /regex/match/170 6987s ok 258 /regex/match/171 6987s ok 259 /regex/match/172 6987s ok 260 /regex/match/173 6987s ok 261 /regex/match/174 6987s ok 262 /regex/match/175 6987s ok 263 /regex/match/176 6987s ok 264 /regex/match/177 6987s ok 265 /regex/match/178 6987s ok 266 /regex/match/179 6987s ok 267 /regex/match/180 6987s ok 268 /regex/match/181 6987s ok 269 /regex/match/182 6987s ok 270 /regex/match/183 6987s ok 271 /regex/match/184 6987s ok 272 /regex/match/185 6987s ok 273 /regex/match/186 6987s ok 274 /regex/match/187 6987s ok 275 /regex/match/188 6987s ok 276 /regex/match/189 6987s ok 277 /regex/match/190 6987s ok 278 /regex/match/191 6987s ok 279 /regex/match/192 6987s ok 280 /regex/match/193 6987s ok 281 /regex/match/194 6987s ok 282 /regex/match/195 6987s ok 283 /regex/match/196 6987s ok 284 /regex/match/197 6987s ok 285 /regex/match/198 6987s ok 286 /regex/match/199 6987s ok 287 /regex/match/200 6987s ok 288 /regex/match/201 6987s ok 289 /regex/match/202 6987s ok 290 /regex/match/203 6987s ok 291 /regex/match/204 6987s ok 292 /regex/match/205 6987s ok 293 /regex/match/206 6987s ok 294 /regex/match/207 6987s ok 295 /regex/match/208 6987s ok 296 /regex/match/209 6987s ok 297 /regex/match/210 6987s ok 298 /regex/match/211 6987s ok 299 /regex/match/212 6987s ok 300 /regex/match/213 6987s ok 301 /regex/match/214 6987s ok 302 /regex/match/215 6987s ok 303 /regex/match/216 6987s ok 304 /regex/match/217 6987s ok 305 /regex/match/218 6987s ok 306 /regex/match/219 6987s ok 307 /regex/match/220 6987s ok 308 /regex/match/221 6987s ok 309 /regex/match/222 6987s ok 310 /regex/match/223 6987s ok 311 /regex/match/224 6987s ok 312 /regex/match/225 6987s ok 313 /regex/match/226 6987s ok 314 /regex/match/227 6987s ok 315 /regex/match/228 6987s ok 316 /regex/match/229 6987s ok 317 /regex/match/230 6987s ok 318 /regex/match/231 6987s ok 319 /regex/match/232 6987s ok 320 /regex/match/233 6987s ok 321 /regex/match/234 6987s ok 322 /regex/match/235 6987s ok 323 /regex/match/236 6987s ok 324 /regex/match/237 6987s ok 325 /regex/match/238 6987s ok 326 /regex/match/239 6987s ok 327 /regex/match/240 6987s ok 328 /regex/match/241 6987s ok 329 /regex/match/242 6987s ok 330 /regex/match/243 6987s ok 331 /regex/match/244 6987s ok 332 /regex/match/245 6987s ok 333 /regex/match/246 6987s ok 334 /regex/match/partial281 6987s ok 335 /regex/match/partial282 6987s ok 336 /regex/match/partial283 6987s ok 337 /regex/match/partial284 6987s ok 338 /regex/match/partial285 6987s ok 339 /regex/match/partial286 6987s ok 340 /regex/match/partial287 6987s ok 341 /regex/match/partial288 6987s ok 342 /regex/match/partial289 6987s ok 343 /regex/match/partial290 6987s ok 344 /regex/match/partial291 6987s ok 345 /regex/match/partial292 6987s ok 346 /regex/match/partial293 6987s ok 347 /regex/match/partial294 6987s ok 348 /regex/match/partial295 6987s ok 349 /regex/match/partial296 6987s ok 350 /regex/match/partial297 6987s ok 351 /regex/match/partial298 6987s ok 352 /regex/match/partial299 6987s ok 353 /regex/match/partial300 6987s ok 354 /regex/match/partial301 6987s ok 355 /regex/match/partial302 6987s # Start of next0 tests 6987s ok 356 /regex/match/next0/247 6987s ok 357 /regex/match/next0/248 6987s ok 358 /regex/match/next0/249 6987s ok 359 /regex/match/next0/250 6987s # End of next0 tests 6987s # Start of next1 tests 6987s ok 360 /regex/match/next1/251 6987s ok 361 /regex/match/next1/252 6987s ok 362 /regex/match/next1/253 6987s ok 363 /regex/match/next1/254 6987s ok 364 /regex/match/next1/255 6987s # End of next1 tests 6987s # Start of next2 tests 6987s ok 365 /regex/match/next2/256 6987s ok 366 /regex/match/next2/257 6987s ok 367 /regex/match/next2/258 6987s ok 368 /regex/match/next2/259 6987s ok 369 /regex/match/next2/260 6987s ok 370 /regex/match/next2/261 6987s ok 371 /regex/match/next2/262 6987s ok 372 /regex/match/next2/263 6987s # End of next2 tests 6987s # Start of next3 tests 6987s ok 373 /regex/match/next3/264 6987s ok 374 /regex/match/next3/265 6987s ok 375 /regex/match/next3/266 6987s ok 376 /regex/match/next3/267 6987s ok 377 /regex/match/next3/268 6987s ok 378 /regex/match/next3/269 6987s # End of next3 tests 6987s # Start of next4 tests 6987s ok 379 /regex/match/next4/270 6987s # End of next4 tests 6987s # Start of count tests 6987s ok 380 /regex/match/count/271 6987s ok 381 /regex/match/count/272 6987s ok 382 /regex/match/count/273 6987s ok 383 /regex/match/count/274 6987s ok 384 /regex/match/count/275 6987s ok 385 /regex/match/count/276 6987s ok 386 /regex/match/count/277 6987s ok 387 /regex/match/count/278 6987s ok 388 /regex/match/count/279 6987s ok 389 /regex/match/count/280 6987s # End of count tests 6987s # Start of count-optimized tests 6987s ok 390 /regex/match/count-optimized/271 6987s ok 391 /regex/match/count-optimized/272 6987s ok 392 /regex/match/count-optimized/273 6987s ok 393 /regex/match/count-optimized/274 6987s ok 394 /regex/match/count-optimized/275 6987s ok 395 /regex/match/count-optimized/276 6987s ok 396 /regex/match/count-optimized/277 6987s ok 397 /regex/match/count-optimized/278 6987s ok 398 /regex/match/count-optimized/279 6987s ok 399 /regex/match/count-optimized/280 6987s # End of count-optimized tests 6987s # Start of partial-optimized tests 6987s ok 400 /regex/match/partial-optimized/281 6987s ok 401 /regex/match/partial-optimized/282 6987s ok 402 /regex/match/partial-optimized/283 6987s ok 403 /regex/match/partial-optimized/284 6987s ok 404 /regex/match/partial-optimized/285 6987s ok 405 /regex/match/partial-optimized/286 6987s ok 406 /regex/match/partial-optimized/287 6987s ok 407 /regex/match/partial-optimized/288 6987s ok 408 /regex/match/partial-optimized/289 6987s ok 409 /regex/match/partial-optimized/290 6987s ok 410 /regex/match/partial-optimized/291 6987s ok 411 /regex/match/partial-optimized/292 6987s ok 412 /regex/match/partial-optimized/293 6987s ok 413 /regex/match/partial-optimized/294 6987s ok 414 /regex/match/partial-optimized/295 6987s ok 415 /regex/match/partial-optimized/296 6987s ok 416 /regex/match/partial-optimized/297 6987s ok 417 /regex/match/partial-optimized/298 6987s ok 418 /regex/match/partial-optimized/299 6987s ok 419 /regex/match/partial-optimized/300 6987s ok 420 /regex/match/partial-optimized/301 6987s ok 421 /regex/match/partial-optimized/302 6987s # End of partial-optimized tests 6987s # Start of subpattern tests 6987s ok 422 /regex/match/subpattern/303 6987s ok 423 /regex/match/subpattern/304 6987s ok 424 /regex/match/subpattern/305 6987s ok 425 /regex/match/subpattern/306 6987s ok 426 /regex/match/subpattern/307 6987s ok 427 /regex/match/subpattern/308 6987s ok 428 /regex/match/subpattern/309 6987s ok 429 /regex/match/subpattern/310 6987s ok 430 /regex/match/subpattern/311 6987s ok 431 /regex/match/subpattern/312 6987s ok 432 /regex/match/subpattern/313 6987s ok 433 /regex/match/subpattern/314 6987s ok 434 /regex/match/subpattern/315 6987s # Start of named tests 6987s # Start of dupnames tests 6987s ok 435 /regex/match/subpattern/named/dupnames/325 6987s ok 436 /regex/match/subpattern/named/dupnames/326 6987s ok 437 /regex/match/subpattern/named/dupnames/327 6987s ok 438 /regex/match/subpattern/named/dupnames/328 6987s ok 439 /regex/match/subpattern/named/dupnames/329 6987s # End of dupnames tests 6987s # End of named tests 6987s # End of subpattern tests 6987s # Start of subpattern-optimized tests 6987s ok 440 /regex/match/subpattern-optimized/303 6987s ok 441 /regex/match/subpattern-optimized/304 6987s ok 442 /regex/match/subpattern-optimized/305 6987s ok 443 /regex/match/subpattern-optimized/306 6987s ok 444 /regex/match/subpattern-optimized/307 6987s ok 445 /regex/match/subpattern-optimized/308 6987s ok 446 /regex/match/subpattern-optimized/309 6987s ok 447 /regex/match/subpattern-optimized/310 6987s ok 448 /regex/match/subpattern-optimized/311 6987s ok 449 /regex/match/subpattern-optimized/312 6987s ok 450 /regex/match/subpattern-optimized/313 6987s ok 451 /regex/match/subpattern-optimized/314 6987s ok 452 /regex/match/subpattern-optimized/315 6987s # End of subpattern-optimized tests 6987s # Start of named tests 6987s # Start of subpattern tests 6987s ok 453 /regex/match/named/subpattern/316 6987s ok 454 /regex/match/named/subpattern/317 6987s ok 455 /regex/match/named/subpattern/318 6987s ok 456 /regex/match/named/subpattern/319 6987s ok 457 /regex/match/named/subpattern/320 6987s ok 458 /regex/match/named/subpattern/321 6987s ok 459 /regex/match/named/subpattern/322 6987s ok 460 /regex/match/named/subpattern/323 6987s ok 461 /regex/match/named/subpattern/324 6987s ok 462 /regex/match/named/subpattern/330 6987s ok 463 /regex/match/named/subpattern/331 6987s ok 464 /regex/match/named/subpattern/332 6987s ok 465 /regex/match/named/subpattern/333 6987s ok 466 /regex/match/named/subpattern/334 6987s # End of subpattern tests 6987s # End of named tests 6987s # End of match tests 6987s # Start of match-optimized tests 6987s ok 467 /regex/match-optimized/165 6987s ok 468 /regex/match-optimized/166 6987s ok 469 /regex/match-optimized/167 6987s ok 470 /regex/match-optimized/168 6987s ok 471 /regex/match-optimized/169 6987s ok 472 /regex/match-optimized/170 6987s ok 473 /regex/match-optimized/171 6987s ok 474 /regex/match-optimized/172 6987s ok 475 /regex/match-optimized/173 6987s ok 476 /regex/match-optimized/174 6987s ok 477 /regex/match-optimized/175 6987s ok 478 /regex/match-optimized/176 6987s ok 479 /regex/match-optimized/177 6987s ok 480 /regex/match-optimized/178 6987s ok 481 /regex/match-optimized/179 6987s ok 482 /regex/match-optimized/180 6987s ok 483 /regex/match-optimized/181 6987s ok 484 /regex/match-optimized/182 6987s ok 485 /regex/match-optimized/183 6987s ok 486 /regex/match-optimized/184 6987s ok 487 /regex/match-optimized/185 6987s ok 488 /regex/match-optimized/186 6987s ok 489 /regex/match-optimized/187 6987s ok 490 /regex/match-optimized/188 6987s ok 491 /regex/match-optimized/189 6987s ok 492 /regex/match-optimized/190 6987s ok 493 /regex/match-optimized/191 6987s ok 494 /regex/match-optimized/192 6987s ok 495 /regex/match-optimized/193 6987s ok 496 /regex/match-optimized/194 6987s ok 497 /regex/match-optimized/195 6987s ok 498 /regex/match-optimized/196 6987s ok 499 /regex/match-optimized/197 6987s ok 500 /regex/match-optimized/198 6987s ok 501 /regex/match-optimized/199 6987s ok 502 /regex/match-optimized/200 6987s ok 503 /regex/match-optimized/201 6987s ok 504 /regex/match-optimized/202 6987s ok 505 /regex/match-optimized/203 6987s ok 506 /regex/match-optimized/204 6987s ok 507 /regex/match-optimized/205 6987s ok 508 /regex/match-optimized/206 6987s ok 509 /regex/match-optimized/207 6987s ok 510 /regex/match-optimized/208 6987s ok 511 /regex/match-optimized/209 6987s ok 512 /regex/match-optimized/210 6987s ok 513 /regex/match-optimized/211 6987s ok 514 /regex/match-optimized/212 6987s ok 515 /regex/match-optimized/213 6987s ok 516 /regex/match-optimized/214 6987s ok 517 /regex/match-optimized/215 6987s ok 518 /regex/match-optimized/216 6987s ok 519 /regex/match-optimized/217 6987s ok 520 /regex/match-optimized/218 6987s ok 521 /regex/match-optimized/219 6987s ok 522 /regex/match-optimized/220 6987s ok 523 /regex/match-optimized/221 6987s ok 524 /regex/match-optimized/222 6987s ok 525 /regex/match-optimized/223 6987s ok 526 /regex/match-optimized/224 6987s ok 527 /regex/match-optimized/225 6987s ok 528 /regex/match-optimized/226 6987s ok 529 /regex/match-optimized/227 6987s ok 530 /regex/match-optimized/228 6987s ok 531 /regex/match-optimized/229 6987s ok 532 /regex/match-optimized/230 6987s ok 533 /regex/match-optimized/231 6987s ok 534 /regex/match-optimized/232 6987s ok 535 /regex/match-optimized/233 6987s ok 536 /regex/match-optimized/234 6987s ok 537 /regex/match-optimized/235 6987s ok 538 /regex/match-optimized/236 6987s ok 539 /regex/match-optimized/237 6987s ok 540 /regex/match-optimized/238 6987s ok 541 /regex/match-optimized/239 6987s ok 542 /regex/match-optimized/240 6987s ok 543 /regex/match-optimized/241 6987s ok 544 /regex/match-optimized/242 6987s ok 545 /regex/match-optimized/243 6987s ok 546 /regex/match-optimized/244 6987s ok 547 /regex/match-optimized/245 6987s ok 548 /regex/match-optimized/246 6987s # End of match-optimized tests 6987s # Start of fetch-all0 tests 6987s ok 549 /regex/fetch-all0/335 6987s ok 550 /regex/fetch-all0/336 6987s # End of fetch-all0 tests 6987s # Start of fetch-all1 tests 6987s ok 551 /regex/fetch-all1/337 6987s ok 552 /regex/fetch-all1/338 6987s ok 553 /regex/fetch-all1/339 6987s # End of fetch-all1 tests 6987s # Start of fetch-all2 tests 6987s ok 554 /regex/fetch-all2/340 6987s ok 555 /regex/fetch-all2/341 6987s ok 556 /regex/fetch-all2/342 6987s # End of fetch-all2 tests 6987s # Start of fetch-all3 tests 6987s ok 557 /regex/fetch-all3/343 6987s ok 558 /regex/fetch-all3/344 6987s ok 559 /regex/fetch-all3/345 6987s ok 560 /regex/fetch-all3/346 6987s ok 561 /regex/fetch-all3/347 6987s # End of fetch-all3 tests 6987s # Start of split tests 6987s # Start of simple0 tests 6987s ok 562 /regex/split/simple0/348 6987s ok 563 /regex/split/simple0/349 6987s ok 564 /regex/split/simple0/364 6987s ok 565 /regex/split/simple0/365 6987s # End of simple0 tests 6987s # Start of simple1 tests 6987s ok 566 /regex/split/simple1/350 6987s ok 567 /regex/split/simple1/351 6987s # End of simple1 tests 6987s # Start of simple2 tests 6987s ok 568 /regex/split/simple2/352 6987s ok 569 /regex/split/simple2/358 6987s ok 570 /regex/split/simple2/360 6987s # End of simple2 tests 6987s # Start of simple3 tests 6987s ok 571 /regex/split/simple3/353 6987s ok 572 /regex/split/simple3/354 6987s ok 573 /regex/split/simple3/355 6987s ok 574 /regex/split/simple3/356 6987s ok 575 /regex/split/simple3/357 6987s ok 576 /regex/split/simple3/359 6987s ok 577 /regex/split/simple3/361 6987s ok 578 /regex/split/simple3/362 6987s ok 579 /regex/split/simple3/363 6987s # End of simple3 tests 6987s # End of split tests 6987s # Start of split0 tests 6987s ok 580 /regex/split0/366 6987s ok 581 /regex/split0/368 6987s # End of split0 tests 6987s # Start of full-split0 tests 6987s ok 582 /regex/full-split0/367 6987s ok 583 /regex/full-split0/369 6987s ok 584 /regex/full-split0/370 6987s ok 585 /regex/full-split0/371 6987s ok 586 /regex/full-split0/372 6987s # End of full-split0 tests 6987s # Start of split1 tests 6987s ok 587 /regex/split1/373 6987s ok 588 /regex/split1/376 6987s # End of split1 tests 6987s # Start of full-split1 tests 6987s ok 589 /regex/full-split1/374 6987s ok 590 /regex/full-split1/375 6987s ok 591 /regex/full-split1/377 6987s ok 592 /regex/full-split1/378 6987s ok 593 /regex/full-split1/404 6987s # End of full-split1 tests 6987s # Start of split2 tests 6987s ok 594 /regex/split2/379 6987s ok 595 /regex/split2/383 6987s ok 596 /regex/split2/395 6987s # End of split2 tests 6987s # Start of full-split2 tests 6987s ok 597 /regex/full-split2/380 6987s ok 598 /regex/full-split2/381 6987s ok 599 /regex/full-split2/382 6987s ok 600 /regex/full-split2/384 6987s ok 601 /regex/full-split2/396 6987s ok 602 /regex/full-split2/399 6987s ok 603 /regex/full-split2/405 6987s # End of full-split2 tests 6987s # Start of split3 tests 6987s ok 604 /regex/split3/385 6987s ok 605 /regex/split3/387 6987s ok 606 /regex/split3/389 6987s ok 607 /regex/split3/391 6987s ok 608 /regex/split3/393 6987s ok 609 /regex/split3/397 6987s ok 610 /regex/split3/400 6987s ok 611 /regex/split3/402 6987s # End of split3 tests 6987s # Start of full-split3 tests 6987s ok 612 /regex/full-split3/386 6987s ok 613 /regex/full-split3/388 6987s ok 614 /regex/full-split3/390 6987s ok 615 /regex/full-split3/392 6987s ok 616 /regex/full-split3/394 6987s ok 617 /regex/full-split3/398 6987s ok 618 /regex/full-split3/401 6987s ok 619 /regex/full-split3/403 6987s ok 620 /regex/full-split3/406 6987s ok 621 /regex/full-split3/407 6987s # End of full-split3 tests 6987s # Start of check-repacement tests 6987s ok 622 /regex/check-repacement/408 6987s ok 623 /regex/check-repacement/409 6987s ok 624 /regex/check-repacement/410 6987s ok 625 /regex/check-repacement/411 6987s ok 626 /regex/check-repacement/412 6987s ok 627 /regex/check-repacement/413 6987s ok 628 /regex/check-repacement/414 6987s ok 629 /regex/check-repacement/415 6987s # End of check-repacement tests 6987s # Start of expand tests 6987s ok 630 /regex/expand/416 6987s ok 631 /regex/expand/417 6987s ok 632 /regex/expand/418 6987s ok 633 /regex/expand/419 6987s ok 634 /regex/expand/420 6987s ok 635 /regex/expand/421 6987s ok 636 /regex/expand/422 6987s ok 637 /regex/expand/423 6987s ok 638 /regex/expand/424 6987s ok 639 /regex/expand/425 6987s ok 640 /regex/expand/426 6987s ok 641 /regex/expand/427 6987s ok 642 /regex/expand/428 6987s ok 643 /regex/expand/429 6987s ok 644 /regex/expand/430 6987s ok 645 /regex/expand/431 6987s ok 646 /regex/expand/432 6987s ok 647 /regex/expand/433 6987s ok 648 /regex/expand/434 6987s ok 649 /regex/expand/435 6987s ok 650 /regex/expand/436 6987s ok 651 /regex/expand/437 6987s ok 652 /regex/expand/438 6987s ok 653 /regex/expand/439 6987s ok 654 /regex/expand/440 6987s ok 655 /regex/expand/441 6987s ok 656 /regex/expand/442 6987s ok 657 /regex/expand/443 6987s ok 658 /regex/expand/444 6987s ok 659 /regex/expand/445 6987s ok 660 /regex/expand/446 6987s ok 661 /regex/expand/447 6987s ok 662 /regex/expand/448 6987s ok 663 /regex/expand/449 6987s ok 664 /regex/expand/450 6987s ok 665 /regex/expand/451 6987s ok 666 /regex/expand/452 6987s ok 667 /regex/expand/453 6987s ok 668 /regex/expand/454 6987s ok 669 /regex/expand/455 6987s ok 670 /regex/expand/456 6987s ok 671 /regex/expand/457 6987s ok 672 /regex/expand/458 6987s ok 673 /regex/expand/459 6987s ok 674 /regex/expand/460 6987s ok 675 /regex/expand/461 6987s ok 676 /regex/expand/462 6987s ok 677 /regex/expand/463 6987s ok 678 /regex/expand/464 6987s ok 679 /regex/expand/465 6987s ok 680 /regex/expand/466 6987s ok 681 /regex/expand/467 6987s ok 682 /regex/expand/468 6987s ok 683 /regex/expand/469 6987s ok 684 /regex/expand/470 6987s ok 685 /regex/expand/471 6987s ok 686 /regex/expand/472 6987s ok 687 /regex/expand/473 6987s ok 688 /regex/expand/474 6987s ok 689 /regex/expand/475 6987s ok 690 /regex/expand/476 6987s ok 691 /regex/expand/477 6987s ok 692 /regex/expand/478 6987s ok 693 /regex/expand/479 6987s ok 694 /regex/expand/480 6987s ok 695 /regex/expand/481 6987s # End of expand tests 6987s # Start of replace tests 6987s ok 696 /regex/replace/482 6987s ok 697 /regex/replace/483 6987s ok 698 /regex/replace/484 6987s ok 699 /regex/replace/485 6987s ok 700 /regex/replace/486 6987s ok 701 /regex/replace/487 6987s ok 702 /regex/replace/488 6987s ok 703 /regex/replace/489 6987s ok 704 /regex/replace/490 6987s ok 705 /regex/replace/491 6987s ok 706 /regex/replace/492 6987s ok 707 /regex/replace/493 6987s ok 708 /regex/replace/494 6987s ok 709 /regex/replace/495 6987s ok 710 /regex/replace/496 6987s ok 711 /regex/replace/497 6987s ok 712 /regex/replace/498 6987s ok 713 /regex/replace/499 6987s ok 714 /regex/replace/500 6987s ok 715 /regex/replace/501 6987s ok 716 /regex/replace/502 6987s ok 717 /regex/replace/503 6987s ok 718 /regex/replace/504 6987s ok 719 /regex/replace/505 6987s ok 720 /regex/replace/506 6987s ok 721 /regex/replace/507 6987s ok 722 /regex/replace/508 6987s ok 723 /regex/replace/509 6987s # End of replace tests 6987s # Start of replace-optimized tests 6987s ok 724 /regex/replace-optimized/482 6987s ok 725 /regex/replace-optimized/483 6987s ok 726 /regex/replace-optimized/484 6987s ok 727 /regex/replace-optimized/485 6987s ok 728 /regex/replace-optimized/486 6987s ok 729 /regex/replace-optimized/487 6987s ok 730 /regex/replace-optimized/488 6987s ok 731 /regex/replace-optimized/489 6987s ok 732 /regex/replace-optimized/490 6987s ok 733 /regex/replace-optimized/491 6987s ok 734 /regex/replace-optimized/492 6987s ok 735 /regex/replace-optimized/493 6987s ok 736 /regex/replace-optimized/494 6987s ok 737 /regex/replace-optimized/495 6987s ok 738 /regex/replace-optimized/496 6987s ok 739 /regex/replace-optimized/497 6987s ok 740 /regex/replace-optimized/498 6987s ok 741 /regex/replace-optimized/499 6987s ok 742 /regex/replace-optimized/500 6987s ok 743 /regex/replace-optimized/501 6987s ok 744 /regex/replace-optimized/502 6987s ok 745 /regex/replace-optimized/503 6987s ok 746 /regex/replace-optimized/504 6987s ok 747 /regex/replace-optimized/505 6987s ok 748 /regex/replace-optimized/506 6987s ok 749 /regex/replace-optimized/507 6987s ok 750 /regex/replace-optimized/508 6987s ok 751 /regex/replace-optimized/509 6987s # End of replace-optimized tests 6987s # Start of replace-literally tests 6987s ok 752 /regex/replace-literally/510 6987s ok 753 /regex/replace-literally/511 6987s ok 754 /regex/replace-literally/512 6987s ok 755 /regex/replace-literally/513 6987s ok 756 /regex/replace-literally/514 6987s ok 757 /regex/replace-literally/515 6987s ok 758 /regex/replace-literally/516 6987s ok 759 /regex/replace-literally/517 6987s ok 760 /regex/replace-literally/518 6987s ok 761 /regex/replace-literally/519 6987s ok 762 /regex/replace-literally/520 6987s ok 763 /regex/replace-literally/521 6987s ok 764 /regex/replace-literally/522 6987s ok 765 /regex/replace-literally/523 6987s ok 766 /regex/replace-literally/524 6987s ok 767 /regex/replace-literally/525 6987s ok 768 /regex/replace-literally/526 6987s ok 769 /regex/replace-literally/527 6987s ok 770 /regex/replace-literally/528 6987s ok 771 /regex/replace-literally/529 6987s # End of replace-literally tests 6987s # Start of string-number tests 6987s ok 772 /regex/string-number/530 6987s ok 773 /regex/string-number/531 6987s ok 774 /regex/string-number/532 6987s ok 775 /regex/string-number/533 6987s ok 776 /regex/string-number/534 6987s ok 777 /regex/string-number/535 6987s ok 778 /regex/string-number/536 6987s ok 779 /regex/string-number/537 6987s ok 780 /regex/string-number/538 6987s ok 781 /regex/string-number/539 6987s ok 782 /regex/string-number/540 6987s ok 783 /regex/string-number/541 6987s ok 784 /regex/string-number/542 6987s ok 785 /regex/string-number/543 6987s ok 786 /regex/string-number/544 6987s # End of string-number tests 6987s # Start of escape_nul tests 6987s ok 787 /regex/escape_nul/545 6987s ok 788 /regex/escape_nul/546 6987s ok 789 /regex/escape_nul/547 6987s ok 790 /regex/escape_nul/548 6987s ok 791 /regex/escape_nul/549 6987s ok 792 /regex/escape_nul/550 6987s ok 793 /regex/escape_nul/551 6987s ok 794 /regex/escape_nul/552 6987s ok 795 /regex/escape_nul/553 6987s ok 796 /regex/escape_nul/554 6987s ok 797 /regex/escape_nul/555 6987s ok 798 /regex/escape_nul/556 6987s ok 799 /regex/escape_nul/557 6987s ok 800 /regex/escape_nul/558 6987s ok 801 /regex/escape_nul/559 6987s # End of escape_nul tests 6987s # Start of escape tests 6987s ok 802 /regex/escape/560 6987s ok 803 /regex/escape/561 6987s ok 804 /regex/escape/562 6987s ok 805 /regex/escape/563 6987s ok 806 /regex/escape/564 6987s ok 807 /regex/escape/565 6987s ok 808 /regex/escape/566 6987s ok 809 /regex/escape/567 6987s ok 810 /regex/escape/568 6987s ok 811 /regex/escape/569 6987s ok 812 /regex/escape/570 6987s ok 813 /regex/escape/571 6987s ok 814 /regex/escape/572 6987s ok 815 /regex/escape/573 6987s ok 816 /regex/escape/574 6987s ok 817 /regex/escape/575 6987s ok 818 /regex/escape/576 6987s ok 819 /regex/escape/577 6987s # End of escape tests 6987s # Start of match-all0 tests 6987s ok 820 /regex/match-all0/578 6987s ok 821 /regex/match-all0/580 6987s # End of match-all0 tests 6987s # Start of match-all-full0 tests 6987s ok 822 /regex/match-all-full0/579 6987s ok 823 /regex/match-all-full0/581 6987s ok 824 /regex/match-all-full0/582 6987s ok 825 /regex/match-all-full0/583 6987s # End of match-all-full0 tests 6987s # Start of match-all1 tests 6987s ok 826 /regex/match-all1/584 6987s ok 827 /regex/match-all1/586 6987s ok 828 /regex/match-all1/591 6987s # End of match-all1 tests 6987s # Start of match-all-full1 tests 6987s ok 829 /regex/match-all-full1/585 6987s ok 830 /regex/match-all-full1/587 6987s ok 831 /regex/match-all-full1/588 6987s ok 832 /regex/match-all-full1/589 6987s ok 833 /regex/match-all-full1/590 6987s ok 834 /regex/match-all-full1/592 6987s # End of match-all-full1 tests 6987s # Start of match-all2 tests 6987s ok 835 /regex/match-all2/593 6987s ok 836 /regex/match-all2/595 6987s ok 837 /regex/match-all2/597 6987s # End of match-all2 tests 6987s # Start of match-all-full2 tests 6987s ok 838 /regex/match-all-full2/594 6987s ok 839 /regex/match-all-full2/596 6987s ok 840 /regex/match-all-full2/598 6987s # End of match-all-full2 tests 6987s # Start of match-all3 tests 6987s ok 841 /regex/match-all3/599 6987s ok 842 /regex/match-all3/601 6987s # End of match-all3 tests 6987s # Start of match-all-full3 tests 6987s ok 843 /regex/match-all-full3/600 6987s ok 844 /regex/match-all-full3/602 6987s # End of match-all-full3 tests 6987s # Start of match-notempty tests 6987s ok 845 /regex/match-notempty/603 6987s # End of match-notempty tests 6987s # Start of match-notempty-optimized tests 6987s ok 846 /regex/match-notempty-optimized/603 6987s # End of match-notempty-optimized tests 6987s # Start of match-notempty-atstart tests 6987s ok 847 /regex/match-notempty-atstart/604 6987s # End of match-notempty-atstart tests 6987s # Start of match-notempty-atstart-optimized tests 6987s ok 848 /regex/match-notempty-atstart-optimized/604 6987s # End of match-notempty-atstart-optimized tests 6987s # End of regex tests 6987s ok - glib/regex.test 6988s # Running test: glib/object-info.test 6988s TAP version 14 6988s # random seed: R02S8fd149f26808f3bc295b8f2f1b4596fb 6988s 1..2 6988s # Start of object-info tests 6988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/home 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/cache 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/system-config2 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/config 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/system-data2 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/data 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/state 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_DIU052/object-info/find-method-using-interfaces/.dirs/runtime 6988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 6988s ok 1 /object-info/find-method-using-interfaces 6988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/home 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/cache 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/system-config2 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/config 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/system-data2 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/data 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/state 6988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_DIU052/object-info/find-vfunc-using-interfaces/.dirs/runtime 6988s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 6988s ok 2 /object-info/find-vfunc-using-interfaces 6988s # End of object-info tests 6988s ok - glib/object-info.test 6988s # Running test: glib/deftype.test 6988s ok - glib/deftype.test 6988s # Running test: glib/refcount-macro.test 6988s # Executing: glib/refcount-macro.test 6988s TAP version 14 6988s # random seed: R02Scba7d82ee2465783e673707fb1a3a176 6988s 1..4 6988s # Start of refcount tests 6988s ok 1 /refcount/grefcount 6988s ok 2 /refcount/gatomicrefcount 6988s # Start of grefcount tests 6988s ok 3 /refcount/grefcount/saturation 6988s # End of grefcount tests 6988s # Start of gatomicrefcount tests 6988s ok 4 /refcount/gatomicrefcount/saturation 6988s # End of gatomicrefcount tests 6988s # End of refcount tests 6988s ok - glib/refcount-macro.test 6989s # Running test: glib/gdbus-addresses.test 6989s TAP version 14 6989s # random seed: R02S0323659452b968d1c4c5742bb7dda4d7 6989s 1..9 6989s # Start of gdbus tests 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/empty-address/.dirs/runtime 6989s ok 1 /gdbus/empty-address 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/unsupported-address/.dirs/runtime 6989s ok 2 /gdbus/unsupported-address 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/address-parsing/.dirs/runtime 6989s ok 3 /gdbus/address-parsing 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/unix-address/.dirs/runtime 6989s ok 4 /gdbus/unix-address 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/nonce-tcp-address/.dirs/runtime 6989s ok 5 /gdbus/nonce-tcp-address 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/tcp-address/.dirs/runtime 6989s ok 6 /gdbus/tcp-address 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/autolaunch-address/.dirs/runtime 6989s ok 7 /gdbus/autolaunch-address 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/mixed-address/.dirs/runtime 6989s ok 8 /gdbus/mixed-address 6989s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/home 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/cache 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/system-config2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/config 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/system-data2 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/data 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/state 6989s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EF6052/gdbus/escape-address/.dirs/runtime 6989s ok 9 /gdbus/escape-address 6989s # End of gdbus tests 6989s ok - glib/gdbus-addresses.test 6989s # Running test: glib/cxx-11.test 6989s TAP version 14 6989s # random seed: R02S64c400f04fb6f3054e5e60c41dbe5f4f 6989s 1..2 6989s # Start of gtask tests 6989s # 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. 6989s ok 1 /gtask/name 6989s # Start of name tests 6989s # 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. 6989s ok 2 /gtask/name/macro-wrapper 6989s # End of name tests 6989s # End of gtask tests 6989s ok - glib/cxx-11.test 6989s # Running test: glib/mimeapps.test 6990s TAP version 14 6990s # random seed: R02S7d78b1053b77a5dca93aea7556444ee7 6990s 1..7 6990s # Start of appinfo tests 6990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/home 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/cache 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/system-config2 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/config 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/system-data2 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/state 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/runtime 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/system-data1/applications' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/myapp.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/myapp2.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/myapp3.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/myapp4.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/myapp5.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 6990s # removing '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/mimeapps.list' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/all/.dirs/data/applications/mimeinfo.cache' 6990s ok 1 /appinfo/all 6990s # Start of mime tests 6990s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/home 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/cache 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/system-config2 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/system-data2 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/state 6990s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/runtime 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/system-data1/applications' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 6990s # removing '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 6990s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 6990s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6990s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_TJC752/appinfo/all/.dirs/config to /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6990s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6990s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6990s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6991s ok - glib/mimeapps.test 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config 6991s ok 2 /appinfo/mime/api 6991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/home 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/cache 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/system-config2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/config 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/system-data2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/state 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/runtime 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/system-data1/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 6991s # removing '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/config 6991s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_TJC752/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/config 6991s ok 3 /appinfo/mime/default 6991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/home 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/cache 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/system-config2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/system-data2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/state 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/runtime 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/system-data1/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 6991s # removing '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_TJC752/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config 6991s ok 4 /appinfo/mime/file 6991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/home 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/cache 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/system-config2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/config 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/system-data2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/state 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/runtime 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 6991s # removing '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 6991s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_TJC752/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/config 6991s ok 5 /appinfo/mime/scheme-handler 6991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/home 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/cache 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/system-config2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/system-data2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/state 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/runtime 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/system-data1/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 6991s # removing '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_TJC752/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config 6991s ok 6 /appinfo/mime/default-last-used 6991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/home 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/cache 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/system-config2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/config 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/system-data2 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/state 6991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/runtime 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 6991s # removing '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 6991s # creating '/tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 6991s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_TJC752/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_TJC752/appinfo/mime/ignore-nonexisting/.dirs/config 6991s ok 7 /appinfo/mime/ignore-nonexisting 6991s # End of mime tests 6991s # End of appinfo tests 6991s # Running test: glib/memchunk.test 6991s TAP version 14 6991s # random seed: R02S5c59501683d1587f4798340f466750e6 6991s 1..1 6991s # Start of memchunk tests 6991s ok 1 /memchunk/basic 6991s # End of memchunk tests 6991s ok - glib/memchunk.test 6991s # Running test: glib/onceinit.test 6991s TAP version 14 6991s # random seed: R02Sc6547123b624943cca0f77e9c36a0d1e 6991s 1..1 6991s # Start of thread tests 6992s ok 1 /thread/onceinit 6992s # End of thread tests 6992s ok - glib/onceinit.test 6992s # Running test: glib/unix.test 6992s TAP version 14 6992s # random seed: R02S7ad5d43a489e8c01a8a9de245b08f0ba 6992s 1..20 6992s # Start of glib-unix tests 6992s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 6992s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 6992s ok 1 /glib-unix/closefrom 6992s ok 2 /glib-unix/pipe 6992s # /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 6992s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 6992s ok 3 /glib-unix/pipe-stdio-overwrite 6992s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 6992s ok 4 /glib-unix/pipe-struct 6992s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 6992s ok 5 /glib-unix/pipe-struct-auto 6992s ok 6 /glib-unix/error 6992s ok 7 /glib-unix/nonblocking 6993s ok 8 /glib-unix/sighup 6993s # slow test /glib-unix/sighup executed in 0.52 secs 6993s # Executing: glib/unix.test 6993s ok 9 /glib-unix/sigterm 6993s # slow test /glib-unix/sigterm executed in 0.51 secs 6994s ok 10 /glib-unix/sighup_again 6994s # slow test /glib-unix/sighup_again executed in 0.51 secs 6994s ok 11 /glib-unix/sighup_add_remove 6994s ok 12 /glib-unix/sighup_nested 6996s ok 13 /glib-unix/callback_after_signal 6996s # slow test /glib-unix/callback_after_signal executed in 2.01 secs 6996s ok 14 /glib-unix/child-wait 6996s # Start of closefrom tests 6996s # Start of subprocess tests 6996s # End of subprocess tests 6996s # End of closefrom tests 6996s # Start of pipe tests 6996s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 6996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 6996s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 6996s ok 15 /glib-unix/pipe/fd-cloexec 6996s # End of pipe tests 6996s # Start of sighup tests 6997s ok 16 /glib-unix/sighup/alternate-stack 6997s # slow test /glib-unix/sighup/alternate-stack executed in 1.02 secs 6997s # End of sighup tests 6997s # Start of sigterm tests 6998s ok 17 /glib-unix/sigterm/alternate-stack 6998s # slow test /glib-unix/sigterm/alternate-stack executed in 1.01 secs 6998s # End of sigterm tests 6998s # Start of sighup_again tests 6998s # Executing: glib/unix.test 6999s ok 18 /glib-unix/sighup_again/alternate-stack 6999s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.01 secs 6999s # End of sighup_again tests 6999s # Start of get-passwd-entry tests 6999s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 6999s ok 19 /glib-unix/get-passwd-entry/root 6999s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 6999s ok 20 /glib-unix/get-passwd-entry/nonexistent 6999s # End of get-passwd-entry tests 6999s # End of glib-unix tests 6999s ok - glib/unix.test 6999s # Running test: glib/slice.test 6999s TAP version 14 6999s # random seed: R02S4e68a1c59176400e1955bf4b88b0a707 6999s 1..3 6999s # Start of slice tests 7000s ok 1 /slice/copy 7000s ok 2 /slice/chain 7003s # Executing: glib/slice.test 7006s ok 3 /slice/allocate 7006s # slow test /slice/allocate executed in 6.35 secs 7006s # End of slice tests 7006s ok - glib/slice.test 7006s # Running test: glib/module-test-plugin.test 7006s TAP version 14 7006s # random seed: R02Sb6c0448d9e54e0135390499008dd2fbd 7006s 1..3 7006s # Start of module tests 7006s ok 1 /module/basics 7006s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 7006s ok 2 /module/invalid-libtool-archive 7006s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 7007s ok 3 /module/local-binding 7007s # End of module tests 7007s ok - glib/module-test-plugin.test 7007s # Running test: glib/gdbus-close-pending.test 7007s TAP version 14 7007s # random seed: R02S87a4d86f52d99f796aaa647119bf3015 7007s 1..2 7007s # Start of gdbus tests 7007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/home 7007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/cache 7007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/system-config2 7007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/config 7007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/system-data2 7007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/data 7007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/state 7007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/close-pending/.dirs/runtime 7008s # Executing: glib/gdbus-close-pending.test 7009s ok 1 /gdbus/close-pending 7009s # slow test /gdbus/close-pending executed in 2.00 secs 7009s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/home 7009s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/cache 7009s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/system-config2 7009s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/config 7009s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/system-data2 7009s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/data 7009s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/state 7009s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_0ESZ52/gdbus/unref-pending/.dirs/runtime 7010s ok 2 /gdbus/unref-pending 7010s # slow test /gdbus/unref-pending executed in 1.47 secs 7010s # End of gdbus tests 7010s ok - glib/gdbus-close-pending.test 7010s # Running test: glib/task.test 7011s TAP version 14 7011s # random seed: R02Sf5af8a117248f2ceb2a022914f9cb317 7011s 1..36 7011s # Start of gtask tests 7011s ok 1 /gtask/basic 7011s ok 2 /gtask/error 7011s ok 3 /gtask/error-literal 7011s ok 4 /gtask/error-literal-from-variable 7011s ok 5 /gtask/return-from-same-iteration 7011s ok 6 /gtask/return-from-toplevel 7011s ok 7 /gtask/return-from-anon-thread 7011s ok 8 /gtask/return-from-wrong-thread 7011s ok 9 /gtask/no-callback 7011s ok 10 /gtask/report-error 7011s ok 11 /gtask/priority 7011s ok 12 /gtask/name 7011s ok 13 /gtask/static-name 7011s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 7011s ok 14 /gtask/asynchronous-cancellation 7011s ok 15 /gtask/check-cancellable 7011s ok 16 /gtask/return-if-cancelled 7011s ok 17 /gtask/run-in-thread 7011s ok 18 /gtask/run-in-thread-sync 7011s ok 19 /gtask/run-in-thread-priority 7011s ok 20 /gtask/run-in-thread-nested 7012s ok 21 /gtask/run-in-thread-overflow 7012s # slow test /gtask/run-in-thread-overflow executed in 0.72 secs 7012s ok 22 /gtask/return-on-cancel 7012s # GLib-GIO-DEBUG: GTask 0x5559bae45640 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 7012s # GLib-GIO-DEBUG: GTask 0x5559bae45410 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 7012s # GLib-GIO-DEBUG: GTask 0x5559bae44eb0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 7012s # GLib-GIO-DEBUG: GTask 0x5559bae45090 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 7012s ok 23 /gtask/return-on-cancel-sync 7012s ok 24 /gtask/return-on-cancel-atomic 7012s ok 25 /gtask/return-pointer 7012s ok 26 /gtask/return-value 7012s ok 27 /gtask/return-prefixed-error 7012s ok 28 /gtask/object-keepalive 7012s ok 29 /gtask/legacy-error 7012s ok 30 /gtask/finalize-without-return 7012s # Start of name tests 7012s ok 31 /gtask/name/macro-wrapper 7012s # End of name tests 7012s # Start of return tests 7012s ok 32 /gtask/return/error-first 7013s ok 33 /gtask/return/value-first 7013s # Start of in-idle tests 7013s ok 34 /gtask/return/in-idle/error-first 7013s ok 35 /gtask/return/in-idle/value-first 7013s # End of in-idle tests 7013s # End of return tests 7013s # Start of attach-source tests 7013s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source?s name if unset 7013s ok 36 /gtask/attach-source/set-name 7013s # End of attach-source tests 7013s # End of gtask tests 7013s ok - glib/task.test 7013s # Running test: glib/sequence.test 7013s # Executing: glib/sequence.test 7013s TAP version 14 7013s # random seed: R02S7fb1911dfd5bbcc5007eac42ed95561b 7013s 1..16 7013s # Start of sequence tests 7013s ok 1 /sequence/out-of-range-jump 7013s ok 2 /sequence/iter-move 7016s ok 3 /sequence/insert-sorted-non-pointer 7016s # slow test /sequence/insert-sorted-non-pointer executed in 2.67 secs 7016s ok 4 /sequence/stable-sort 7016s ok 5 /sequence/is_empty 7016s # Start of random tests 7018s # Executing: glib/sequence.test 7023s # Executing: glib/sequence.test 7025s ok 6 /sequence/random/seed:825541564 7025s # slow test /sequence/random/seed:825541564 executed in 9.12 secs 7028s # Executing: glib/sequence.test 7033s # Executing: glib/sequence.test 7035s ok 7 /sequence/random/seed:801678400 7035s # slow test /sequence/random/seed:801678400 executed in 9.88 secs 7038s # Executing: glib/sequence.test 7043s # Executing: glib/sequence.test 7045s ok 8 /sequence/random/seed:1477639090 7045s # slow test /sequence/random/seed:1477639090 executed in 9.75 secs 7048s # Executing: glib/sequence.test 7053s # Executing: glib/sequence.test 7054s ok 9 /sequence/random/seed:3369132895 7054s # slow test /sequence/random/seed:3369132895 executed in 8.81 secs 7058s # Executing: glib/sequence.test 7063s # Executing: glib/sequence.test 7064s ok 10 /sequence/random/seed:1192944867 7064s # slow test /sequence/random/seed:1192944867 executed in 10.48 secs 7068s # Executing: glib/sequence.test 7073s # Executing: glib/sequence.test 7077s ok 11 /sequence/random/seed:770458294 7077s # slow test /sequence/random/seed:770458294 executed in 12.47 secs 7078s # Executing: glib/sequence.test 7083s # Executing: glib/sequence.test 7087s ok 12 /sequence/random/seed:1099575817 7087s # slow test /sequence/random/seed:1099575817 executed in 10.30 secs 7088s # Executing: glib/sequence.test 7093s # Executing: glib/sequence.test 7098s ok 13 /sequence/random/seed:590523467 7098s # slow test /sequence/random/seed:590523467 executed in 10.68 secs 7098s # Executing: glib/sequence.test 7103s # Executing: glib/sequence.test 7108s ok 14 /sequence/random/seed:3583571454 7108s # slow test /sequence/random/seed:3583571454 executed in 10.08 secs 7108s # Executing: glib/sequence.test 7113s # Executing: glib/sequence.test 7118s ok 15 /sequence/random/seed:579241222 7118s # slow test /sequence/random/seed:579241222 executed in 9.86 secs 7118s # Executing: glib/sequence.test 7124s # Executing: glib/sequence.test 7128s # Executing: glib/sequence.test 7129s ok 16 /sequence/random/seed:99668018 7129s # slow test /sequence/random/seed:99668018 executed in 11.07 secs 7129s # End of random tests 7129s # End of sequence tests 7129s ok - glib/sequence.test 7129s # Running test: glib/cancellable.test 7129s TAP version 14 7129s # random seed: R02Sd6843907c74f7c49385d1b11b5970b4d 7129s 1..18 7129s # Start of cancellable tests 7129s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 7129s ok 2 /cancellable/null 7129s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 7129s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 7129s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 7129s ok 4 /cancellable/connect-to-disposing-callback 7129s ok 5 /cancellable/connect-cancelled-data-is-destroyed 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 1 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 0 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 1 7129s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 7129s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 7129s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 7129s ok 7 /cancellable/connect-cancelled-to-disposing-callback 7129s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 1 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 0 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 1 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 0 7129s # Toggle reference callback for GCancellable (0x556000981cd0), last: 1 7129s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 7129s # /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 7130s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 7130s # /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 7130s ok 11 /cancellable/resets-on-cancel-callback-hangs 7130s ok 12 /cancellable/poll-fd 7130s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 7130s ok 13 /cancellable/poll-fd-cancelled 7130s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 7130s ok 14 /cancellable/poll-fd-cancelled-threaded 7130s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 7130s ok 15 /cancellable/cancel-reset-races 7130s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 7130s ok 16 /cancellable/cancel-reset-connect-races 7130s # End of cancellable tests 7130s # Start of cancellable-source tests 7130s # /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) 7130s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 7133s # Executing: glib/cancellable.test 7138s # Executing: glib/cancellable.test 7141s ok 17 /cancellable-source/threaded-dispose 7141s # slow test /cancellable-source/threaded-dispose executed in 11.17 secs 7141s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 7141s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 7141s ok 18 /cancellable-source/can-be-fired-multiple-times 7141s # End of cancellable-source tests 7141s ok - glib/cancellable.test 7142s # Running test: glib/file.test 7142s TAP version 14 7142s # random seed: R02Sae1a66b6ca6c2c03a66359a92fee512e 7142s 1..55 7142s # Start of file tests 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/basic/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/basic/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/basic/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/basic/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/basic/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/basic/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/basic/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/basic/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/basic/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/basic/.dirs/runtime 7142s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 7142s ok 1 /file/basic 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/build-filename/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/build-filename/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/build-filename/.dirs/runtime 7142s ok 2 /file/build-filename 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/build-filenamev/.dirs/runtime 7142s ok 3 /file/build-filenamev 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/parent/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/parent/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/parent/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/parent/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/parent/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/parent/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/parent/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/parent/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/parent/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/parent/.dirs/runtime 7142s ok 4 /file/parent 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/child/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/child/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/child/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/child/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/child/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/child/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/child/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/child/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/child/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/child/.dirs/runtime 7142s ok 5 /file/child 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/empty-path/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/empty-path/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/empty-path/.dirs/runtime 7142s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 7142s # /file/empty-path summary: Check that creating a file with an empty path results in errors 7142s ok 6 /file/empty-path 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/type/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/type/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/type/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/type/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/type/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/type/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/type/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/type/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/type/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/type/.dirs/runtime 7142s ok 7 /file/type 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/parse-name/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/parse-name/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/parse-name/.dirs/runtime 7142s ok 8 /file/parse-name 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/replace-load/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/replace-load/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/replace-load/.dirs/runtime 7142s ok 9 /file/replace-load 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/replace-cancel/.dirs/runtime 7142s # Bug Reference: https://bugzilla.gnome.org/629301 7142s ok 10 /file/replace-cancel 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/replace-symlink/.dirs/runtime 7142s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 7142s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 7142s # Using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_symlink_WMHA62 7142s ok 11 /file/replace-symlink 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-new-tmp/.dirs/runtime 7142s ok 12 /file/async-new-tmp 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-new-tmp-dir/.dirs/runtime 7142s ok 13 /file/async-new-tmp-dir 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-delete/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-delete/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-delete/.dirs/runtime 7142s ok 14 /file/async-delete 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-make-symlink/.dirs/runtime 7142s ok 15 /file/async-make-symlink 7142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/home 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/cache 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/system-config2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/config 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/system-data2 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/data 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/state 7142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/copy-preserve-mode/.dirs/runtime 7142s # Current umask: 2 7142s # Vector 0 7142s # Vector 1 7142s # Vector 2 7142s # Vector 3 7142s # Vector 4 7142s # Vector 5 7142s # Vector 6 7143s # Vector 7 7143s # Vector 8 7143s # Vector 9 7143s # Vector 10 7143s ok 16 /file/copy-preserve-mode 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/copy-async-with-closures/.dirs/runtime 7143s ok 17 /file/copy-async-with-closures 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/measure/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/measure/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/measure/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/measure/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/measure/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/measure/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/measure/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/measure/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/measure/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/measure/.dirs/runtime 7143s ok 18 /file/measure 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/measure-async/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/measure-async/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/measure-async/.dirs/runtime 7143s ok 19 /file/measure-async 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/load-bytes/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/load-bytes/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/load-bytes/.dirs/runtime 7143s ok 20 /file/load-bytes 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/load-bytes-async/.dirs/runtime 7143s ok 21 /file/load-bytes-async 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/load-bytes-4gb/.dirs/runtime 7143s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/load-contents-4gb/.dirs/runtime 7143s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/load-contents-4gb-async/.dirs/runtime 7143s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/.dirs/runtime 7143s ok 25 /file/writev 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/build-attribute-list-for-copy/.dirs/runtime 7143s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 7143s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 7143s # 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::* 7143s # 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::* 7143s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 7143s # Attributes for copy: standard::size,xattr::* 7143s # Attributes for copy: standard::size,unix::mode,xattr::* 7143s ok 26 /file/build-attribute-list-for-copy 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/move_async/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/move_async/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/move_async/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/move_async/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/move_async/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/move_async/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/move_async/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/move_async/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/move_async/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/move_async/.dirs/runtime 7143s ok 27 /file/move_async 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/move-async-with-closures/.dirs/runtime 7143s ok 28 /file/move-async-with-closures 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/query-zero-length-content-type/.dirs/runtime 7143s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 7143s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 7143s ok 29 /file/query-zero-length-content-type 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/runtime 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/data/applications 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/config 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/config 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/config 7143s ok 30 /file/query-default-handler-file 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/runtime 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/data/applications 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/config 7143s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_ZBOZ52/file/query-default-handler-file/.dirs/config to /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/config 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/config 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/config 7143s ok 31 /file/query-default-handler-file-async 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/runtime 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/data/applications 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/config 7143s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_ZBOZ52/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/config 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/config 7143s # Executing: glib/file.test 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/config 7143s ok 32 /file/query-default-handler-uri 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/runtime 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/data/applications 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/config 7143s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_ZBOZ52/file/query-default-handler-uri/.dirs/config to /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/config 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/config 7143s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_ZBOZ52/file/query-default-handler-uri-async/.dirs/config 7143s ok 33 /file/query-default-handler-uri-async 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/enumerator-cancellation/.dirs/runtime 7143s ok 34 /file/enumerator-cancellation 7143s # Start of async-create-delete tests 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-create-delete/0/.dirs/runtime 7143s ok 35 /file/async-create-delete/0 7143s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/home 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/cache 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/system-config2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/config 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/system-data2 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/data 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/state 7143s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-create-delete/1/.dirs/runtime 7144s ok 36 /file/async-create-delete/1 7144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/home 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/cache 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/system-config2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/config 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/system-data2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/data 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/state 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-create-delete/10/.dirs/runtime 7144s ok 37 /file/async-create-delete/10 7144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/home 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/cache 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/system-config2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/config 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/system-data2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/data 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/state 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-create-delete/25/.dirs/runtime 7144s ok 38 /file/async-create-delete/25 7144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/home 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/cache 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/system-config2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/config 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/system-data2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/data 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/state 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/async-create-delete/4096/.dirs/runtime 7144s ok 39 /file/async-create-delete/4096 7144s # End of async-create-delete tests 7144s # Start of replace-symlink tests 7144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/home 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/cache 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/system-config2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/config 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/system-data2 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/data 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/state 7144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/replace-symlink/using-etag/.dirs/runtime 7144s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 7144s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 7144s # Using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_symlink_using_etag_HKSQ52 7146s ok 40 /file/replace-symlink/using-etag 7146s # slow test /file/replace-symlink/using-etag executed in 2.03 secs 7146s # End of replace-symlink tests 7146s # Start of replace tests 7146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/home 7146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/cache 7146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/system-config2 7146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/config 7146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/system-data2 7146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/data 7146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/state 7146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/replace/write-only/.dirs/runtime 7146s # /file/replace/write-only summary: Test various situations for g_file_replace() 7146s # Current umask: 2 7146s # Test 0, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_5MJR52 7146s # Test 1, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_SPRR52 7146s # Test 2, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_F54U52 7146s # Test 3, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_9H4V52 7146s # Test 4, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_KUJT52 7146s # Test 5, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_U2OT52 7146s # Test 6, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_S83T52 7146s # Test 7, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_L6GU52 7146s # Test 8, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_O5KU52 7146s # Test 9, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_G8NU52 7146s # Test 10, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_6SS952 7146s # Test 11, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_33K752 7146s # Test 12, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_3VV752 7146s # Test 13, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_X24752 7146s # Test 14, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_75Q852 7146s # Test 15, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_Y13B62 7146s # Test 16, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_NRUC62 7146s # Test 17, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_MJLA62 7146s # Test 18, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_G07A62 7146s # Test 19, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_NDC352 7146s # Test 20, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_BWW352 7146s # Test 21, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_J1F452 7146s # Test 22, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_8EF252 7146s # Test 23, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_XKL252 7146s # Test 24, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_0C5252 7146s # Test 25, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_AIP652 7146s # Test 26, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_APZ652 7146s # Test 27, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_1V6652 7147s # Test 28, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_3YLX52 7147s # Test 29, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_HGCY52 7147s # Test 30, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_YYMY52 7147s # Test 31, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_5JTY52 7147s # Test 32, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_6DJW52 7147s # Test 33, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_WB0W52 7147s # Test 34, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_W19W52 7147s # Test 35, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_HZFX52 7147s # Test 36, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_BBU052 7147s # Test 37, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_8VF152 7147s # Test 38, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_SEDZ52 7147s # Test 39, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_OOVZ52 7147s # Test 40, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_5ZYR52 7147s # Test 41, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_0T9R52 7147s # Test 42, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_0GRS52 7147s # Test 43, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_NA8S52 7147s # Test 44, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_V2YQ52 7147s # Test 45, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_RV0Q52 7147s # Test 46, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_VFIR52 7147s # Test 47, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_OXPR52 7147s # Test 48, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_FNXU52 7147s # We do not have CAP_DAC_OVERRIDE or equivalent 7147s ok 41 /file/replace/write-only 7147s # slow test /file/replace/write-only executed in 1.04 secs 7147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/home 7147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/cache 7147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/system-config2 7147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/config 7147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/system-data2 7147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/data 7147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/state 7147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/replace/read-write/.dirs/runtime 7147s # /file/replace/read-write summary: Test various situations for g_file_replace() 7147s # Current umask: 2 7147s # Test 0, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_BHGV52 7147s # Test 1, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_EOQV52 7147s # Test 2, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_ENLT52 7147s # Test 3, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_EY9T52 7147s # Test 4, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_74LU52 7147s # Test 5, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_XWV852 7147s # Test 6, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_MZJ952 7147s # Test 7, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_WBF752 7147s # Test 8, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_1BQ752 7147s # Test 9, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_PVW752 7147s # Test 10, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_AHK852 7147s # Test 11, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_OR0B62 7147s # Test 12, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_ODBC62 7147s # Test 13, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_GRLC62 7147s # Test 14, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_0ANA62 7147s # Test 15, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_31FB62 7147s # Test 16, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_MSO352 7147s # Test 17, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_U89352 7147s # Test 18, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_406152 7147s # Test 19, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_GST252 7147s # Test 20, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_3NA652 7147s # Test 21, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_6EX652 7147s # Test 22, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_CJC752 7147s # Test 23, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_SLM452 7148s # Test 24, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_A8W452 7148s # Test 25, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_ECTX52 7148s # Test 26, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_RFXX52 7148s # Test 27, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_OO1X52 7148s # Test 28, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_GGHY52 7148s # Test 29, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_CJWY52 7148s # Test 30, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_5H7V52 7148s # Test 31, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_O1AW52 7148s # Test 32, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_Y9NW52 7148s # Test 33, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_O30W52 7148s # Test 34, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_LQ5W52 7148s # Test 35, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_IW9W52 7148s # Test 36, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_GXD052 7148s # Test 37, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_UFS052 7148s # Test 38, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_XS1052 7148s # Test 39, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_5WI152 7148s # Test 40, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_VRQZ52 7148s # Test 41, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_RN6Z52 7148s # Test 42, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_7Z3R52 7148s # Test 43, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_Y9DS52 7148s # Test 44, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_5XQS52 7148s # Test 45, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_VJWS52 7148s # Test 46, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_RM8S52 7148s # Test 47, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_TDCT52 7148s # Test 48, using temporary directory /tmp/test_file_ZBOZ52/g_file_replace_EUWQ52 7148s # We do not have CAP_DAC_OVERRIDE or equivalent 7148s ok 42 /file/replace/read-write 7148s # slow test /file/replace/read-write executed in 0.93 secs 7148s # End of replace tests 7148s # Start of copy tests 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/copy/progress/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/copy/progress/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/copy/progress/.dirs/runtime 7148s ok 43 /file/copy/progress 7148s # End of copy tests 7148s # Start of writev tests 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/no-bytes-written/.dirs/runtime 7148s ok 44 /file/writev/no-bytes-written 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/no-vectors/.dirs/runtime 7148s ok 45 /file/writev/no-vectors 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/empty-vectors/.dirs/runtime 7148s ok 46 /file/writev/empty-vectors 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/too-big-vectors/.dirs/runtime 7148s ok 47 /file/writev/too-big-vectors 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/async/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/async/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/async/.dirs/runtime 7148s ok 48 /file/writev/async 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/async_all/.dirs/runtime 7148s ok 49 /file/writev/async_all 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/async_all-empty-vectors/.dirs/runtime 7148s ok 50 /file/writev/async_all-empty-vectors 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/async_all-no-vectors/.dirs/runtime 7148s ok 51 /file/writev/async_all-no-vectors 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/async_all-to-big-vectors/.dirs/runtime 7148s ok 52 /file/writev/async_all-to-big-vectors 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/writev/async_all-cancellation/.dirs/runtime 7148s ok 53 /file/writev/async_all-cancellation 7148s # End of writev tests 7148s # Start of from-uri tests 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/from-uri/ignores-query-string/.dirs/runtime 7148s ok 54 /file/from-uri/ignores-query-string 7148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/home 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/cache 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/system-config2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/config 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/system-data2 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/data 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/state 7148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_ZBOZ52/file/from-uri/ignores-fragment/.dirs/runtime 7148s ok 55 /file/from-uri/ignores-fragment 7148s # End of from-uri tests 7148s # End of file tests 7148s ok - glib/file.test 7148s # Running test: glib/macros-c-99.test 7148s # Executing: glib/macros-c-99.test 7148s TAP version 14 7148s # random seed: R02S5bf9f1daf84d6fb5409ed7dfc162d74e 7148s 1..4 7148s # Start of C tests 7148s ok 1 /C/standard-99 7148s # End of C tests 7148s # Start of alignof tests 7148s ok 2 /alignof/fallback 7148s # End of alignof tests 7148s # Start of assert tests 7148s ok 3 /assert/static 7148s # End of assert tests 7148s # Start of struct tests 7148s ok - glib/macros-c-99.test 7148s ok 4 /struct/sizeof_member 7148s # End of struct tests 7148s # Running test: glib/closure-refcount.test 7149s TAP version 14 7149s # random seed: R02S0b746362d933423335b42e331ab6b59c 7149s 1..1 7149s # Start of closure tests 7149s # Init 0x555631c0ad20 7149s # Yielding from main thread 7149s # Yielding from main thread 7149s # Yielding from thread1 7149s # Yielding from thread2 7150s # Yielding from main thread 7150s # Yielding from thread2 7150s # Yielding from thread1 7150s # Yielding from main thread 7151s # Yielding from thread1 7151s # Yielding from main thread 7151s # Yielding from thread2 7151s # Yielding from main thread 7151s # Yielding from main thread 7151s # Yielding from thread1 7151s # Yielding from thread2 7151s # Yielding from main thread 7152s # Yielding from main thread 7152s # Yielding from thread1 7152s # Yielding from thread2 7152s # Yielding from main thread 7152s # Yielding from thread1 7152s # Yielding from main thread 7153s # Yielding from main thread 7153s # Yielding from thread2 7153s # Yielding from thread1 7153s # Yielding from main thread 7153s # Executing: glib/closure-refcount.test 7153s # Yielding from main thread 7153s # Yielding from thread2 7154s # Yielding from thread1 7154s # Yielding from main thread 7154s # Yielding from thread1 7154s # Yielding from main thread 7154s # Yielding from thread2 7154s # Yielding from main thread 7154s # Yielding from thread1 7155s # Yielding from main thread 7155s # Yielding from thread2 7155s # Yielding from main thread 7155s # Yielding from thread1 7155s # Yielding from thread2 7155s # Yielding from main thread 7156s # Yielding from main thread 7156s # Yielding from thread1 7156s # Yielding from thread2 7156s # Yielding from main thread 7156s # Yielding from thread1 7156s # Yielding from main thread 7157s # Yielding from thread2 7157s # Yielding from main thread 7157s # Yielding from thread1 7157s # Yielding from thread2 7157s # Yielding from main thread 7157s # Yielding from main thread 7157s # Yielding from thread1 7158s # Yielding from thread2 7158s # Yielding from main thread 7158s # Yielding from thread1 7158s # Yielding from main thread 7158s # Yielding from thread2 7158s # Yielding from thread1 7158s # Yielding from main thread 7158s # Executing: glib/closure-refcount.test 7158s # Yielding from thread2 7159s # Yielding from main thread 7159s # Yielding from thread1 7159s # Yielding from main thread 7159s # Yielding from thread2 7159s # Yielding from thread1 7159s # Yielding from main thread 7159s # Yielding from main thread 7159s # Yielding from thread2 7160s # Yielding from thread1 7160s # Yielding from main thread 7160s # Yielding from main thread 7160s # Yielding from thread2 7160s # Yielding from thread1 7160s # Yielding from main thread 7161s # Yielding from thread2 7161s # Yielding from main thread 7161s # Yielding from thread1 7161s # Yielding from main thread 7161s # Yielding from thread2 7161s # Yielding from thread1 7161s # Yielding from main thread 7162s # Yielding from main thread 7162s # Yielding from thread2 7162s # Yielding from thread1 7162s # Yielding from main thread 7162s # Yielding from thread2 7163s # Yielding from thread1 7163s # Yielding from main thread 7163s # Yielding from main thread 7163s # Yielding from thread2 7163s # Yielding from main thread 7163s # Executing: glib/closure-refcount.test 7163s # Yielding from thread1 7164s # Yielding from main thread 7164s # Yielding from thread2 7164s # Yielding from main thread 7164s # Yielding from thread1 7164s # Yielding from main thread 7164s # Yielding from thread2 7164s # Yielding from main thread 7165s # Yielding from thread1 7165s # Yielding from main thread 7165s # Yielding from thread2 7165s # Yielding from main thread 7165s # Yielding from thread1 7165s # Yielding from main thread 7165s # Yielding from thread2 7166s # Yielding from main thread 7166s # Yielding from main thread 7166s # Yielding from thread1 7166s # Yielding from main thread 7166s # Yielding from thread2 7166s # Yielding from thread1 7166s # Yielding from main thread 7167s # Yielding from main thread 7167s # Yielding from thread2 7167s # Yielding from thread1 7167s # Yielding from main thread 7168s # Yielding from main thread 7168s # Yielding from thread2 7168s # Yielding from thread1 7168s # Yielding from thread2 7168s # Yielding from main thread 7168s # Executing: glib/closure-refcount.test 7168s # Yielding from thread1 7168s # Yielding from main thread 7169s # Yielding from thread2 7169s # Yielding from main thread 7169s # Yielding from thread1 7169s # Yielding from main thread 7169s # Yielding from thread2 7169s # Yielding from thread1 7169s # Yielding from main thread 7170s # Yielding from thread2 7170s # Yielding from main thread 7170s # Yielding from thread1 7170s # Yielding from main thread 7170s # Yielding from thread2 7170s # Yielding from main thread 7170s # Yielding from thread1 7171s # Yielding from thread2 7171s # Yielding from main thread 7171s # Yielding from main thread 7171s # Yielding from thread1 7171s # Yielding from thread2 7171s # Yielding from main thread 7171s # Yielding from main thread 7172s # Yielding from main thread 7172s # Yielding from thread1 7172s # Yielding from thread2 7172s # Yielding from main thread 7172s # Yielding from main thread 7172s # Yielding from thread1 7172s # Yielding from thread2 7173s # Yielding from main thread 7173s # Yielding from thread1 7173s # Yielding from thread2 7173s # Yielding from main thread 7173s # Executing: glib/closure-refcount.test 7174s # Yielding from main thread 7174s # Yielding from thread1 7174s # Yielding from thread2 7174s # Yielding from main thread 7174s # Yielding from main thread 7174s # Yielding from thread1 7174s # Yielding from thread2 7174s # Yielding from main thread 7175s # Yielding from main thread 7175s # Yielding from thread1 7175s # Yielding from thread2 7175s # Yielding from main thread 7175s # Yielding from thread1 7176s # Yielding from main thread 7176s # Yielding from thread2 7176s # Yielding from main thread 7176s # Yielding from thread1 7176s # Yielding from thread2 7176s # Yielding from main thread 7177s # Yielding from main thread 7177s # Yielding from thread1 7177s # Yielding from main thread 7177s # Yielding from thread2 7177s # Yielding from main thread 7178s # Yielding from thread1 7178s # Yielding from thread2 7178s # Yielding from main thread 7178s # Executing: glib/closure-refcount.test 7178s # Yielding from thread2 7178s # Yielding from main thread 7178s # Yielding from thread1 7179s # Yielding from main thread 7180s # Yielding from main thread 7180s # Yielding from thread2 7180s # Yielding from thread1 7180s # Yielding from main thread 7180s # Yielding from thread2 7180s # Yielding from main thread 7180s # Yielding from thread1 7180s # Yielding from main thread 7180s # Yielding from thread2 7180s # Yielding from main thread 7180s # Yielding from thread1 7181s # Yielding from main thread 7181s # Yielding from thread2 7181s # Yielding from thread1 7181s # Yielding from main thread 7181s # Yielding from main thread 7181s # Yielding from thread2 7182s # Yielding from thread1 7182s # Yielding from main thread 7182s # Stopping 7182s # Stopped 7182s ok 1 /closure/refcount 7182s # slow test /closure/refcount executed in 33.41 secs 7182s # End of closure tests 7182s ok - glib/closure-refcount.test 7182s # Running test: glib/defaultvalue.test 7182s TAP version 14 7182s # random seed: R02Scbbd3b4e6fd9037fdb7fadd086d727cd 7183s 1..84 7183s # Start of Default Values tests 7183s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 7183s ok 2 /Default Values/GAppLaunchContext 7183s ok 3 /Default Values/GApplicationCommandLine 7183s # skipping GApplication:is-remote 7183s ok 4 /Default Values/GApplication 7183s ok 5 /Default Values/GBinding # SKIP mandatory construct params 7183s ok 6 /Default Values/GBindingGroup 7183s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 7183s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 7183s ok 9 /Default Values/GBytesIcon 7183s ok 10 /Default Values/GCancellable 7183s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 7183s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 7183s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 7183s ok 14 /Default Values/GCredentials 7183s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 7183s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 7183s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 7183s ok 18 /Default Values/GDBusAuthObserver 7183s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 7183s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 7183s ok 21 /Default Values/GDBusMessage 7183s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 7183s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 7183s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 7183s ok 25 /Default Values/GDBusObjectProxy 7183s ok 26 /Default Values/GDBusObjectSkeleton 7183s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 7183s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 7183s ok 29 /Default Values/GEmblem 7183s ok 30 /Default Values/GEmblemedIcon 7183s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 7183s ok 32 /Default Values/GFileInfo 7183s ok 33 /Default Values/GFileInputStream 7183s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 7183s ok 35 /Default Values/GFileOutputStream 7183s ok 36 /Default Values/GFilenameCompleter 7183s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 7183s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 7183s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 7183s ok 40 /Default Values/GInitiallyUnowned 7183s ok 41 /Default Values/GIOModule 7183s ok 42 /Default Values/GListStore 7183s ok 43 /Default Values/GMemoryInputStream 7183s ok 44 /Default Values/GMemoryOutputStream 7183s ok 45 /Default Values/GMenu 7183s ok 46 /Default Values/GMenuItem 7183s ok 47 /Default Values/GMountOperation 7183s ok 48 /Default Values/GNativeSocketAddress 7183s ok 49 /Default Values/GNetworkAddress 7183s ok 50 /Default Values/GNetworkService 7183s ok 51 /Default Values/GNotification 7183s ok 52 /Default Values/GObject 7183s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 7183s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 7183s # skipping GProxyAddressEnumerator:proxy-resolver 7183s ok 54 /Default Values/GProxyAddressEnumerator 7183s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 7183s ok 56 /Default Values/GSettings # SKIP mandatory construct params 7183s ok 57 /Default Values/GSignalGroup 7183s ok 58 /Default Values/GSimpleAction 7183s ok 59 /Default Values/GSimpleActionGroup 7183s ok 60 /Default Values/GSimpleAsyncResult 7183s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 7183s ok 62 /Default Values/GSimplePermission 7183s ok 63 /Default Values/GSimpleProxyResolver 7183s # skipping GSocketClient:proxy-resolver 7183s ok 64 /Default Values/GSocketClient 7183s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 7183s ok 66 /Default Values/GSocket # SKIP initialization failed 7183s ok 67 /Default Values/GSocketListener 7183s ok 68 /Default Values/GSocketService 7183s ok 69 /Default Values/GSubprocess # SKIP initialization failed 7183s ok 70 /Default Values/GSubprocessLauncher 7183s # GLib-GIO-DEBUG: GTask 0x55561c044f20 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 7183s ok 71 /Default Values/GTask 7183s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 7183s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 7183s ok 74 /Default Values/GTestDBus 7183s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 7183s ok 76 /Default Values/GThreadedSocketService 7183s ok 77 /Default Values/GTlsInteraction 7183s ok 78 /Default Values/GTlsPassword 7183s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 7183s ok 80 /Default Values/GUnixFDList 7183s ok 81 /Default Values/GVfs 7183s ok 82 /Default Values/GVolumeMonitor 7183s ok 83 /Default Values/GZlibCompressor 7183s ok 84 /Default Values/GZlibDecompressor 7183s # End of Default Values tests 7183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7183s ok - glib/defaultvalue.test 7183s # Running test: glib/network-address.test 7184s # Executing: glib/network-address.test 7184s TAP version 14 7184s # random seed: R02S98ddd2cfff2e8643376bea782d10e44b 7184s 1..72 7184s # Start of network-address tests 7184s ok 1 /network-address/basic 7184s ok 2 /network-address/scope-id 7184s ok 3 /network-address/uri-scope-id 7184s ok 4 /network-address/to-string 7184s # Start of parse-host tests 7184s ok 5 /network-address/parse-host/0 7184s ok 6 /network-address/parse-host/1 7184s ok 7 /network-address/parse-host/2 7184s ok 8 /network-address/parse-host/3 7184s ok 9 /network-address/parse-host/4 7184s ok 10 /network-address/parse-host/5 7184s ok 11 /network-address/parse-host/6 7184s ok 12 /network-address/parse-host/7 7184s ok 13 /network-address/parse-host/8 7184s ok 14 /network-address/parse-host/9 7184s ok 15 /network-address/parse-host/10 7184s ok 16 /network-address/parse-host/11 7184s ok 17 /network-address/parse-host/12 7184s ok 18 /network-address/parse-host/13 7184s # End of parse-host tests 7184s # Start of parse-uri tests 7184s ok 19 /network-address/parse-uri/0 7184s ok 20 /network-address/parse-uri/1 7184s ok 21 /network-address/parse-uri/2 7184s ok 22 /network-address/parse-uri/3 7184s ok 23 /network-address/parse-uri/4 7184s ok 24 /network-address/parse-uri/5 7184s ok 25 /network-address/parse-uri/6 7184s ok 26 /network-address/parse-uri/7 7184s ok 27 /network-address/parse-uri/8 7184s ok 28 /network-address/parse-uri/9 7184s # End of parse-uri tests 7184s # Start of resolve-address tests 7184s # Input: 192.168.1.2 7184s ok 29 /network-address/resolve-address/0 7184s # Input: fe80::42 7184s ok 30 /network-address/resolve-address/1 7184s # Input: 192.168.1.2:80 7184s ok 31 /network-address/resolve-address/2 7184s # Input: [fe80::42] 7184s ok 32 /network-address/resolve-address/3 7184s # Input: [fe80::42]:80 7184s ok 33 /network-address/resolve-address/4 7184s # Input: 192.168.258 7184s ok 34 /network-address/resolve-address/5 7184s # Input: 192.11010306 7184s ok 35 /network-address/resolve-address/6 7184s # Input: 3232235778 7184s ok 36 /network-address/resolve-address/7 7184s # Input: 0300.0250.0001.0001 7184s ok 37 /network-address/resolve-address/8 7184s # Input: 0xC0.0xA8.0x01.0x02 7184s ok 38 /network-address/resolve-address/9 7184s # Input: 0xc0.0xa8.0x01.0x02 7184s ok 39 /network-address/resolve-address/10 7184s # Input: 0xc0a80102 7184s ok 40 /network-address/resolve-address/11 7184s # End of resolve-address tests 7184s # Start of loopback tests 7184s ok 41 /network-address/loopback/basic 7184s ok 42 /network-address/loopback/sync 7184s ok 43 /network-address/loopback/async 7184s # End of loopback tests 7184s # Start of localhost tests 7184s ok 44 /network-address/localhost/async 7184s ok 45 /network-address/localhost/sync 7184s # End of localhost tests 7184s # Start of happy-eyeballs tests 7184s ok 46 /network-address/happy-eyeballs/basic 7185s ok 47 /network-address/happy-eyeballs/parallel 7185s ok 48 /network-address/happy-eyeballs/slow-ipv4 7185s ok 49 /network-address/happy-eyeballs/slow-ipv6 7185s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 7186s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 7186s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.81 secs 7186s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 7186s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 7186s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 7186s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 7186s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 7186s # /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. 7186s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 7186s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 7186s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 7186s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 7186s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 7186s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 7186s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 7186s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 7186s ok 57 /network-address/happy-eyeballs/both-error 7186s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 7186s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 7186s ok 58 /network-address/happy-eyeballs/both-error-delays-1 7186s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 7186s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 7186s ok 59 /network-address/happy-eyeballs/both-error-delays-2 7186s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 7186s ok 60 /network-address/happy-eyeballs/both-error-delays-3 7186s # End of happy-eyeballs tests 7186s # End of network-address tests 7186s # Start of gresolver tests 7186s # Start of resolve-address tests 7186s # Input: 192.168.1.2 7186s ok 61 /gresolver/resolve-address/0 7186s # Input: fe80::42 7186s ok 62 /gresolver/resolve-address/1 7186s # Input: 192.168.1.2:80 7186s # Error: Error resolving ?192.168.1.2:80?: Name or service not known 7186s ok 63 /gresolver/resolve-address/2 7186s # Input: [fe80::42] 7186s # Error: Error resolving ?[fe80::42]?: Name or service not known 7186s ok 64 /gresolver/resolve-address/3 7186s # Input: [fe80::42]:80 7186s # Error: Error resolving ?[fe80::42]:80?: Name or service not known 7186s ok 65 /gresolver/resolve-address/4 7186s # Input: 192.168.258 7186s # Error: Error resolving ?192.168.258?: Name or service not known 7186s ok 66 /gresolver/resolve-address/5 7186s # Input: 192.11010306 7186s # Error: Error resolving ?192.11010306?: Name or service not known 7186s ok 67 /gresolver/resolve-address/6 7186s # Input: 3232235778 7186s # Error: Error resolving ?3232235778?: Name or service not known 7186s ok 68 /gresolver/resolve-address/7 7186s # Input: 0300.0250.0001.0001 7186s # Error: Error resolving ?0300.0250.0001.0001?: Name or service not known 7186s ok 69 /gresolver/resolve-address/8 7186s # Input: 0xC0.0xA8.0x01.0x02 7186s # Error: Error resolving ?0xC0.0xA8.0x01.0x02?: Name or service not known 7186s ok 70 /gresolver/resolve-address/9 7186s # Input: 0xc0.0xa8.0x01.0x02 7186s # Error: Error resolving ?0xc0.0xa8.0x01.0x02?: Name or service not known 7186s ok 71 /gresolver/resolve-address/10 7186s # Input: 0xc0a80102 7186s # Error: Error resolving ?0xc0a80102?: Name or service not known 7186s ok 72 /gresolver/resolve-address/11 7186s # End of resolve-address tests 7186s # End of gresolver tests 7186s ok - glib/network-address.test 7186s # Running test: glib/converter-stream.test 7186s TAP version 14 7186s # random seed: R02Scbfe38f6569d981073342361e4263603 7186s 1..17 7186s # Start of converter tests 7186s ok 1 /converter/basics 7186s # End of converter tests 7186s # Start of converter-input-stream tests 7186s ok 2 /converter-input-stream/expander 7187s ok 3 /converter-input-stream/compressor 7187s # Start of truncation tests 7189s ok 4 /converter-input-stream/truncation/zlib 7189s # slow test /converter-input-stream/truncation/zlib executed in 1.91 secs 7189s # Executing: glib/converter-stream.test 7191s ok 5 /converter-input-stream/truncation/gzip 7191s # slow test /converter-input-stream/truncation/gzip executed in 1.92 secs 7192s ok 6 /converter-input-stream/truncation/raw 7192s # slow test /converter-input-stream/truncation/raw executed in 1.65 secs 7192s # End of truncation tests 7192s # Start of charset tests 7192s ok 7 /converter-input-stream/charset/utf8->latin1 7192s ok 8 /converter-input-stream/charset/latin1->utf8 7192s ok 9 /converter-input-stream/charset/fallbacks 7192s # End of charset tests 7192s # End of converter-input-stream tests 7192s # Start of converter-output-stream tests 7192s # Start of roundtrip tests 7192s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 7193s ok 10 /converter-output-stream/roundtrip/zlib-0 7193s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 7194s # Executing: glib/converter-stream.test 7195s ok 11 /converter-output-stream/roundtrip/zlib-9 7195s # slow test /converter-output-stream/roundtrip/zlib-9 executed in 2.00 secs 7195s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 7196s ok 12 /converter-output-stream/roundtrip/gzip-0 7196s # slow test /converter-output-stream/roundtrip/gzip-0 executed in 0.72 secs 7196s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 7197s ok 13 /converter-output-stream/roundtrip/gzip-9 7197s # slow test /converter-output-stream/roundtrip/gzip-9 executed in 2.09 secs 7197s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 7198s ok 14 /converter-output-stream/roundtrip/raw-0 7198s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 7199s # Executing: glib/converter-stream.test 7200s ok 15 /converter-output-stream/roundtrip/raw-9 7200s # slow test /converter-output-stream/roundtrip/raw-9 executed in 1.90 secs 7200s # End of roundtrip tests 7200s # End of converter-output-stream tests 7200s # Start of converter-stream tests 7200s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 7200s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x55612ce12700 and GSocketClientAsyncConnectData 0x55612ce0f500 7200s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7200s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7200s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55612ca22bc0 for GSocketClientAsyncConnectData 0x55612ce0f500 7200s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7200s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7200s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7200s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7200s ok 16 /converter-stream/pollable 7200s ok 17 /converter-stream/leftover 7200s # End of converter-stream tests 7200s ok - glib/converter-stream.test 7200s # Running test: glib/base64.test 7200s TAP version 14 7200s # random seed: R02Sfb30575f73c60f86b7a8fd769514b960 7200s 1..28 7200s # Start of base64 tests 7200s ok 1 /base64/encode 7201s ok 2 /base64/decode 7201s ok 3 /base64/decode-inplace 7201s ok 4 /base64/encode-decode 7201s # Start of full tests 7201s ok 5 /base64/full/1 7201s ok 6 /base64/full/2 7201s ok 7 /base64/full/3 7201s ok 8 /base64/full/4 7201s # End of full tests 7201s # Start of encode tests 7201s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 7201s ok 9 /base64/encode/empty 7201s # Start of incremental tests 7201s # Start of small-block tests 7201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 7201s ok 10 /base64/encode/incremental/small-block/1 7201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 7201s ok 11 /base64/encode/incremental/small-block/2 7201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 7201s ok 12 /base64/encode/incremental/small-block/3 7201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 7201s ok 13 /base64/encode/incremental/small-block/4 7201s # End of small-block tests 7201s # End of incremental tests 7201s # End of encode tests 7201s # Start of incremental tests 7201s # Start of nobreak tests 7201s ok 14 /base64/incremental/nobreak/1 7201s ok 15 /base64/incremental/nobreak/2 7201s ok 16 /base64/incremental/nobreak/3 7201s ok 17 /base64/incremental/nobreak/4-a 7201s ok 18 /base64/incremental/nobreak/4-b 7201s ok 19 /base64/incremental/nobreak/4-c 7201s # End of nobreak tests 7201s # Start of break tests 7201s ok 20 /base64/incremental/break/1 7201s ok 21 /base64/incremental/break/2 7201s ok 22 /base64/incremental/break/3 7201s # End of break tests 7201s # Start of smallblock tests 7201s ok 23 /base64/incremental/smallblock/1 7201s ok 24 /base64/incremental/smallblock/2 7201s ok 25 /base64/incremental/smallblock/3 7201s ok 26 /base64/incremental/smallblock/4 7201s # End of smallblock tests 7201s # End of incremental tests 7201s # Start of decode tests 7201s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 7201s ok 27 /base64/decode/empty 7201s # End of decode tests 7201s # Start of encode-decode tests 7201s # Vector 0: 7201s # Vector 1: f 7201s # Vector 2: fo 7201s # Vector 3: foo 7201s # Vector 4: foob 7201s # Vector 5: fooba 7201s # Vector 6: foobar 7201s ok 28 /base64/encode-decode/rfc4648 7201s # End of encode-decode tests 7201s # End of base64 tests 7201s ok - glib/base64.test 7201s # Running test: glib/glistmodel.test 7201s TAP version 14 7201s # random seed: R02S5ce9a3dc0c7b07a853776f775c3bfcd0 7201s 1..18 7201s # Start of glistmodel tests 7201s # Start of store tests 7201s ok 1 /glistmodel/store/properties 7201s ok 2 /glistmodel/store/non-gobjects 7201s ok 3 /glistmodel/store/boundaries 7201s ok 4 /glistmodel/store/refcounts 7201s ok 5 /glistmodel/store/sorted 7201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 7201s ok 6 /glistmodel/store/splice-replace-middle 7201s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 7201s ok 7 /glistmodel/store/splice-replace-all 7201s ok 8 /glistmodel/store/splice-noop 7201s ok 9 /glistmodel/store/splice-remove-multiple 7201s ok 10 /glistmodel/store/splice-add-multiple 7201s ok 11 /glistmodel/store/splice-wrong-type 7201s ok 12 /glistmodel/store/item-type 7201s ok 13 /glistmodel/store/remove-all 7201s ok 14 /glistmodel/store/sort 7201s ok 15 /glistmodel/store/get-item-cache 7201s ok 16 /glistmodel/store/items-changed 7201s ok 17 /glistmodel/store/past-end 7201s ok 18 /glistmodel/store/find 7201s # End of store tests 7201s # End of glistmodel tests 7201s ok - glib/glistmodel.test 7201s # Running test: glib/portal-support-flatpak-gsettings-only.test 7202s TAP version 14 7202s # random seed: R02Sf2a068134961bdd430ac1148bddfee60 7202s 1..1 7202s # Start of portal-support tests 7202s # Start of flatpak tests 7202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/home 7202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/cache 7202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/system-config2 7202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/config 7202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/system-data2 7202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/data 7202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/state 7202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/runtime 7202s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_X8MW52/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 7202s ok 1 /portal-support/flatpak/gsettings 7202s # End of flatpak tests 7202s # End of portal-support tests 7202s ok - glib/portal-support-flatpak-gsettings-only.test 7202s # Running test: glib/tls-database.test 7202s TAP version 14 7202s # random seed: R02Sadc36e50d7872648de0b4eff9b70fdad 7202s 1..1 7202s # Start of tls-backend tests 7202s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 7202s ok 1 /tls-backend/set-default-database 7202s # End of tls-backend tests 7202s ok - glib/tls-database.test 7202s # Running test: glib/power-profile-monitor-portal.test 7204s # Executing: glib/power-profile-monitor-portal.test 7209s # Executing: glib/power-profile-monitor-portal.test 7212s TAP version 13 7212s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 7214s # Executing: glib/power-profile-monitor-portal.test 7215s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 7215s 1..2 7215s ok - glib/power-profile-monitor-portal.test 7215s # Running test: glib/unicode-normalize.test 7216s TAP version 14 7216s # random seed: R02S5b7f0b4de7773b91599735e95a158992 7216s 1..3 7216s # Start of unicode tests 7216s # Processing Part0 # Specific cases 7216s # Processing Part1 # Character by character test 7219s # Processing Part2 # Canonical Order Test 7219s # Executing: glib/unicode-normalize.test 7219s # Processing Part3 # PRI #29 Test 7220s # Processing Part4 # Canonical closures (excluding Hangul) 7220s # Processing Part5 # Chained primary composites 7220s ok 1 /unicode/normalize 7220s # slow test /unicode/normalize executed in 4.20 secs 7220s # Invalid UTF-8 vector 0 7220s # Invalid UTF-8 vector 1 7220s # Invalid UTF-8 vector 2 7220s # Invalid UTF-8 vector 3 7220s # Invalid UTF-8 vector 4 7220s # Invalid UTF-8 vector 5 7220s # Invalid UTF-8 vector 6 7220s # Invalid UTF-8 vector 7 7220s # Invalid UTF-8 vector 8 7220s # Invalid UTF-8 vector 9 7220s # Invalid UTF-8 vector 10 7220s # Invalid UTF-8 vector 11 7220s # Invalid UTF-8 vector 12 7220s ok 2 /unicode/normalize-invalid 7220s # Start of normalize tests 7220s ok 3 /unicode/normalize/bad-length 7220s # End of normalize tests 7220s # End of unicode tests 7220s ok - glib/unicode-normalize.test 7220s # Running test: glib/gdbus-introspection.test 7220s TAP version 14 7220s # random seed: R02Sd90e7411d004fcace14c28bb3b40d926 7220s 1..4 7220s # Start of gdbus tests 7220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/home 7220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/cache 7220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/system-config2 7220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/config 7220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/system-data2 7220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/data 7220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/state 7220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-parser/.dirs/runtime 7221s ok 1 /gdbus/introspection-parser 7221s # slow test /gdbus/introspection-parser executed in 0.93 secs 7221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/home 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/cache 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/system-config2 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/config 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/system-data2 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/data 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/state 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-generate/.dirs/runtime 7221s ok 2 /gdbus/introspection-generate 7221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/home 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/cache 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/system-config2 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/config 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/system-data2 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/data 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/state 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-default-direction/.dirs/runtime 7221s ok 3 /gdbus/introspection-default-direction 7221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/home 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/cache 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/system-config2 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/config 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/system-data2 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/data 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/state 7221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_ODW852/gdbus/introspection-extra-data/.dirs/runtime 7221s ok 4 /gdbus/introspection-extra-data 7221s # End of gdbus tests 7221s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7221s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7221s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7221s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7221s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7221s ok - glib/gdbus-introspection.test 7222s # Running test: glib/gdbus-connection.test 7222s TAP version 14 7222s # random seed: R02S39535fd27cdbf168e9240a548fdd8b61 7222s 1..9 7222s # Start of gdbus tests 7222s # Start of connection tests 7222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/home 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/cache 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/system-config2 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/config 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/system-data2 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/data 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/state 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/bus-failure/.dirs/runtime 7222s ok 1 /gdbus/connection/bus-failure 7222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/home 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/cache 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/system-config2 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/config 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/system-data2 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/data 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/state 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/basic/.dirs/runtime 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7222s ok 2 /gdbus/connection/basic 7222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/home 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/cache 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/system-config2 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/config 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/system-data2 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/data 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/state 7222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/life-cycle/.dirs/runtime 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s ok 3 /gdbus/connection/life-cycle 7223s # slow test /gdbus/connection/life-cycle executed in 0.64 secs 7223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/home 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/cache 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/system-config2 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/config 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/system-data2 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/data 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/state 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/send/.dirs/runtime 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7223s ok 4 /gdbus/connection/send 7223s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/home 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/cache 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/system-config2 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/config 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/system-data2 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/data 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/state 7223s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signals/.dirs/runtime 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s ok 5 /gdbus/connection/signals 7224s # slow test /gdbus/connection/signals executed in 0.51 secs 7224s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/home 7224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/cache 7224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/system-config2 7224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/config 7224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/system-data2 7224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/data 7224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/state 7224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/signal-match-rules/.dirs/runtime 7224s # Executing: glib/gdbus-connection.test 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7224s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s ok 6 /gdbus/connection/signal-match-rules 7225s # slow test /gdbus/connection/signal-match-rules executed in 0.80 secs 7225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/home 7225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/cache 7225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/system-config2 7225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/config 7225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/system-data2 7225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/data 7225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/state 7225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/filter/.dirs/runtime 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7225s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s ok 7 /gdbus/connection/filter 7226s # slow test /gdbus/connection/filter executed in 0.81 secs 7226s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/home 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/cache 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/system-config2 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/config 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/system-data2 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/data 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/state 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/serials/.dirs/runtime 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s ok 8 /gdbus/connection/serials 7226s # slow test /gdbus/connection/serials executed in 0.61 secs 7226s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/home 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/cache 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/system-config2 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/config 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/system-data2 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/data 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/state 7226s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_H9K152/gdbus/connection/cancel/.dirs/runtime 7226s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7226s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7227s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7227s ok 9 /gdbus/connection/cancel 7227s # End of connection tests 7227s # End of gdbus tests 7227s ok - glib/gdbus-connection.test 7227s # Running test: glib/contexts.test 7227s TAP version 14 7227s # random seed: R02Sc09b8b7d3daaecaad7beecb7cc70869f 7227s 1..5 7227s # Start of gio tests 7227s # Start of contexts tests 7227s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 7227s ok 1 /gio/contexts/thread-independence 7227s ok 2 /gio/contexts/context-independence 7227s # Start of context-specific tests 7227s ok 3 /gio/contexts/context-specific/identity 7229s ok 4 /gio/contexts/context-specific/emit 7229s # slow test /gio/contexts/context-specific/emit executed in 1.56 secs 7229s ok 5 /gio/contexts/context-specific/emit-and-unref 7229s # End of context-specific tests 7229s # End of contexts tests 7229s # End of gio tests 7229s ok - glib/contexts.test 7229s # Running test: glib/thread.test 7229s TAP version 14 7229s # random seed: R02S8726d39a08ce589174d564af3b161868 7229s 1..7 7229s # Start of thread tests 7229s ok 1 /thread/thread1 7229s ok 2 /thread/thread2 7229s ok 3 /thread/thread3 7229s # Executing: glib/thread.test 7229s ok 4 /thread/thread4 7229s ok 5 /thread/thread5 7229s ok 6 /thread/thread6 7229s ok 7 /thread/thread7 7229s # End of thread tests 7229s ok - glib/thread.test 7229s # Running test: glib/spawn-test.test 7229s TAP version 14 7229s # random seed: R02S74d43290776d5238f23d0015f9f92010 7229s 1..2 7229s # Start of spawn tests 7229s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/home 7229s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/cache 7229s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_JP4152/spawn/basics/.dirs/system-config2 7229s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/config 7229s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_JP4152/spawn/basics/.dirs/system-data2 7229s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/data 7229s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/state 7229s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_JP4152/spawn/basics/.dirs/runtime 7230s ok 1 /spawn/basics 7230s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/home 7230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/cache 7230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/system-config2 7230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/config 7230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/system-data2 7230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/data 7230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/state 7230s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_JP4152/spawn/stdio-overwrite/.dirs/runtime 7230s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 7230s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 7230s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 7230s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 7230s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 7230s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 7230s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 7230s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 7230s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 7230s # Fetching GSpawn result output with stdin open, stdout open, stderr open 7230s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 7231s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 7231s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 7231s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 7231s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 7231s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 7231s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 7231s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 7231s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 7231s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 7231s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 7231s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 7231s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 7231s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 7231s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 7231s # Fetching GSpawn result with stdin open, stdout open, stderr open 7232s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 7232s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 7232s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 7232s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 7232s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 7232s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 7232s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 7232s ok 2 /spawn/stdio-overwrite 7232s # slow test /spawn/stdio-overwrite executed in 2.22 secs 7232s # End of spawn tests 7232s ok - glib/spawn-test.test 7232s # Running test: glib/utils-c-11.test 7232s TAP version 14 7232s # random seed: R02S0bd1d5ccfb3932428a93f179d20d6f44 7232s 1..41 7232s # Start of utils tests 7232s ok 1 /utils/language-names 7232s ok 2 /utils/locale-variants 7232s ok 3 /utils/version 7232s ok 4 /utils/appname 7232s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 7232s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 7232s ok 5 /utils/prgname-thread-safety 7232s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 7232s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 7233s ok 6 /utils/tmpdir 7233s ok 7 /utils/basic_bits 7233s ok 8 /utils/bits 7233s ok 9 /utils/swap 7233s ok 10 /utils/find-program 7233s ok 11 /utils/find-program-for-path 7233s ok 12 /utils/debug 7233s ok 13 /utils/codeset 7233s ok 14 /utils/codeset2 7233s ok 15 /utils/console-charset 7233s ok 16 /utils/gettext 7233s ok 17 /utils/username 7233s ok 18 /utils/realname 7233s ok 19 /utils/hostname 7233s ok 20 /utils/xdgdirs 7233s ok 21 /utils/specialdir 7233s # NAME: Ubuntu 7233s ok 22 /utils/os-info 7233s ok 23 /utils/clear-pointer 7233s ok 24 /utils/clear-pointer-cast 7233s ok 25 /utils/take-pointer 7233s ok 26 /utils/clear-source 7233s ok 27 /utils/misc-mem 7233s # /utils/aligned-mem summary: Aligned memory allocator 7233s # Alignment must not be zero 7233s # Alignment must be a power of two 7233s # Alignment must be a multiple of sizeof(void*) 7233s ok 28 /utils/aligned-mem 7233s # /utils/free-sized summary: Check that g_free_sized() works 7233s ok 29 /utils/free-sized 7233s ok 30 /utils/nullify 7233s ok 31 /utils/atexit 7233s ok 32 /utils/check-setuid 7233s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 7233s ok 33 /utils/int-limits 7233s ok 34 /utils/clear-list 7233s ok 35 /utils/clear-slist 7233s ok 36 /utils/steal-handle-id 7233s # Start of specialdir tests 7233s ok 37 /utils/specialdir/desktop 7233s # End of specialdir tests 7233s # Start of clear-pointer tests 7233s ok 38 /utils/clear-pointer/side-effects 7233s # End of clear-pointer tests 7233s # Start of aligned-mem tests 7233s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 7233s ok 39 /utils/aligned-mem/alignment 7233s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 7233s ok 40 /utils/aligned-mem/zeroed 7233s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 7233s ok 41 /utils/aligned-mem/free-sized 7233s # Start of subprocess tests 7233s # End of subprocess tests 7233s # End of aligned-mem tests 7233s # End of utils tests 7233s ok - glib/utils-c-11.test 7234s # Running test: glib/slist.test 7234s TAP version 14 7234s # random seed: R02S3555400b3863c23823231f102b4cbc12 7234s 1..14 7234s # Start of slist tests 7234s ok 1 /slist/sort 7234s ok 2 /slist/sort-with-data 7234s ok 3 /slist/insert-sorted 7234s ok 4 /slist/insert-sorted-with-data 7234s ok 5 /slist/reverse 7234s ok 6 /slist/nth 7234s ok 7 /slist/remove 7234s ok 8 /slist/remove-all 7234s ok 9 /slist/insert 7234s ok 10 /slist/position 7234s ok 11 /slist/concat 7234s ok 12 /slist/copy 7234s # Start of sort tests 7234s ok 13 /slist/sort/stable 7234s # End of sort tests 7234s # Start of copy tests 7234s ok 14 /slist/copy/deep 7234s # End of copy tests 7234s # End of slist tests 7234s ok - glib/slist.test 7234s # Running test: glib/node.test 7234s TAP version 14 7234s # random seed: R02S390301de8157a8652103f57bb2266b74 7234s 1..6 7234s # Start of node tests 7234s ok 1 /node/allocation 7234s ok 2 /node/construction 7234s ok 3 /node/traversal 7234s ok 4 /node/misc 7234s ok 5 /node/unlink 7234s ok 6 /node/copy 7234s # End of node tests 7234s ok - glib/node.test 7234s # Running test: glib/gdbus-auth.test 7234s # Executing: glib/gdbus-auth.test 7234s TAP version 14 7234s # random seed: R02S24bc75683a5ef37553dd681a35376024 7234s 1..5 7234s # Start of gdbus tests 7234s # Start of auth tests 7234s # Start of client tests 7234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/home 7234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/cache 7234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/system-config2 7234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/config 7234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/system-data2 7234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/data 7234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/state 7234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/EXTERNAL/.dirs/runtime 7234s ok 1 /gdbus/auth/client/EXTERNAL 7235s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_MB7952/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 7235s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 7235s # End of client tests 7235s # Start of server tests 7235s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/home 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/cache 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/config 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/data 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/state 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/ANONYMOUS/.dirs/runtime 7235s ok 3 /gdbus/auth/server/ANONYMOUS 7235s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/home 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/cache 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/system-config2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/config 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/system-data2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/data 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/state 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/EXTERNAL/.dirs/runtime 7235s ok 4 /gdbus/auth/server/EXTERNAL 7235s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 7235s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_MB7952/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 7235s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 7235s # End of server tests 7235s # End of auth tests 7235s # End of gdbus tests 7235s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7235s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7235s ok - glib/gdbus-auth.test 7235s # Running test: glib/atomic-c-99.test 7235s TAP version 14 7235s # random seed: R02S08edc12ec5316e8059a98dba22dff0fd 7235s 1..2 7235s # Start of atomic tests 7235s ok 1 /atomic/types 7236s ok 2 /atomic/threaded 7236s # slow test /atomic/threaded executed in 1.12 secs 7236s # End of atomic tests 7236s ok - glib/atomic-c-99.test 7236s # Running test: glib/null-settings-backend.test 7236s TAP version 14 7236s # random seed: R02Sb51d82af78f7013027848bc90bb1ce8a 7236s 1..1 7236s # Start of null-settings-backend tests 7236s ok 1 /null-settings-backend/extension-point-registered 7236s # End of null-settings-backend tests 7236s ok - glib/null-settings-backend.test 7236s # Running test: glib/unicode.test 7237s TAP version 14 7237s # random seed: R02S65f5c484340680b4ad5d923973da6562 7237s 1..39 7237s # Start of unicode tests 7237s ok 1 /unicode/alnum 7237s ok 2 /unicode/alpha 7237s ok 3 /unicode/break-type 7237s ok 4 /unicode/canonical-decomposition 7237s ok 5 /unicode/casefold 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s # Cannot set locale to lt_LT, skipping 7237s ok 6 /unicode/casemap_and_casefold 7237s ok 7 /unicode/cases 7237s ok 8 /unicode/character-type 7237s ok 9 /unicode/cntrl 7237s ok 10 /unicode/combining-class 7237s # Composing U+000041 and U+000042; expecting U+000000 7237s # Composing U+000041 and U+000000; expecting U+000000 7237s # Composing U+000066 and U+000069; expecting U+000000 7237s # Composing U+000308 and U+000301; expecting U+000000 7237s # Composing U+000f71 and U+000f72; expecting U+000000 7237s # Composing U+00212b and U+000000; expecting U+000000 7237s # Composing U+0000c5 and U+000000; expecting U+000000 7237s # Composing U+002126 and U+000000; expecting U+000000 7237s # Composing U+0003a9 and U+000000; expecting U+000000 7237s # Composing U+000041 and U+00030a; expecting U+0000c5 7237s # Composing U+00006f and U+000302; expecting U+0000f4 7237s # Composing U+001e63 and U+000307; expecting U+001e69 7237s # Composing U+000073 and U+000323; expecting U+001e63 7237s # Composing U+000064 and U+000307; expecting U+001e0b 7237s # Composing U+000064 and U+000323; expecting U+001e0d 7237s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 7237s # Composing U+001111 and U+001171; expecting U+00d4cc 7237s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 7237s # Composing U+00110e and U+001173; expecting U+00ce20 7237s # Composing U+001100 and U+001160; expecting U+000000 7237s # Composing U+001100 and U+001177; expecting U+000000 7237s # Composing U+00abff and U+0011b6; expecting U+000000 7237s # Composing U+00d7a5 and U+0011b6; expecting U+000000 7237s # Composing U+00ac01 and U+0011b6; expecting U+000000 7237s # Composing U+00d4cc and U+0011a6; expecting U+000000 7237s # Composing U+00d4cc and U+0011c4; expecting U+000000 7237s # Composing U+01611e and U+01611e; expecting U+016121 7237s # Composing U+01611e and U+01611f; expecting U+016123 7237s # Composing U+0000f6 and U+000304; expecting U+00022b 7237s # Composing U+000b47 and U+000b57; expecting U+000b4c 7237s # Composing U+0000a0 and U+000b57; expecting U+000000 7237s # Composing U+016e00 and U+00030a; expecting U+000000 7237s # Composing U+00212b and U+016e00; expecting U+000000 7237s # Composing U+001e63 and U+000306; expecting U+000000 7237s # Composing U+001e63 and U+000304; expecting U+000000 7237s # Composing U+001e63 and U+000b57; expecting U+000000 7237s # Composing U+001e63 and U+000000; expecting U+000000 7237s # Composing U+001e63 and U+0113c2; expecting U+000000 7237s # Composing U+001f01 and U+0113c2; expecting U+000000 7237s # Composing U+00006e and U+000302; expecting U+000000 7237s # Composing U+001e63 and U+01611f; expecting U+000000 7237s # Composing U+01138e and U+0113b8; expecting U+000000 7237s # Composing U+01611e and U+000000; expecting U+000000 7237s # Composing U+000000 and U+01611f; expecting U+000000 7237s # Composing U+011390 and U+0113c2; expecting U+000000 7237s ok 11 /unicode/compose 7237s ok 12 /unicode/decompose 7237s ok 13 /unicode/decompose-tail 7237s ok 14 /unicode/defined 7237s ok 15 /unicode/digit 7237s ok 16 /unicode/digit-value 7237s # Fully decomposing U+000041; expecting 1 codepoints 7237s # Fully decomposing U+00fb01; expecting 1 codepoints 7237s # Fully decomposing U+00212b; expecting 2 codepoints 7237s # Fully decomposing U+002126; expecting 1 codepoints 7237s # Fully decomposing U+000344; expecting 2 codepoints 7237s # Fully decomposing U+000f73; expecting 2 codepoints 7237s # Fully decomposing U+0000c5; expecting 2 codepoints 7237s # Fully decomposing U+0000f4; expecting 2 codepoints 7237s # Fully decomposing U+001e69; expecting 3 codepoints 7237s # Fully decomposing U+001e63; expecting 2 codepoints 7237s # Fully decomposing U+001e0b; expecting 2 codepoints 7237s # Fully decomposing U+001e0d; expecting 2 codepoints 7237s # Fully decomposing U+00d4db; expecting 3 codepoints 7237s # Fully decomposing U+00d4cc; expecting 2 codepoints 7237s # Fully decomposing U+00ce31; expecting 3 codepoints 7237s # Fully decomposing U+00ce20; expecting 2 codepoints 7237s ok 17 /unicode/fully-decompose-canonical 7238s ok 18 /unicode/fully-decompose-len 7238s # slow test /unicode/fully-decompose-len executed in 0.67 secs 7238s ok 19 /unicode/normalization 7238s ok 20 /unicode/graph 7238s # Testing script Zyyy (code 1517910393) 7238s # Testing script Zinh (code 1516858984) 7238s # Testing script Zmth (code 1517122664) 7238s # Testing script Arab (code 1098015074) 7238s # Testing script Armn (code 1098018158) 7238s # Testing script Beng (code 1113943655) 7238s # Testing script Bopo (code 1114599535) 7238s # Testing script Cher (code 1130915186) 7238s # Testing script Copt (code 1131376756) 7238s # Testing script Cyrl (code 1132032620) 7238s # Testing script Dsrt (code 1148416628) 7238s # Testing script Deva (code 1147500129) 7238s # Testing script Ethi (code 1165256809) 7238s # Testing script Geor (code 1197830002) 7238s # Testing script Goth (code 1198486632) 7238s # Testing script Grek (code 1198679403) 7238s # Testing script Gujr (code 1198877298) 7238s # Testing script Guru (code 1198879349) 7238s # Testing script Hani (code 1214344809) 7238s # Testing script Hang (code 1214344807) 7238s # Testing script Hebr (code 1214603890) 7238s # Testing script Hira (code 1214870113) 7238s # Testing script Knda (code 1265525857) 7238s # Testing script Kana (code 1264676449) 7238s # Testing script Khmr (code 1265134962) 7238s # Testing script Laoo (code 1281453935) 7238s # Testing script Latn (code 1281455214) 7238s # Testing script Mlym (code 1298954605) 7238s # Testing script Mong (code 1299148391) 7238s # Testing script Mymr (code 1299803506) 7238s # Testing script Ogam (code 1332175213) 7238s # Testing script Ital (code 1232363884) 7238s # Testing script Orya (code 1332902241) 7238s # Testing script Runr (code 1383427698) 7238s # Testing script Sinh (code 1399418472) 7238s # Testing script Syrc (code 1400468067) 7238s # Testing script Taml (code 1415671148) 7238s # Testing script Telu (code 1415933045) 7238s # Testing script Thaa (code 1416126817) 7238s # Testing script Thai (code 1416126825) 7238s # Testing script Tibt (code 1416192628) 7238s # Testing script Cans (code 1130458739) 7238s # Testing script Yiii (code 1500080489) 7238s # Testing script Tglg (code 1416064103) 7238s # Testing script Hano (code 1214344815) 7238s # Testing script Buhd (code 1114990692) 7238s # Testing script Tagb (code 1415669602) 7238s # Testing script Brai (code 1114792297) 7238s # Testing script Cprt (code 1131442804) 7238s # Testing script Limb (code 1281977698) 7238s # Testing script Osma (code 1332964705) 7238s # Testing script Shaw (code 1399349623) 7238s # Testing script Linb (code 1281977954) 7238s # Testing script Tale (code 1415670885) 7238s # Testing script Ugar (code 1432838514) 7238s # Testing script Talu (code 1415670901) 7238s # Testing script Bugi (code 1114990441) 7238s # Testing script Glag (code 1198285159) 7238s # Testing script Tfng (code 1415999079) 7238s # Testing script Sylo (code 1400466543) 7238s # Testing script Xpeo (code 1483761007) 7238s # Testing script Khar (code 1265131890) 7238s # Testing script Zzzz (code 1517976186) 7238s # Testing script Bali (code 1113681001) 7238s # Testing script Xsux (code 1483961720) 7238s # Testing script Phnx (code 1349021304) 7238s # Testing script Phag (code 1349017959) 7238s # Testing script Nkoo (code 1315663727) 7238s # Testing script Kali (code 1264675945) 7238s # Testing script Lepc (code 1281716323) 7238s # Testing script Rjng (code 1382706791) 7238s # Testing script Sund (code 1400204900) 7238s # Testing script Saur (code 1398895986) 7238s # Testing script Cham (code 1130914157) 7238s # Testing script Olck (code 1332503403) 7238s # Testing script Vaii (code 1449224553) 7238s # Testing script Cari (code 1130459753) 7238s # Testing script Lyci (code 1283023721) 7238s # Testing script Lydi (code 1283023977) 7238s # Testing script Avst (code 1098281844) 7238s # Testing script Bamu (code 1113681269) 7238s # Testing script Egyp (code 1164409200) 7238s # Testing script Armi (code 1098018153) 7238s # Testing script Phli (code 1349020777) 7238s # Testing script Prti (code 1349678185) 7238s # Testing script Java (code 1247901281) 7238s # Testing script Kthi (code 1265920105) 7238s # Testing script Lisu (code 1281979253) 7238s # Testing script Mtei (code 1299473769) 7238s # Testing script Sarb (code 1398895202) 7238s # Testing script Orkh (code 1332898664) 7238s # Testing script Samr (code 1398893938) 7238s # Testing script Lana (code 1281453665) 7238s # Testing script Tavt (code 1415673460) 7238s # Testing script Batk (code 1113683051) 7238s # Testing script Brah (code 1114792296) 7238s # Testing script Mand (code 1298230884) 7238s # Testing script Cakm (code 1130457965) 7238s # Testing script Merc (code 1298494051) 7238s # Testing script Mero (code 1298494063) 7238s # Testing script Plrd (code 1349284452) 7238s # Testing script Shrd (code 1399353956) 7238s # Testing script Sora (code 1399812705) 7238s # Testing script Takr (code 1415670642) 7238s # Testing script Bass (code 1113682803) 7238s # Testing script Aghb (code 1097295970) 7238s # Testing script Dupl (code 1148547180) 7238s # Testing script Elba (code 1164730977) 7238s # Testing script Gran (code 1198678382) 7238s # Testing script Khoj (code 1265135466) 7238s # Testing script Sind (code 1399418468) 7238s # Testing script Lina (code 1281977953) 7238s # Testing script Mahj (code 1298229354) 7238s # Testing script Mani (code 1298230889) 7238s # Testing script Mend (code 1298493028) 7238s # Testing script Modi (code 1299145833) 7238s # Testing script Mroo (code 1299345263) 7238s # Testing script Nbat (code 1315070324) 7238s # Testing script Narb (code 1315009122) 7238s # Testing script Perm (code 1348825709) 7238s # Testing script Hmng (code 1215131239) 7238s # Testing script Palm (code 1348562029) 7238s # Testing script Pauc (code 1348564323) 7238s # Testing script Phlp (code 1349020784) 7238s # Testing script Sidd (code 1399415908) 7238s # Testing script Tirh (code 1416196712) 7238s # Testing script Wara (code 1466004065) 7238s # Testing script Ahom (code 1097363309) 7238s # Testing script Hluw (code 1215067511) 7238s # Testing script Hatr (code 1214346354) 7238s # Testing script Mult (code 1299541108) 7238s # Testing script Hung (code 1215655527) 7238s # Testing script Sgnw (code 1399287415) 7238s # Testing script Adlm (code 1097100397) 7238s # Testing script Bhks (code 1114139507) 7238s # Testing script Marc (code 1298231907) 7238s # Testing script Newa (code 1315272545) 7238s # Testing script Osge (code 1332963173) 7238s # Testing script Tang (code 1415671399) 7238s # Testing script Gonm (code 1198485101) 7238s # Testing script Nshu (code 1316186229) 7238s # Testing script Soyo (code 1399814511) 7238s # Testing script Zanb (code 1516334690) 7238s # Testing script Dogr (code 1148151666) 7238s # Testing script Gong (code 1198485095) 7238s # Testing script Rohg (code 1383032935) 7238s # Testing script Maka (code 1298230113) 7238s # Testing script Medf (code 1298490470) 7238s # Testing script Sogo (code 1399809903) 7238s # Testing script Sogd (code 1399809892) 7238s # Testing script Elym (code 1164736877) 7238s # Testing script Nand (code 1315008100) 7238s # Testing script Hmnp (code 1215131248) 7238s # Testing script Wcho (code 1466132591) 7238s # Testing script Chrs (code 1130918515) 7238s # Testing script Diak (code 1147756907) 7238s # Testing script Kits (code 1265202291) 7238s # Testing script Yezi (code 1499822697) 7238s # Testing script Cpmn (code 1131441518) 7238s # Testing script Ougr (code 1333094258) 7238s # Testing script Tnsa (code 1416524641) 7238s # Testing script Toto (code 1416590447) 7238s # Testing script Vith (code 1449751656) 7238s # Testing script Kawi (code 1264678761) 7238s # Testing script Nagm (code 1315006317) 7238s # Testing script Todr (code 1416586354) 7238s # Testing script Gara (code 1197568609) 7238s # Testing script Tutg (code 1416983655) 7238s # Testing script Sunu (code 1400204917) 7238s # Testing script Gukh (code 1198877544) 7238s # Testing script Krai (code 1265787241) 7238s # Testing script Onao (code 1332633967) 7238s ok 21 /unicode/iso15924 7238s ok 22 /unicode/lower 7238s ok 23 /unicode/mark 7238s ok 24 /unicode/mirror 7238s ok 25 /unicode/print 7238s ok 26 /unicode/punctuation 7238s ok 27 /unicode/script 7238s ok 28 /unicode/space 7238s ok 29 /unicode/strdown 7238s ok 30 /unicode/strup 7238s ok - glib/unicode.test 7238s ok 31 /unicode/turkish-strupdown 7238s ok 32 /unicode/title 7238s ok 33 /unicode/upper 7238s ok 34 /unicode/validate 7238s ok 35 /unicode/wide 7238s ok 36 /unicode/xdigit 7238s ok 37 /unicode/xdigit-value 7238s ok 38 /unicode/zero-width 7238s ok 39 /unicode/normalize 7238s # End of unicode tests 7238s # Running test: glib/dir.test 7238s TAP version 14 7238s # random seed: R02Sab7c368d691e52ba7d960d684f235df6 7238s 1..3 7238s # Start of dir tests 7238s ok 1 /dir/read 7238s ok 2 /dir/nonexisting 7238s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 7238s ok 3 /dir/refcounting 7238s # End of dir tests 7238s ok - glib/dir.test 7238s # Running test: glib/gi-inspect-typelib.py.test 7239s # Executing: glib/gi-inspect-typelib.py.test 7241s TAP version 13 7241s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 7241s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7241s # tmpdir: /tmp/tmpm_7q1vk3 7241s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 7241s # Return code: 0 7241s # Output: 7241s # Usage: 7241s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 7241s # 7241s # Help Options: 7241s # -h, --help Show help options 7241s # 7241s # Application Options: 7241s # --typelib-version=VERSION Typelib version to inspect 7241s # --print-shlibs List the shared libraries the typelib requires 7241s # --print-typelibs List other typelibs the inspected typelib requires 7241s # Error: 7241s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 7241s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7241s # tmpdir: /tmp/tmp56a30bfl 7241s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 7241s # Return code: 1 7241s # Output: 7241s # 7241s # Error: 7241s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 7241s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 7241s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7241s # tmpdir: /tmp/tmpqrtmeys8 7241s # Running: ['/usr/bin/gi-inspect-typelib'] 7241s # Return code: 1 7241s # Output: 7241s # 7241s # Error: 7241s # Please specify exactly one namespace 7241s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 7241s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7241s # tmpdir: /tmp/tmpb7eggm3o 7241s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 7241s # Return code: 0 7241s # Output: 7241s # shlib: libgobject-2.0.so.0 7241s # shlib: libglib-2.0.so.0 7241s # Error: 7242s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 7242s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7242s # tmpdir: /tmp/tmphon5ksa3 7242s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 7242s # Return code: 0 7242s # Output: 7242s # 7242s # Error: 7242s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 7242s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7242s # tmpdir: /tmp/tmpae8br7l_ 7242s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 7242s # Return code: 0 7242s # Output: 7242s # shlib: libgobject-2.0.so.0 7242s # shlib: libglib-2.0.so.0 7242s # Error: 7242s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 7242s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7242s # tmpdir: /tmp/tmpclmt0ttk 7242s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 7242s # Return code: 0 7242s # Output: 7242s # shlib: libgobject-2.0.so.0 7242s # Error: 7242s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 7242s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7242s # tmpdir: /tmp/tmpdst5xccp 7242s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 7242s # Return code: 0 7242s # Output: 7242s # typelib: GLib-2.0 7242s # Error: 7242s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 7242s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7242s # tmpdir: /tmp/tmprhvj4u9s 7242s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 7242s # Return code: 0 7242s # Output: 7242s # shlib: libgobject-2.0.so.0 7242s # typelib: GLib-2.0 7242s # Error: 7243s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 7243s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7243s # tmpdir: /tmp/tmpcobgb3js 7243s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 7243s # Return code: 0 7243s # Output: 7243s # shlib: libgio-2.0.so.0 7243s # Error: 7243s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 7243s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7243s # tmpdir: /tmp/tmpdtnhoqih 7243s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 7243s # Return code: 0 7243s # Output: 7243s # typelib: GObject-2.0 7243s # typelib: GLib-2.0 7243s # typelib: GModule-2.0 7243s # Error: 7243s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 7243s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 7243s # tmpdir: /tmp/tmpp3h6er55 7243s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 7243s # Return code: 0 7243s # Output: 7243s # shlib: libgio-2.0.so.0 7243s # typelib: GObject-2.0 7243s # typelib: GLib-2.0 7243s # typelib: GModule-2.0 7243s # Error: 7243s 1..12 7243s ok - glib/gi-inspect-typelib.py.test 7243s # Running test: glib/io-channel-basic.test 7243s TAP version 14 7243s # random seed: R02S3d5768bc1d231ddfb406d91dde62ae3c 7243s 1..1 7243s # Start of gio tests 7243s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 7243s # random seed: R02Sf33ef5c56d9251ed625320501fd0d600 7244s # GLib-DEBUG: io-channel-basic: child writing 8+672 bytes to 6 7244s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7244s # GLib-DEBUG: io-channel-basic: ...from 5: 672 bytes 7244s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7244s # GLib-DEBUG: io-channel-basic: child writing 8+3987 bytes to 6 7244s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7244s # GLib-DEBUG: io-channel-basic: ...from 5: 3987 bytes 7244s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7244s # Executing: glib/io-channel-basic.test 7244s # GLib-DEBUG: io-channel-basic: child writing 8+1416 bytes to 6 7244s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7244s # GLib-DEBUG: io-channel-basic: ...from 5: 1416 bytes 7244s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7245s # GLib-DEBUG: io-channel-basic: child writing 8+82 bytes to 6 7245s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7245s # GLib-DEBUG: io-channel-basic: ...from 5: 82 bytes 7245s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7245s # GLib-DEBUG: io-channel-basic: child writing 8+3483 bytes to 6 7245s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7245s # GLib-DEBUG: io-channel-basic: ...from 5: 3483 bytes 7245s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7245s # GLib-DEBUG: io-channel-basic: child writing 8+2185 bytes to 6 7245s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7245s # GLib-DEBUG: io-channel-basic: ...from 5: 2185 bytes 7245s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7245s # GLib-DEBUG: io-channel-basic: child writing 8+3024 bytes to 6 7245s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7245s # GLib-DEBUG: io-channel-basic: ...from 5: 3024 bytes 7245s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7246s # GLib-DEBUG: io-channel-basic: child writing 8+3620 bytes to 6 7246s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7246s # GLib-DEBUG: io-channel-basic: ...from 5: 3620 bytes 7246s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7246s # GLib-DEBUG: io-channel-basic: child writing 8+1752 bytes to 6 7246s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7246s # GLib-DEBUG: io-channel-basic: ...from 5: 1752 bytes 7246s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7246s # GLib-DEBUG: io-channel-basic: child writing 8+27 bytes to 6 7246s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7246s # GLib-DEBUG: io-channel-basic: ...from 5: 27 bytes 7246s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7246s # GLib-DEBUG: io-channel-basic: child writing 8+1736 bytes to 6 7246s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7246s # GLib-DEBUG: io-channel-basic: ...from 5: 1736 bytes 7246s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7247s # GLib-DEBUG: io-channel-basic: child writing 8+2319 bytes to 6 7247s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7247s # GLib-DEBUG: io-channel-basic: ...from 5: 2319 bytes 7247s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7247s # GLib-DEBUG: io-channel-basic: child writing 8+4746 bytes to 6 7247s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7247s # GLib-DEBUG: io-channel-basic: ...from 5: 4746 bytes 7247s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7247s # GLib-DEBUG: io-channel-basic: child writing 8+1895 bytes to 6 7247s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7247s # GLib-DEBUG: io-channel-basic: ...from 5: 1895 bytes 7247s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7248s # GLib-DEBUG: io-channel-basic: child writing 8+4093 bytes to 6 7248s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7248s # GLib-DEBUG: io-channel-basic: ...from 5: 4093 bytes 7248s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7248s # GLib-DEBUG: io-channel-basic: child writing 8+896 bytes to 6 7248s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7248s # GLib-DEBUG: io-channel-basic: ...from 5: 896 bytes 7248s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7248s # GLib-DEBUG: io-channel-basic: child writing 8+4377 bytes to 6 7248s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7248s # GLib-DEBUG: io-channel-basic: ...from 5: 4377 bytes 7248s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7249s # GLib-DEBUG: io-channel-basic: child writing 8+76 bytes to 6 7249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7249s # GLib-DEBUG: io-channel-basic: ...from 5: 76 bytes 7249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7249s # GLib-DEBUG: io-channel-basic: child writing 8+1173 bytes to 6 7249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7249s # GLib-DEBUG: io-channel-basic: ...from 5: 1173 bytes 7249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7249s # GLib-DEBUG: io-channel-basic: child writing 8+80 bytes to 6 7249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7249s # GLib-DEBUG: io-channel-basic: ...from 5: 80 bytes 7249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7249s # GLib-DEBUG: io-channel-basic: child writing 8+4801 bytes to 6 7249s # GLib-DEBUG: io-channel-basic: ...from 5: IN 7249s # GLib-DEBUG: io-channel-basic: ...from 5: 4801 bytes 7249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7249s # Executing: glib/io-channel-basic.test 7249s # GLib-DEBUG: io-channel-basic: child writing 8+2209 bytes to 6 7249s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 7249s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 7249s # GLib-DEBUG: io-channel-basic: ...from 5: 2209 bytes 7249s # GLib-DEBUG: io-channel-basic: ...from 5: OK 7250s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 7250s # random seed: R02S844f1378be5d79c6ad645008ccdda2da 7250s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 7250s # random seed: R02S6a700dd2f4a727b031fa7fd7ed11c2aa 7250s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 7250s # random seed: R02S7da409bbb44dd3098482e132fe673c34 7250s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 7250s # random seed: R02Sfe0b29c72b43ebc54a3d1a3d298ad1e0 7250s # GLib-DEBUG: io-channel-basic: child writing 8+4522 bytes to 9 7250s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 8: 4522 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7250s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 7250s # random seed: R02Sed03db536623134b400be7b2cec2d204 7250s # GLib-DEBUG: io-channel-basic: child writing 8+4282 bytes to 11 7250s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 10: 4282 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+2001 bytes to 13 7250s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 12: 2001 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+1878 bytes to 15 7250s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 14: 1878 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+1397 bytes to 9 7250s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 8: 1397 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+520 bytes to 17 7250s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 16: 520 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+1461 bytes to 11 7250s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 10: 1461 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+3007 bytes to 13 7250s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 12: 3007 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+4815 bytes to 15 7250s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 14: 4815 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+328 bytes to 9 7250s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 8: 328 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+4149 bytes to 17 7250s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 16: 4149 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7250s # GLib-DEBUG: io-channel-basic: child writing 8+3383 bytes to 11 7250s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7250s # GLib-DEBUG: io-channel-basic: ...from 10: 3383 bytes 7250s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+2916 bytes to 13 7251s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 12: 2916 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+3462 bytes to 15 7251s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 14: 3462 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+4436 bytes to 9 7251s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 8: 4436 bytes 7251s # GLib-DEBUG: io-channel-basic: child writing 8+4301 bytes to 17 7251s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7251s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 16: 4301 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+4500 bytes to 11 7251s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 10: 4500 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+2803 bytes to 13 7251s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 12: 2803 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+1839 bytes to 15 7251s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 14: 1839 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+4841 bytes to 9 7251s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 8: 4841 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+2723 bytes to 17 7251s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 16: 2723 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+2054 bytes to 11 7251s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 10: 2054 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+4078 bytes to 13 7251s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 12: 4078 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+1292 bytes to 15 7251s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 14: 1292 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+1631 bytes to 9 7251s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 8: 1631 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+1903 bytes to 17 7251s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 16: 1903 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+1032 bytes to 11 7251s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 10: 1032 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+1887 bytes to 13 7251s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 12: 1887 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+3444 bytes to 15 7251s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 14: 3444 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+1324 bytes to 9 7251s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 8: 1324 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+2470 bytes to 17 7251s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 16: 2470 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7251s # GLib-DEBUG: io-channel-basic: child writing 8+4547 bytes to 11 7251s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7251s # GLib-DEBUG: io-channel-basic: ...from 10: 4547 bytes 7251s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+1010 bytes to 13 7252s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 12: 1010 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+2321 bytes to 15 7252s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 14: 2321 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+4327 bytes to 9 7252s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 8: 4327 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+4723 bytes to 17 7252s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 16: 4723 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+1096 bytes to 11 7252s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 10: 1096 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+458 bytes to 13 7252s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 12: 458 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+2263 bytes to 15 7252s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 14: 2263 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+3316 bytes to 9 7252s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 8: 3316 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+1392 bytes to 11 7252s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 10: 1392 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+1383 bytes to 17 7252s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 16: 1383 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+1981 bytes to 13 7252s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 12: 1981 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+2390 bytes to 15 7252s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 14: 2390 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+538 bytes to 9 7252s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 8: 538 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+1788 bytes to 11 7252s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 10: 1788 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+2298 bytes to 17 7252s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 16: 2298 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+3721 bytes to 13 7252s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 12: 3721 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+2189 bytes to 15 7252s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 14: 2189 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7252s # GLib-DEBUG: io-channel-basic: child writing 8+2513 bytes to 9 7252s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7252s # GLib-DEBUG: io-channel-basic: ...from 8: 2513 bytes 7252s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+1365 bytes to 11 7253s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 10: 1365 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+4500 bytes to 17 7253s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 16: 4500 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+1140 bytes to 13 7253s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 12: 1140 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+633 bytes to 15 7253s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 14: 633 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+2792 bytes to 9 7253s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 8: 2792 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+2499 bytes to 11 7253s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 10: 2499 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+1086 bytes to 17 7253s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 16: 1086 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+2330 bytes to 13 7253s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 12: 2330 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+58 bytes to 15 7253s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 14: 58 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+3776 bytes to 9 7253s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 8: 3776 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+3382 bytes to 11 7253s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 10: 3382 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+1012 bytes to 17 7253s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 16: 1012 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+172 bytes to 13 7253s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 12: 172 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+342 bytes to 15 7253s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 14: 342 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+4757 bytes to 9 7253s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 8: 4757 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+4697 bytes to 11 7253s # GLib-DEBUG: io-channel-basic: child writing 8+3609 bytes to 17 7253s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 10: 4697 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7253s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 16: 3609 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+4754 bytes to 13 7253s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 12: 4754 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7253s # GLib-DEBUG: io-channel-basic: child writing 8+2037 bytes to 15 7253s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7253s # GLib-DEBUG: io-channel-basic: ...from 14: 2037 bytes 7253s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+201 bytes to 9 7254s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 8: 201 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+1246 bytes to 17 7254s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 16: 1246 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+2853 bytes to 11 7254s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 10: 2853 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+4651 bytes to 13 7254s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 12: 4651 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+1463 bytes to 15 7254s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 14: 1463 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+4749 bytes to 9 7254s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 8: 4749 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+422 bytes to 17 7254s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 16: 422 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+4757 bytes to 11 7254s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 10: 4757 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+3938 bytes to 13 7254s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 12: 3938 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+1597 bytes to 15 7254s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 14: 1597 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+2632 bytes to 9 7254s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 8: 2632 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+4242 bytes to 17 7254s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 16: 4242 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+895 bytes to 11 7254s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 10: 895 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+4031 bytes to 13 7254s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 12: 4031 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7254s # Executing: glib/io-channel-basic.test 7254s # GLib-DEBUG: io-channel-basic: child writing 8+3550 bytes to 15 7254s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 14: 3550 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+1354 bytes to 9 7254s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 8: 1354 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+4610 bytes to 11 7254s # GLib-DEBUG: io-channel-basic: child writing 8+899 bytes to 17 7254s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 10: 4610 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7254s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 16: 899 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7254s # GLib-DEBUG: io-channel-basic: child writing 8+3918 bytes to 13 7254s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7254s # GLib-DEBUG: io-channel-basic: ...from 12: 3918 bytes 7254s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+1865 bytes to 15 7255s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 14: 1865 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+1938 bytes to 9 7255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 8: 1938 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+2330 bytes to 11 7255s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 10: 2330 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+3698 bytes to 17 7255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 16: 3698 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+2351 bytes to 13 7255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 12: 2351 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+2335 bytes to 15 7255s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 14: 2335 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+3717 bytes to 9 7255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 8: 3717 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+2251 bytes to 11 7255s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 10: 2251 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+439 bytes to 17 7255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 16: 439 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+2082 bytes to 13 7255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 12: 2082 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+766 bytes to 15 7255s # GLib-DEBUG: io-channel-basic: ...from 14: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 14: 766 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+2848 bytes to 9 7255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 8: 2848 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+660 bytes to 17 7255s # GLib-DEBUG: io-channel-basic: child writing 8+737 bytes to 11 7255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 16: 660 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7255s # GLib-DEBUG: io-channel-basic: ...from 10: IN 7255s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 7255s # GLib-DEBUG: io-channel-basic: ...from 10: 737 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 10: OK 7255s # GLib-DEBUG: io-channel-basic: ...from 10: HUP 7255s # GLib-DEBUG: io-channel-basic: child writing 8+3835 bytes to 13 7255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 12: 3835 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+562 bytes to 15 7255s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 7255s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 7255s # GLib-DEBUG: io-channel-basic: ...from 14: 562 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 14: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+426 bytes to 9 7255s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 8: 426 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+1759 bytes to 17 7255s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 16: 1759 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7255s # GLib-DEBUG: io-channel-basic: child writing 8+4458 bytes to 13 7255s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7255s # GLib-DEBUG: io-channel-basic: ...from 12: 4458 bytes 7255s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7256s # GLib-DEBUG: io-channel-basic: child writing 8+3418 bytes to 9 7256s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7256s # GLib-DEBUG: io-channel-basic: ...from 8: 3418 bytes 7256s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7256s # GLib-DEBUG: io-channel-basic: child writing 8+1349 bytes to 17 7256s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7256s # GLib-DEBUG: io-channel-basic: ...from 16: 1349 bytes 7256s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7256s # GLib-DEBUG: io-channel-basic: child writing 8+4264 bytes to 13 7256s # GLib-DEBUG: io-channel-basic: ...from 12: IN 7256s # GLib-DEBUG: io-channel-basic: ...from 12: 4264 bytes 7256s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7256s # GLib-DEBUG: io-channel-basic: child writing 8+4710 bytes to 9 7256s # GLib-DEBUG: io-channel-basic: ...from 8: IN 7256s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 7256s # GLib-DEBUG: io-channel-basic: ...from 8: 4710 bytes 7256s # GLib-DEBUG: io-channel-basic: ...from 8: OK 7256s # GLib-DEBUG: io-channel-basic: ...from 8: HUP 7256s # GLib-DEBUG: io-channel-basic: child writing 8+2762 bytes to 17 7256s # GLib-DEBUG: io-channel-basic: ...from 16: IN 7256s # GLib-DEBUG: io-channel-basic: ...from 16: 2762 bytes 7256s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7256s # GLib-DEBUG: io-channel-basic: child writing 8+4512 bytes to 13 7256s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 7256s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 7256s # GLib-DEBUG: io-channel-basic: ...from 12: 4512 bytes 7256s # GLib-DEBUG: io-channel-basic: ...from 12: OK 7256s # GLib-DEBUG: io-channel-basic: child writing 8+4543 bytes to 17 7256s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 7256s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 7256s # GLib-DEBUG: io-channel-basic: ...from 16: 4543 bytes 7256s # GLib-DEBUG: io-channel-basic: ...from 16: OK 7256s ok 1 /gio/io-basics 7256s # slow test /gio/io-basics executed in 12.91 secs 7256s # End of gio tests 7256s ok - glib/io-channel-basic.test 7256s # Running test: glib/overflow-fallback.test 7256s TAP version 14 7256s # random seed: R02Sc97b7c90b2901e3774a5b05d1c3c3166 7256s 1..6 7256s # Start of glib tests 7256s # Start of checked-math tests 7257s ok 1 /glib/checked-math/guint-add 7257s ok 2 /glib/checked-math/guint-mul 7257s ok 3 /glib/checked-math/guint64-add 7257s ok 4 /glib/checked-math/guint64-mul 7257s ok 5 /glib/checked-math/gsize-add 7257s ok 6 /glib/checked-math/gsize-mul 7257s # End of checked-math tests 7257s # End of glib tests 7257s ok - glib/overflow-fallback.test 7257s # Running test: glib/gi-compile-repository.py.test 7259s # Executing: glib/gi-compile-repository.py.test 7260s TAP version 13 7260s ok 1 __main__.TestGICompileRepository.test_open_failure 7260s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 7260s # gi-compile-repository: /usr/bin/gi-compile-repository 7260s # tmpdir: /tmp/tmpdme52bfe 7260s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpdme52bfe/invalid.typelib'] 7260s # Return code: 1 7260s # Output: 7260s # 7260s # Error: 7260s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.girâ€: No such file or directory 7264s # Executing: glib/gi-compile-repository.py.test 7265s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 7265s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 7265s # gi-compile-repository: /usr/bin/gi-compile-repository 7265s # tmpdir: /tmp/tmp49tro5x_ 7265s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmp49tro5x_/GLib-2.typelib'] 7265s # Return code: 0 7265s # Output: 7265s # 7265s # Error: 7269s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 7269s # gi-compile-repository: /usr/bin/gi-compile-repository 7269s # tmpdir: /tmp/tmp_8eftmf7 7269s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 7269s # Return code: 1 7269s # Output: 7269s # 7269s # Error: 7269s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 7269s # Executing: glib/gi-compile-repository.py.test 7274s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 7274s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 7274s # gi-compile-repository: /usr/bin/gi-compile-repository 7274s # tmpdir: /tmp/tmp69diizdk 7274s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmp69diizdk/GObject-2.typelib', '--includedir', '/usr/lib/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 7274s # Return code: 0 7274s # Output: 7274s # 7274s # Error: 7274s # Executing: glib/gi-compile-repository.py.test 7279s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 7279s # gi-compile-repository: /usr/bin/gi-compile-repository 7279s # tmpdir: /tmp/tmpd_o_gf4f 7279s # 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/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 7279s # Return code: 1 7279s # Output: 7279s # 7279s # Error: 7279s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 7279s # Executing: glib/gi-compile-repository.py.test 7284s # Executing: glib/gi-compile-repository.py.test 7289s # Executing: glib/gi-compile-repository.py.test 7289s not ok 6 __main__.TestGICompileRepositoryForGio.test_compile 7289s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 7289s # gi-compile-repository: /usr/bin/gi-compile-repository 7289s # tmpdir: /tmp/tmpyt1ylgtl 7289s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmpyt1ylgtl/Gio-2.typelib', '--includedir', '/usr/lib/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 7289s --- 7289s message: | 7289s Traceback (most recent call last): 7289s File "/usr/libexec/installed-tests/glib/gi-compile-repository.py", line 98, in test_compile 7289s result = self.runTestProgram(argv) 7289s File "/usr/libexec/installed-tests/glib/gi-compile-repository.py", line 81, in runTestProgram 7289s return super().runTestProgram(argv, **kwargs) 7289s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 7289s File "/usr/libexec/installed-tests/glib/testprogramrunner.py", line 127, in runTestProgram 7289s info = subprocess.run( 7289s argv, 7289s ...<7 lines>... 7289s check=False, 7289s ) 7289s File "/usr/lib/python3.13/subprocess.py", line 556, in run 7289s stdout, stderr = process.communicate(input, timeout=timeout) 7289s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 7289s File "/usr/lib/python3.13/subprocess.py", line 1222, in communicate 7289s stdout, stderr = self._communicate(input, endtime, timeout) 7289s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 7289s File "/usr/lib/python3.13/subprocess.py", line 2126, in _communicate 7289s self._check_timeout(endtime, orig_timeout, stdout, stderr) 7289s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7289s File "/usr/lib/python3.13/subprocess.py", line 1266, in _check_timeout 7289s raise TimeoutExpired( 7289s ...<2 lines>... 7289s stderr=b''.join(stderr_seq) if stderr_seq else None) 7289s subprocess.TimeoutExpired: Command '['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmpyt1ylgtl/Gio-2.typelib', '--includedir', '/usr/lib/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0']' timed out after 10 seconds 7289s ... 7294s # Executing: glib/gi-compile-repository.py.test 7299s # Executing: glib/gi-compile-repository.py.test 7300s not ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 7300s # gi-compile-repository: /usr/bin/gi-compile-repository 7300s # tmpdir: /tmp/tmpiqv405yo 7300s # 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/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 7300s --- 7300s message: | 7300s Traceback (most recent call last): 7300s File "/usr/libexec/installed-tests/glib/gi-compile-repository.py", line 85, in test_write_failure 7300s result = self.runTestProgram( 7300s ["--output", typelib_path], 7300s should_fail=True, 7300s ) 7300s File "/usr/libexec/installed-tests/glib/gi-compile-repository.py", line 81, in runTestProgram 7300s return super().runTestProgram(argv, **kwargs) 7300s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 7300s File "/usr/libexec/installed-tests/glib/testprogramrunner.py", line 127, in runTestProgram 7300s info = subprocess.run( 7300s argv, 7300s ...<7 lines>... 7300s check=False, 7300s ) 7300s File "/usr/lib/python3.13/subprocess.py", line 556, in run 7300s stdout, stderr = process.communicate(input, timeout=timeout) 7300s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 7300s File "/usr/lib/python3.13/subprocess.py", line 1222, in communicate 7300s stdout, stderr = self._communicate(input, endtime, timeout) 7300s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 7300s File "/usr/lib/python3.13/subprocess.py", line 2126, in _communicate 7300s self._check_timeout(endtime, orig_timeout, stdout, stderr) 7300s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7300s File "/usr/lib/python3.13/subprocess.py", line 1266, in _check_timeout 7300s raise TimeoutExpired( 7300s ...<2 lines>... 7300s stderr=b''.join(stderr_seq) if stderr_seq else None) 7300s subprocess.TimeoutExpired: Command '['/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/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0']' timed out after 10 seconds 7300s ... 7300s 1..7 7300s # FAIL: glib/gi-compile-repository.py.test (Child process exited with code 1) 7300s not ok - glib/gi-compile-repository.py.test 7300s # Running test: glib/registered-type-info.test 7300s TAP version 14 7300s # random seed: R02S6dc7c7d8894923a9a0130d48bfdeba6c 7300s 1..1 7300s # Start of registered-type-info tests 7300s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/home 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/cache 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/system-config2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/config 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/system-data2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/data 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/state 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_DZYV52/registered-type-info/boxed/.dirs/runtime 7300s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7300s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 7300s # Expecting CClosure to not be boxed 7300s # Expecting TypeCValue to not be boxed 7300s # Expecting InitiallyUnownedClass to not be boxed 7300s # Expecting BookmarkFile to be boxed 7300s # Expecting Closure to be boxed 7300s # Expecting Object to not be boxed 7300s ok 1 /registered-type-info/boxed 7300s # End of registered-type-info tests 7300s ok - glib/registered-type-info.test 7300s # Running test: glib/file-thumbnail.test 7300s TAP version 14 7300s # random seed: R02S45c65bff0db2ea2ef23303d65eb405b2 7300s 1..7 7300s # Start of file-thumbnail tests 7300s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/home 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/cache 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/system-config2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/config 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/system-data2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/data 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/state 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/runtime 7300s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 7300s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 7300s ok 1 /file-thumbnail/fail 7300s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/home 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/cache 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/system-config2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/config 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/system-data2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/data 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/state 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/runtime 7300s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 7300s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 7300s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 7300s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 7300s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 7300s ok 2 /file-thumbnail/size-priority 7300s # Start of valid tests 7300s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/home 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/cache 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/system-config2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/config 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/system-data2 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/data 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/state 7300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/runtime 7300s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 7301s ok 3 /file-thumbnail/valid/normal 7301s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/home 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/cache 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/system-config2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/config 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/system-data2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/data 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/state 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/runtime 7301s ok - glib/file-thumbnail.test 7301s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 7301s ok 4 /file-thumbnail/valid/large 7301s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/home 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/cache 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/system-config2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/config 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/system-data2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/data 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/state 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/runtime 7301s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 7301s ok 5 /file-thumbnail/valid/x-large 7301s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/home 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/cache 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/system-config2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/config 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/system-data2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/data 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/state 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/runtime 7301s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 7301s ok 6 /file-thumbnail/valid/xx-large 7301s # End of valid tests 7301s # Start of unknown tests 7301s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/home 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/cache 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/system-config2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/config 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/system-data2 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/data 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/state 7301s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/runtime 7301s # Created test thumbnail at /tmp/test_file-thumbnail_846952/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 7301s ok 7 /file-thumbnail/unknown/super-large 7301s # End of unknown tests 7301s # End of file-thumbnail tests 7301s # Running test: glib/atomic-c-11.test 7301s TAP version 14 7301s # random seed: R02S1e1c53beadc2ef145dac69ef61f2f97e 7301s 1..2 7301s # Start of atomic tests 7301s ok 1 /atomic/types 7302s ok 2 /atomic/threaded 7302s # slow test /atomic/threaded executed in 1.10 secs 7302s # End of atomic tests 7302s ok - glib/atomic-c-11.test 7302s # Running test: glib/mapping.test 7302s TAP version 14 7302s # random seed: R02S396deb99cd25fa03b4ca0ba6d79a5227 7302s 1..3 7302s # Start of mapping tests 7302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_N3G752/mapping/flags/.dirs/home 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_N3G752/mapping/flags/.dirs/cache 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_N3G752/mapping/flags/.dirs/system-config1:/tmp/test_mapping_N3G752/mapping/flags/.dirs/system-config2 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_N3G752/mapping/flags/.dirs/config 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_N3G752/mapping/flags/.dirs/system-data1:/tmp/test_mapping_N3G752/mapping/flags/.dirs/system-data2 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_N3G752/mapping/flags/.dirs/data 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_N3G752/mapping/flags/.dirs/state 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_N3G752/mapping/flags/.dirs/runtime 7302s # test_mapping: ok 7302s ok 1 /mapping/flags 7302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_N3G752/mapping/private/.dirs/home 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_N3G752/mapping/private/.dirs/cache 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_N3G752/mapping/private/.dirs/system-config1:/tmp/test_mapping_N3G752/mapping/private/.dirs/system-config2 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_N3G752/mapping/private/.dirs/config 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_N3G752/mapping/private/.dirs/system-data1:/tmp/test_mapping_N3G752/mapping/private/.dirs/system-data2 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_N3G752/mapping/private/.dirs/data 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_N3G752/mapping/private/.dirs/state 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_N3G752/mapping/private/.dirs/runtime 7302s ok 2 /mapping/private 7302s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/home 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/cache 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_N3G752/mapping/private-child/.dirs/system-config2 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/config 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_N3G752/mapping/private-child/.dirs/system-data2 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/data 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/state 7302s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_N3G752/mapping/private-child/.dirs/runtime 7302s # test_child_private: child spawned 7302s # Subtest: /usr/libexec/installed-tests/glib/mapping 7302s # random seed: R02S18e4c6990242c928e1a6e509f1e7315e 7302s # test_child_private: received first child signal 7302s # test_child_private: received parent signal 7302s # Child exited with status 0 7302s # test_child_private: received second child signal 7302s ok 3 /mapping/private-child 7302s # End of mapping tests 7302s ok - glib/mapping.test 7302s # Running test: glib/union-info.test 7303s TAP version 14 7303s # random seed: R02S4982fd311f6502b754f7c2a17aef009a 7303s 1..2 7303s # Start of union-info tests 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/system-config1:/tmp/test_union-info_5YJX52/union-info/basic/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/system-data1:/tmp/test_union-info_5YJX52/union-info/basic/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_5YJX52/union-info/basic/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s # /union-info/basic summary: Test basic properties of GIUnionInfo 7303s ok 1 /union-info/basic 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/system-config1:/tmp/test_union-info_5YJX52/union-info/methods/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/system-data1:/tmp/test_union-info_5YJX52/union-info/methods/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_5YJX52/union-info/methods/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 7303s ok 2 /union-info/methods 7303s # End of union-info tests 7303s ok - glib/union-info.test 7303s # Running test: glib/autoptr-girepository.test 7303s TAP version 14 7303s # random seed: R02Sb7bde08b4f4e6fcca88bfa525f8a5d22 7303s 1..24 7303s # Start of autoptr tests 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/repository/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 1 /autoptr/repository 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/typelib/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 2 /autoptr/typelib 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/base-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 3 /autoptr/base-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/arg-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 4 /autoptr/arg-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/callable-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 5 /autoptr/callable-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/callback-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 6 /autoptr/callback-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/constant-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 7 /autoptr/constant-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/enum-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 8 /autoptr/enum-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/field-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 9 /autoptr/field-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/flags-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 10 /autoptr/flags-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/function-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 11 /autoptr/function-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/interface-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 12 /autoptr/interface-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/object-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 13 /autoptr/object-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/property-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 14 /autoptr/property-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/registered-type-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 15 /autoptr/registered-type-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/signal-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 16 /autoptr/signal-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/struct-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 17 /autoptr/struct-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/type-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 18 /autoptr/type-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/union-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 19 /autoptr/union-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/value-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 20 /autoptr/value-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/autoptr/vfunc-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 21 /autoptr/vfunc-info 7303s # End of autoptr tests 7303s # Start of auto tests 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/auto/arg-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 22 /auto/arg-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/auto/type-info/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 23 /auto/type-info 7303s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/home 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/cache 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/system-config2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/config 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/system-data2 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/data 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/state 7303s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_KRV852/auto/function-invoker/.dirs/runtime 7303s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7303s ok 24 /auto/function-invoker 7303s # End of auto tests 7303s ok - glib/autoptr-girepository.test 7304s # Running test: glib/cxx-2b.test 7304s TAP version 14 7304s # random seed: R02S2f00af9153eae592715c206cfeb49ab2 7304s 1..2 7304s # Start of gtask tests 7304s # 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. 7304s ok 1 /gtask/name 7304s # Start of name tests 7304s # 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. 7304s ok 2 /gtask/name/macro-wrapper 7304s # End of name tests 7304s # End of gtask tests 7304s ok - glib/cxx-2b.test 7304s # Running test: glib/gdatetime.test 7304s TAP version 14 7304s # random seed: R02S8b5612d2ba5b5c7fe86a4aa924dd2d0e 7304s 1..68 7304s # Start of GDateTime tests 7304s # Bug Reference: http://bugzilla.gnome.org/702674 7304s ok 1 /GDateTime/invalid 7304s ok 2 /GDateTime/add_days 7304s ok 3 /GDateTime/add_full 7304s ok 4 /GDateTime/add_hours 7304s ok 5 /GDateTime/add_minutes 7304s ok 6 /GDateTime/add_months 7304s ok 7 /GDateTime/add_seconds 7304s ok 8 /GDateTime/add_weeks 7304s ok 9 /GDateTime/add_years 7304s ok 10 /GDateTime/compare 7304s ok 11 /GDateTime/diff 7304s ok 12 /GDateTime/equal 7304s ok 13 /GDateTime/get_day_of_week 7304s ok 14 /GDateTime/get_day_of_month 7304s ok 15 /GDateTime/get_day_of_year 7304s ok 16 /GDateTime/get_hour 7304s ok 17 /GDateTime/get_microsecond 7304s ok 18 /GDateTime/get_minute 7304s ok 19 /GDateTime/get_month 7304s ok 20 /GDateTime/get_second 7304s ok 21 /GDateTime/get_utc_offset 7304s ok 22 /GDateTime/get_year 7304s ok 23 /GDateTime/hash 7304s ok 24 /GDateTime/new_from_unix 7304s ok 25 /GDateTime/new_from_unix_utc 7304s ok 26 /GDateTime/new_from_timeval 7304s ok 27 /GDateTime/new_from_timeval_utc 7304s ok 28 /GDateTime/new_from_iso8601 7304s ok 29 /GDateTime/new_full 7304s ok 30 /GDateTime/now 7304s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 7304s ok 31 /GDateTime/test-6-days-until-end-of-the-month 7304s # %a -> expected: Sat 7304s # %a -> actual: Sat 7304s # %A -> expected: Saturday 7304s # %A -> actual: Saturday 7304s # %b -> expected: Oct 7304s # %b -> actual: Oct 7304s # %B -> expected: October 7304s # %B -> actual: October 7304s # %d -> expected: 24 7304s # %d -> actual: 24 7304s # %d -> expected: 01 7304s # %d -> actual: 01 7304s # %e -> expected: 24 7304s # %e -> actual: 24 7304s # %e -> expected:  1 7304s # %e -> actual:  1 7304s # %f -> expected: 001000 7304s # %f -> actual: 001000 7304s # %h -> expected: Oct 7304s # %h -> actual: Oct 7304s # %H -> expected: 00 7304s # %H -> actual: 00 7304s # %H -> expected: 15 7304s # %H -> actual: 15 7304s # %I -> expected: 12 7304s # %I -> actual: 12 7304s # %I -> expected: 12 7304s # %I -> actual: 12 7304s # %I -> expected: 03 7304s # %I -> actual: 03 7304s # %j -> expected: 297 7304s # %j -> actual: 297 7304s # %k -> expected:  0 7304s # %k -> actual:  0 7304s # %k -> expected: 13 7304s # %k -> actual: 13 7304s # %l -> expected: 12 7304s # %l -> actual: 12 7304s # %I -> expected: 12 7304s # %I -> actual: 12 7304s # %l -> expected:  1 7304s # %l -> actual:  1 7304s # %l -> expected: 10 7304s # %l -> actual: 10 7304s # %m -> expected: 10 7304s # %m -> actual: 10 7304s # %M -> expected: 00 7304s # %M -> actual: 00 7304s # %p -> expected: AM 7304s # %p -> actual: AM 7304s # %p -> expected: PM 7304s # %p -> actual: PM 7304s # %P -> expected: am 7304s # %P -> actual: am 7304s # %P -> expected: pm 7304s # %P -> actual: pm 7304s # %r -> expected: 12:00:00 AM 7304s # %r -> actual: 12:00:00 AM 7304s # %r -> expected: 01:13:13 PM 7304s # %r -> actual: 01:13:13 PM 7304s # %R -> expected: 00:00 7304s # %R -> actual: 00:00 7304s # %R -> expected: 13:13 7304s # %R -> actual: 13:13 7304s # %S -> expected: 00 7304s # %S -> actual: 00 7304s # %t -> expected: 7304s # %t -> actual: 7304s # %u -> expected: 6 7304s # %u -> actual: 6 7304s # %x -> expected: 10/24/09 7304s # %x -> actual: 10/24/09 7304s # %X -> expected: 00:00:00 7304s # %X -> actual: 00:00:00 7304s # %X -> expected: 13:14:15 7304s # %X -> actual: 13:14:15 7304s # %y -> expected: 09 7304s # %y -> actual: 09 7304s # %Y -> expected: 2009 7304s # %Y -> actual: 2009 7304s # %% -> expected: % 7304s # %% -> actual: % 7304s # % -> expected: 7304s # % -> actual: 7304s # %9 -> expected: (null) 7304s # %9 -> actual: (null) 7304s # %Z -> expected: UTC 7304s # %Z -> actual: UTC 7304s # %#Z %Z -> expected: utc UTC 7304s # %#Z %Z -> actual: utc UTC 7304s ok 32 /GDateTime/printf 7304s # %a -> expected: ÅÚ 7304s # Executing: glib/gdatetime.test 7304s # %a -> actual: ÅÚ 7304s # %A -> expected: ÅÚÍËÆü 7304s # %A -> actual: ÅÚÍËÆü 7304s # %b -> expected: 10·î 7304s # %b -> actual: 10·î 7304s # %B -> expected: 10·î 7304s # %B -> actual: 10·î 7304s # %c -> expected: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 7304s # %c -> actual: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 7304s # %C -> expected: 20 7304s # %C -> actual: 20 7304s # %d -> expected: 24 7304s # %d -> actual: 24 7304s # %d -> expected: 01 7304s # %d -> actual: 01 7304s # %e -> expected: 24 7304s # %e -> actual: 24 7304s # %h -> expected: 10·î 7304s # %h -> actual: 10·î 7304s # %H -> expected: 00 7304s # %H -> actual: 00 7304s # %H -> expected: 15 7304s # %H -> actual: 15 7304s # %I -> expected: 12 7304s # %I -> actual: 12 7304s # %I -> expected: 12 7304s # %I -> actual: 12 7304s # %I -> expected: 03 7304s # %I -> actual: 03 7304s # %j -> expected: 297 7304s # %j -> actual: 297 7304s # %k -> expected: ?0 7304s # %k -> actual: ?0 7304s # %k -> expected: 13 7304s # %k -> actual: 13 7304s # %l -> expected: 12 7304s # %l -> actual: 12 7304s # %I -> expected: 12 7304s # %I -> actual: 12 7304s # %l -> expected: ?1 7304s # %l -> actual: ?1 7304s # %l -> expected: 10 7304s # %l -> actual: 10 7304s # %m -> expected: 10 7304s # %m -> actual: 10 7304s # %M -> expected: 00 7304s # %M -> actual: 00 7304s # %p -> expected: ¸áÁ° 7304s # %p -> actual: ¸áÁ° 7304s # %p -> expected: ¸á¸å 7304s # %p -> actual: ¸á¸å 7304s # %P -> expected: ¸áÁ° 7304s # %P -> actual: ¸áÁ° 7304s # %P -> expected: ¸á¸å 7304s # %P -> actual: ¸á¸å 7304s # %r -> expected: ¸áÁ°12»þ00ʬ00Éà 7304s # %r -> actual: ¸áÁ°12»þ00ʬ00Éà 7304s # %r -> expected: ¸á¸å01»þ13ʬ13Éà 7304s # %r -> actual: ¸á¸å01»þ13ʬ13Éà 7304s # %R -> expected: 00:00 7304s # %R -> actual: 00:00 7304s # %R -> expected: 13:13 7304s # %R -> actual: 13:13 7304s # %S -> expected: 00 7304s # %S -> actual: 00 7304s # %t -> expected: 7304s # %t -> actual: 7304s # %u -> expected: 6 7304s # %u -> actual: 6 7304s # %x -> expected: 2009ǯ10·î24Æü 7304s # %x -> actual: 2009ǯ10·î24Æü 7304s # %X -> expected: 00»þ00ʬ00Éà 7304s # %X -> actual: 00»þ00ʬ00Éà 7304s # %X -> expected: 13»þ14ʬ15Éà 7304s # %X -> actual: 13»þ14ʬ15Éà 7304s # %y -> expected: 09 7304s # %y -> actual: 09 7304s # %Y -> expected: 2009 7304s # %Y -> actual: 2009 7304s # %% -> expected: % 7304s # %% -> actual: % 7304s # % -> expected: 7304s # % -> actual: 7304s # %9 -> expected: (null) 7304s # %9 -> actual: (null) 7304s # %Ec -> expected: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 7304s # %Ec -> actual: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 7304s # %EC -> expected: Ê¿À® 7304s # %EC -> actual: Ê¿À® 7304s # %Ex -> expected: Ê¿À®21ǯ10·î24Æü 7304s # %Ex -> actual: Ê¿À®21ǯ10·î24Æü 7304s # %EX -> expected: 00»þ00ʬ00Éà 7304s # %EX -> actual: 00»þ00ʬ00Éà 7304s # %Ey -> expected: 21 7304s # %Ey -> actual: 21 7304s # %EY -> expected: Ê¿À®21ǯ 7304s # %EY -> actual: Ê¿À®21ǯ 7304s ok 33 /GDateTime/non_utf8_printf 7304s # ???? -> expected: ???? 7304s # ???? -> actual: ???? 7304s # %H?%M -> expected: 23?15 7304s # %H?%M -> actual: 23?15 7304s # %H?%M -> expected: 23?15 7304s # %H?%M -> actual: 23?15 7304s ok 34 /GDateTime/format_unrepresentable 7304s ok 35 /GDateTime/format_iso8601 7309s # Executing: glib/gdatetime.test 7310s ok 36 /GDateTime/strftime 7310s # slow test /GDateTime/strftime executed in 5.26 secs 7310s # %d -> expected: 01 7310s # %d -> actual: 01 7310s # %_d -> expected: 1 7310s # %_d -> actual: 1 7310s # %-d -> expected: 1 7310s # %-d -> actual: 1 7310s # %0d -> expected: 01 7310s # %0d -> actual: 01 7310s # %d -> expected: 21 7310s # %d -> actual: 21 7310s # %_d -> expected: 21 7310s # %_d -> actual: 21 7310s # %-d -> expected: 21 7310s # %-d -> actual: 21 7310s # %0d -> expected: 21 7310s # %0d -> actual: 21 7310s # %e -> expected:  1 7310s # %e -> actual:  1 7310s # %_e -> expected: 1 7310s # %_e -> actual: 1 7310s # %-e -> expected: 1 7310s # %-e -> actual: 1 7310s # %0e -> expected: 01 7310s # %0e -> actual: 01 7310s # %e -> expected: 21 7310s # %e -> actual: 21 7310s # %_e -> expected: 21 7310s # %_e -> actual: 21 7310s # %-e -> expected: 21 7310s # %-e -> actual: 21 7310s # %0e -> expected: 21 7310s # %0e -> actual: 21 7310s # %a -> expected: Thu 7310s # %a -> actual: Thu 7310s # %^a -> expected: THU 7310s # %^a -> actual: THU 7310s # %#a -> expected: THU 7310s # %#a -> actual: THU 7310s # %A -> expected: Thursday 7310s # %A -> actual: Thursday 7310s # %^A -> expected: THURSDAY 7310s # %^A -> actual: THURSDAY 7310s # %#A -> expected: THURSDAY 7310s # %#A -> actual: THURSDAY 7310s # %b -> expected: Jan 7310s # %b -> actual: Jan 7310s # %^b -> expected: JAN 7310s # %^b -> actual: JAN 7310s # %#b -> expected: JAN 7310s # %#b -> actual: JAN 7310s # %B -> expected: January 7310s # %B -> actual: January 7310s # %^B -> expected: JANUARY 7310s # %^B -> actual: JANUARY 7310s # %#B -> expected: JANUARY 7310s # %#B -> actual: JANUARY 7310s # %h -> expected: Jan 7310s # %h -> actual: Jan 7310s # %^h -> expected: JAN 7310s # %^h -> actual: JAN 7310s # %#h -> expected: JAN 7310s # %#h -> actual: JAN 7310s # %Z -> expected: UTC 7310s # %Z -> actual: UTC 7310s # %^Z -> expected: UTC 7310s # %^Z -> actual: UTC 7310s # %#Z -> expected: utc 7310s # %#Z -> actual: utc 7310s # %H -> expected: 01 7310s # %H -> actual: 01 7310s # %_H -> expected: 1 7310s # %_H -> actual: 1 7310s # %-H -> expected: 1 7310s # %-H -> actual: 1 7310s # %0H -> expected: 01 7310s # %0H -> actual: 01 7310s # %H -> expected: 21 7310s # %H -> actual: 21 7310s # %_H -> expected: 21 7310s # %_H -> actual: 21 7310s # %-H -> expected: 21 7310s # %-H -> actual: 21 7310s # %0H -> expected: 21 7310s # %0H -> actual: 21 7310s # %I -> expected: 01 7310s # %I -> actual: 01 7310s # %_I -> expected: 1 7310s # %_I -> actual: 1 7310s # %-I -> expected: 1 7310s # %-I -> actual: 1 7310s # %0I -> expected: 01 7310s # %0I -> actual: 01 7310s # %I -> expected: 11 7310s # %I -> actual: 11 7310s # %_I -> expected: 11 7310s # %_I -> actual: 11 7310s # %-I -> expected: 11 7310s # %-I -> actual: 11 7310s # %0I -> expected: 11 7310s # %0I -> actual: 11 7310s # %k -> expected:  1 7310s # %k -> actual:  1 7310s # %_k -> expected: 1 7310s # %_k -> actual: 1 7310s # %-k -> expected: 1 7310s # %-k -> actual: 1 7310s # %0k -> expected: 01 7310s # %0k -> actual: 01 7310s # %l -> expected:  1 7310s # %l -> actual:  1 7310s # %_l -> expected: 1 7310s # %_l -> actual: 1 7310s # %-l -> expected: 1 7310s # %-l -> actual: 1 7310s # %0l -> expected: 01 7310s # %0l -> actual: 01 7310s # %l -> expected: 11 7310s # %l -> actual: 11 7310s # %_l -> expected: 11 7310s # %_l -> actual: 11 7310s # %-l -> expected: 11 7310s # %-l -> actual: 11 7310s # %0l -> expected: 11 7310s # %0l -> actual: 11 7310s # %p -> expected: AM 7310s # %p -> actual: AM 7310s # %^p -> expected: AM 7310s # %^p -> actual: AM 7310s # %#p -> expected: am 7310s # %#p -> actual: am 7310s # %P -> expected: am 7310s # %P -> actual: am 7310s # %^P -> expected: AM 7310s # %^P -> actual: AM 7310s # %#P -> expected: am 7310s # %#P -> actual: am 7310s # %OH -> expected: Û²Û³ 7310s # %OH -> actual: Û²Û³ 7310s # %OI -> expected: Û±Û± 7310s # %OI -> actual: Û±Û± 7310s # %OM -> expected: Û°Û° 7310s # %OM -> actual: Û°Û° 7310s # %Om -> expected: Û°Û· 7310s # %Om -> actual: Û°Û· 7310s # %0Om -> expected: Û°Û· 7310s # %0Om -> actual: Û°Û· 7310s # %-Om -> expected: Û· 7310s # %-Om -> actual: Û· 7310s # %_Om -> expected: Û· 7310s # %_Om -> actual: Û· 7310s # %c -> expected: thu 01 jan 2009 00:00:00 utc 7310s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 7310s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 7310s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 7310s # %C -> expected: 20 7310s # %C -> actual: 20 7310s # %EC -> expected: 20 7310s # %EC -> actual: 20 7310s # %x -> expected: 02/01/09 7310s # %x -> actual: 02/01/09 7310s # %Ex -> expected: 02/01/09 7310s # %Ex -> actual: 02/01/09 7310s # %X -> expected: 01:02:03 7310s # %X -> actual: 01:02:03 7310s # %EX -> expected: 01:02:03 7310s # %EX -> actual: 01:02:03 7310s # %y -> expected: 09 7310s # %y -> actual: 09 7310s # %Ey -> expected: 09 7310s # %Ey -> actual: 09 7310s # %Y -> expected: 2009 7310s # %Y -> actual: 2009 7310s # %EY -> expected: 2009 7310s # %EY -> actual: 2009 7310s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 7310s # Bug Reference: http://bugzilla.gnome.org/749206 7310s # %B -> expected: January 7310s # %B -> actual: January 7310s # %OB -> expected: February 7310s # %OB -> actual: February 7310s # %b -> expected: Mar 7310s # %b -> actual: Mar 7310s # %Ob -> expected: Apr 7310s # %Ob -> actual: Apr 7310s # %h -> expected: May 7310s # %h -> actual: May 7310s # %Oh -> expected: Jun 7310s # %Oh -> actual: Jun 7310s # %B -> expected: Juli 7310s # %B -> actual: Juli 7310s # %OB -> expected: August 7310s # %OB -> actual: August 7310s # %b -> expected: Sep 7310s # %b -> actual: Sep 7310s # %Ob -> expected: Okt 7310s # %Ob -> actual: Okt 7310s # %h -> expected: Nov 7310s # %h -> actual: Nov 7310s # %Oh -> expected: Dez 7310s # %Oh -> actual: Dez 7310s # %B -> expected: enero 7310s # %B -> actual: enero 7310s # %OB -> expected: febrero 7310s # %OB -> actual: febrero 7310s # %b -> expected: mar 7310s # %b -> actual: mar 7310s # %Ob -> expected: abr 7310s # %Ob -> actual: abr 7310s # %h -> expected: may 7310s # %h -> actual: may 7310s # %Oh -> expected: jun 7310s # %Oh -> actual: jun 7310s # %B -> expected: juillet 7310s # %B -> actual: juillet 7310s # %OB -> expected: août 7310s # %OB -> actual: août 7310s # %b -> expected: sept. 7310s # %b -> actual: sept. 7310s # %Ob -> expected: oct. 7310s # %Ob -> actual: oct. 7310s # %h -> expected: nov. 7310s # %h -> actual: nov. 7310s # %Oh -> expected: déc. 7310s # %Oh -> actual: déc. 7310s # %B -> expected: ΙανουαÏίου 7310s # %B -> actual: ΙανουαÏίου 7310s # %B -> expected: ΦεβÏουαÏίου 7310s # %B -> actual: ΦεβÏουαÏίου 7310s # %B -> expected: ΜαÏτίου 7310s # %B -> actual: ΜαÏτίου 7310s # %OB -> expected: ΑπÏίλιος 7310s # %OB -> actual: ΑπÏίλιος 7310s # %OB -> expected: Μάιος 7310s # %OB -> actual: Μάιος 7310s # %OB -> expected: ΙοÏνιος 7310s # %OB -> actual: ΙοÏνιος 7310s # %b -> expected: Ιουλ 7310s # %b -> actual: Ιουλ 7310s # %Ob -> expected: ΑÏγ 7310s # %Ob -> actual: ΑÏγ 7310s # %B -> expected: svibnja 7310s # %B -> actual: svibnja 7310s # %B -> expected: lipnja 7310s # %B -> actual: lipnja 7310s # %B -> expected: srpnja 7310s # %B -> actual: srpnja 7310s # %OB -> expected: Kolovoz 7310s # %OB -> actual: kolovoz 7310s # %OB -> expected: Rujan 7310s # %OB -> actual: rujan 7310s # %OB -> expected: Listopad 7310s # %OB -> actual: listopad 7310s # %b -> expected: Stu 7310s # %b -> actual: stu 7310s # %Ob -> expected: Pro 7310s # %Ob -> actual: pro 7310s # %B -> expected: sausio 7310s # %B -> actual: sausio 7310s # %B -> expected: vasario 7310s # %B -> actual: vasario 7310s # %B -> expected: kovo 7310s # %B -> actual: kovo 7310s # %OB -> expected: balandis 7310s # %OB -> actual: balandis 7310s # %OB -> expected: gegužė 7310s # %OB -> actual: gegužė 7310s # %OB -> expected: birželis 7310s # %OB -> actual: birželis 7310s # %b -> expected: liep. 7310s # %b -> actual: liep. 7310s # %Ob -> expected: rugp. 7310s # %Ob -> actual: rugp. 7310s # %B -> expected: maja 7310s # %B -> actual: maja 7310s # %B -> expected: czerwca 7310s # %B -> actual: czerwca 7310s # %B -> expected: lipca 7310s # %B -> actual: lipca 7310s # %OB -> expected: sierpieÅ„ 7310s # %OB -> actual: sierpieÅ„ 7310s # %OB -> expected: wrzesieÅ„ 7310s # %OB -> actual: wrzesieÅ„ 7310s # %OB -> expected: październik 7310s # %OB -> actual: październik 7310s # %b -> expected: lis 7310s # %b -> actual: lis 7310s # %Ob -> expected: gru 7310s # %Ob -> actual: gru 7310s # %B -> expected: ÑÐ½Ð²Ð°Ñ€Ñ 7310s # %B -> actual: ÑÐ½Ð²Ð°Ñ€Ñ 7310s # %B -> expected: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 7310s # %B -> actual: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 7310s # %B -> expected: марта 7310s # %B -> actual: марта 7310s # %OB -> expected: Ðпрель 7310s # %OB -> actual: Ðпрель 7310s # %OB -> expected: Май 7310s # %OB -> actual: Май 7310s # %OB -> expected: Июнь 7310s # %OB -> actual: Июнь 7310s # %b -> expected: июл 7310s # %b -> actual: июл 7310s # %Ob -> expected: авг 7310s # %Ob -> actual: авг 7310s # %b -> expected: Ð¼Ð°Ñ 7310s # %b -> actual: Ð¼Ð°Ñ 7310s # %Ob -> expected: май 7310s # %Ob -> actual: май 7310s ok 38 /GDateTime/month_names 7310s ok 39 /GDateTime/to_local 7310s ok 40 /GDateTime/to_unix 7310s ok 41 /GDateTime/to_timeval 7310s ok 42 /GDateTime/to_utc 7310s ok 43 /GDateTime/now_utc 7310s ok 44 /GDateTime/dst 7310s # Bug Reference: http://bugzilla.gnome.org/642935 7310s ok 45 /GDateTime/test_z 7314s # Executing: glib/gdatetime.test 7319s # Executing: glib/gdatetime.test 7324s # Executing: glib/gdatetime.test 7329s # Executing: glib/gdatetime.test 7333s ok 46 /GDateTime/test-all-dates 7333s # slow test /GDateTime/test-all-dates executed in 23.16 secs 7333s ok 47 /GDateTime/unix_usec 7333s # Start of new_from_unix tests 7333s # Bug Reference: http://bugzilla.gnome.org/782089 7333s ok 48 /GDateTime/new_from_unix/overflow 7333s # End of new_from_unix tests 7333s # Start of new_from_timeval tests 7333s # Bug Reference: http://bugzilla.gnome.org/782089 7333s # Maximum supported GTimeVal.tv_sec = 253402300799 7333s ok 49 /GDateTime/new_from_timeval/overflow 7333s # End of new_from_timeval tests 7333s # Start of new_from_iso8601 tests 7333s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 7333s # Vector 0: 1990-11-01T10:21:17Z 7333s # Vector 1: 19901101T102117Z 7333s # Vector 2: 1970-01-01T00:00:17.12Z 7333s # Vector 3: 1970-01-01T00:00:17.1234Z 7333s # Vector 4: 1970-01-01T00:00:17.123456Z 7333s # Vector 5: 1980-02-22T12:36:00+02:00 7333s # Vector 6: 1990-12-31T15:59:60-08:00 7333s # Vector 7: 7333s # Vector 8: x 7333s # Vector 9: 123x 7333s # Vector 10: 2001-10+x 7333s # Vector 11: 1980-02-22T 7333s # Vector 12: 2001-10-08Tx 7333s # Vector 13: 2001-10-08T10:11x 7333s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 7333s # Vector 15: 1980-02-22T10:36:00Zulu 7333s # Vector 16: 2T0+819855292164632335 7333s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 7333s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 7333s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 7333s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 7333s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 7333s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 7333s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 7333s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 7333s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 7333s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 7333s # Vector 27: 20180803T140805.446178377+0100 7333s # Vector 28: 21474836480803T140805.446178377+0100 7333s # Vector 29: 20181303T140805.446178377+0100 7333s # Vector 30: 20180003T140805.446178377+0100 7333s # Vector 31: 20180800T140805.446178377+0100 7333s # Vector 32: 20180832T140805.446178377+0100 7333s # Vector 33: 20180803T240805.446178377+0100 7333s # Vector 34: 20180803T146005.446178377+0100 7333s # Vector 35: 20180803T140863.446178377+0100 7333s # Vector 36: 20180803T140805.446178377+10000 7333s # Vector 37: -0005-01-01T00:00:00Z 7333s # Vector 38: 2018-08-06 7333s # Vector 39: 20180803T140805,446178377+0100 7333s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 7333s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 7333s # Vector 42: 1990-11-01T10:21:17 7333s # Vector 43: 1719W462 407777-07 7333s # Vector 44: 4011090 260528Z 7333s # Vector 45: 0000W011 228214-22 7333s ok 50 /GDateTime/new_from_iso8601/2 7333s # End of new_from_iso8601 tests 7333s # Start of format_mixed tests 7333s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 7333s # %b -> expected: mar 7333s # %b -> actual: Mar 7333s # %B -> expected: march 7333s # %B -> actual: March 7333s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 7333s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 7333s # %b -> expected: mar 7333s # %b -> actual: Mar 7333s # %B -> expected: march 7333s # %B -> actual: March 7333s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 7333s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 7333s # %b -> expected: Mär 7333s # %b -> actual: Mär 7333s # %B -> expected: März 7333s # %B -> actual: März 7333s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 7333s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 7333s # %b -> expected: Mär 7333s # %b -> actual: Mär 7333s # %B -> expected: März 7333s # %B -> actual: März 7333s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 7333s # End of format_mixed tests 7333s # Start of strftime tests 7333s # %r -> expected: (null) 7333s # %r -> actual: (null) 7333s ok 55 /GDateTime/strftime/error_handling 7333s # End of strftime tests 7333s # Start of eras tests 7333s # %Ec -> expected: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 7333s # %Ec -> actual: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 7333s # %EC -> expected: 令和 7333s # %EC -> actual: 令和 7333s # %Ex -> expected: 令和05å¹´06月01æ—¥ 7333s # %Ex -> actual: 令和05å¹´06月01æ—¥ 7333s # %EX -> expected: 00時00分00ç§’ 7333s # %EX -> actual: 00時00分00ç§’ 7333s # %Ey -> expected: 05 7333s # %Ey -> actual: 05 7333s # %EY -> expected: 令和05å¹´ 7333s # %EY -> actual: 令和05å¹´ 7333s # %Ec -> expected: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 7333s # %Ec -> actual: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 7333s # %EC -> expected: å¹³æˆ 7333s # %EC -> actual: å¹³æˆ 7333s # %Ex -> expected: å¹³æˆ31å¹´04月30æ—¥ 7333s # %Ex -> actual: å¹³æˆ31å¹´04月30æ—¥ 7333s # %EX -> expected: 00時00分00ç§’ 7333s # %EX -> actual: 00時00分00ç§’ 7333s # %Ey -> expected: 31 7333s # %Ey -> actual: 31 7333s # %EY -> expected: å¹³æˆ31å¹´ 7333s # %EY -> actual: å¹³æˆ31å¹´ 7333s # %Ec -> expected: 昭和元年12月25æ—¥ 00時00分00ç§’ 7333s # %Ec -> actual: 昭和元年12月25æ—¥ 00時00分00ç§’ 7333s # %EC -> expected: 昭和 7333s # %EC -> actual: 昭和 7333s # %Ex -> expected: 昭和元年12月25æ—¥ 7333s # %Ex -> actual: 昭和元年12月25æ—¥ 7333s # %EX -> expected: 00時00分00ç§’ 7333s # %EX -> actual: 00時00分00ç§’ 7333s # %Ey -> expected: 01 7333s # %Ey -> actual: 01 7333s # %EY -> expected: 昭和元年 7333s # %EY -> actual: 昭和元年 7333s ok 56 /GDateTime/eras/japan 7333s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 7333s # Vector 0: 7333s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 7333s # 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å¹´ 7333s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Eyå¹´ 7333s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Eyå¹´ 7333s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 8: + 7333s # Vector 9: +: 7333s # Vector 10: +:: 7333s # Vector 11: +:200 7333s # Vector 12: +:2nonsense 7333s # Vector 13: +:2nonsense: 7333s # Vector 14: +:2: 7333s # Vector 15: +:2:: 7333s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 18: +:2:2020:+*:令和:%EC%Eyå¹´ 7333s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Eyå¹´ 7333s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 22: +:2:2020/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Eyå¹´ 7333s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Eyå¹´ 7333s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Eyå¹´ 7333s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Eyå¹´ 7333s # Vector 28: +:2:2020/01/01 7333s # Vector 29: +:2:2020/01/01: 7333s # Vector 30: +:2:2020/01/01:: 7333s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Eyå¹´ 7333s # Vector 32: +:2:2020/01/01:+* 7333s # Vector 33: +:2:2020/01/01:+*: 7333s # Vector 34: +:2:2020/01/01:+*:: 7333s # Vector 35: +:2:2020/01/01:+*:令和 7333s # Vector 36: +:2:2020/01/01:+*:令和: 7333s # Vector 37: +:2:2020/01/01:+*:令和:; 7333s ok 58 /GDateTime/eras/parsing 7333s # End of eras tests 7333s # End of GDateTime tests 7333s # Start of GTimeZone tests 7333s ok 59 /GTimeZone/find-interval 7333s ok 60 /GTimeZone/adjust-time 7333s ok 61 /GTimeZone/no-header 7333s ok 62 /GTimeZone/no-header-identifier 7333s ok 63 /GTimeZone/posix-parse 7333s # Bug Reference: http://bugzilla.gnome.org/697715 7333s ok 64 /GTimeZone/floating-point 7333s # System time zone identifier: Etc/UTC 7333s ok 65 /GTimeZone/identifier 7333s # Vector 0: -158400 7333s # Vector 1: -10000 7333s # Vector 2: -3600 7333s # Vector 3: -61 7333s # Vector 4: -60 7333s # Vector 5: -59 7333s # Vector 6: 0 7333s # Vector 7: 59 7333s # Vector 8: 60 7333s # Vector 9: 61 7333s # Vector 10: 3600 7333s # Vector 11: 10000 7333s # Vector 12: 158400 7333s ok 66 /GTimeZone/new-offset 7333s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 7333s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 7333s ok 67 /GTimeZone/parse-rfc8536 7333s # /GTimeZone/caching summary: GTimeZone instances are cached 7333s ok 68 /GTimeZone/caching 7333s # End of GTimeZone tests 7333s ok - glib/gdatetime.test 7333s # Running test: glib/buffered-input-stream.test 7334s TAP version 14 7334s # random seed: R02Sd9ab4f326d49fb811edd17303310e1bf 7334s 1..10 7334s # Start of buffered-input-stream tests 7334s ok 1 /buffered-input-stream/peek 7334s ok 2 /buffered-input-stream/peek-buffer 7334s ok 3 /buffered-input-stream/set-buffer-size 7334s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 7334s ok 4 /buffered-input-stream/read-byte 7334s ok 5 /buffered-input-stream/read 7334s ok 6 /buffered-input-stream/read-async 7334s ok 7 /buffered-input-stream/skip 7334s ok 8 /buffered-input-stream/skip-async 7334s ok 9 /buffered-input-stream/seek 7334s # End of buffered-input-stream tests 7334s # Start of filter-input-stream tests 7334s ok 10 /filter-input-stream/close 7334s # End of filter-input-stream tests 7334s ok - glib/buffered-input-stream.test 7334s # Running test: glib/callable-info.test 7334s TAP version 14 7334s # random seed: R02S0815bf150f7fc907c2123f0c6dbf6739 7334s 1..5 7334s # Start of callable-info tests 7334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/home 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/cache 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_434752/callable-info/sync-function/.dirs/system-config2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/config 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_434752/callable-info/sync-function/.dirs/system-data2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/data 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/state 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_434752/callable-info/sync-function/.dirs/runtime 7334s # Executing: glib/callable-info.test 7334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7334s ok 1 /callable-info/sync-function 7334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/home 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/cache 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_434752/callable-info/async-function/.dirs/system-config2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/config 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_434752/callable-info/async-function/.dirs/system-data2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/data 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/state 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_434752/callable-info/async-function/.dirs/runtime 7334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7334s ok 2 /callable-info/async-function 7334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/home 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/cache 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_434752/callable-info/is-method/.dirs/system-config2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/config 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_434752/callable-info/is-method/.dirs/system-data2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/data 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/state 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_434752/callable-info/is-method/.dirs/runtime 7334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7334s ok 3 /callable-info/is-method 7334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/home 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/cache 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_434752/callable-info/static-method/.dirs/system-config2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/config 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_434752/callable-info/static-method/.dirs/system-data2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/data 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/state 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_434752/callable-info/static-method/.dirs/runtime 7334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7334s ok 4 /callable-info/static-method 7334s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/home 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/cache 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/system-config2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/config 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/system-data2 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/data 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/state 7334s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_434752/callable-info/static-vfunc/.dirs/runtime 7334s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7334s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 7334s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 7334s # End of callable-info tests 7334s ok - glib/callable-info.test 7334s # Running test: glib/threadtests.test 7335s TAP version 14 7335s # random seed: R02S26278b8a27fc422684b267ec93d9972f 7335s 1..5 7335s # Start of GObject tests 7335s ok 1 /GObject/threaded-object-init 7335s # slow test /GObject/threaded-object-init executed in 0.89 secs 7339s # Executing: glib/threadtests.test 7344s # Executing: glib/threadtests.test 7345s ok 2 /GObject/threaded-weak-ref 7345s # slow test /GObject/threaded-weak-ref executed in 9.67 secs 7345s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 7345s # /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 7347s ok 3 /GObject/threaded-toggle-notify 7347s # slow test /GObject/threaded-toggle-notify executed in 1.67 secs 7347s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 7347s # Start of threaded-weak-ref tests 7347s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 7347s # /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. 7347s ok 5 /GObject/threaded-weak-ref/on-finalization 7347s # End of threaded-weak-ref tests 7347s # End of GObject tests 7347s ok - glib/threadtests.test 7347s # Running test: glib/singleton.test 7347s TAP version 14 7347s # random seed: R02Saa24f7cab8137a13b2a50f4965508da0 7347s 1..2 7347s # Start of gobject tests 7347s # Start of singleton tests 7347s ok 1 /gobject/singleton/construction 7347s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 7347s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 7347s ok 2 /gobject/singleton/construct-property 7347s # End of singleton tests 7347s # End of gobject tests 7347s ok - glib/singleton.test 7347s # Running test: glib/signals-refcount4.test 7347s TAP version 14 7347s # random seed: R02S94a5b52aff4d2e9091c9fbb132ce1a3b 7347s 1..1 7347s # Start of gobject tests 7347s # Start of refcount tests 7347s # init 0x555e0c337dc0 7347s # 7347s # init 0x555e0c334310 7347s # 7349s # Executing: glib/signals-refcount4.test 7352s # dispose 0x555e0c337dc0! 7352s # 7352s # dispose 0x555e0c334310! 7352s # 7352s ok 1 /gobject/refcount/signals 7352s # slow test /gobject/refcount/signals executed in 5.04 secs 7353s # End of refcount tests 7353s # End of gobject tests 7353s ok - glib/signals-refcount4.test 7353s # Running test: glib/references.test 7353s TAP version 14 7353s # random seed: R02Sbd7e4c015ce8ba9e14cb9ec68382329b 7353s 1..1 7353s # Start of gobject tests 7353s ok 1 /gobject/references 7353s # End of gobject tests 7354s ok - glib/references.test 7354s # Running test: glib/codegen.py.test 7354s # Executing: glib/codegen.py.test 7359s # Executing: glib/codegen.py.test 7361s TAP version 13 7361s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 7361s # gdbus-codegen: /usr/bin/gdbus-codegen 7361s # tmpdir: /tmp/tmpu72sv0xa 7361s # /tmp/tmpu72sv0xa/tmp2ite3k8b.xml: 7361s # 7361s # 7361s # 7361s # 7361s # 7361s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu72sv0xa/tmp2ite3k8b.xml', '--output', '-', '--header'] 7361s # Return code: 0 7361s # Output: 7361s # /* 7361s # * This file is generated by gdbus-codegen, do not modify it. 7361s # * 7361s # * The license of this code is the same as for the D-Bus interface description 7361s # * it was derived from. Note that it links to GLib, so must comply with the 7361s # * LGPL linking clauses. 7361s # */ 7361s # 7361s # #ifndef __STDOUT__ 7361s # #define __STDOUT__ 7361s # 7361s # #include 7361s # 7361s # G_BEGIN_DECLS 7361s # 7361s # 7361s # /* ------------------------------------------------------------------------ */ 7361s # /* Declarations for org.project.UsefulInterface */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 7361s # 7361s # struct _OrgProjectUsefulInterface; 7361s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 7361s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 7361s # 7361s # struct _OrgProjectUsefulInterfaceIface 7361s # { 7361s # GTypeInterface parent_iface; 7361s # 7361s # gboolean (*handle_useful_method) ( 7361s # OrgProjectUsefulInterface *object, 7361s # GDBusMethodInvocation *invocation); 7361s # 7361s # }; 7361s # 7361s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 7361s # 7361s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 7361s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 7361s # 7361s # 7361s # /* D-Bus method call completion functions: */ 7361s # void org_project_useful_interface_complete_useful_method ( 7361s # OrgProjectUsefulInterface *object, 7361s # GDBusMethodInvocation *invocation); 7361s # 7361s # 7361s # 7361s # /* D-Bus method calls: */ 7361s # void org_project_useful_interface_call_useful_method ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # 7361s # gboolean org_project_useful_interface_call_useful_method_finish ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # 7361s # gboolean org_project_useful_interface_call_useful_method_sync ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # 7361s # 7361s # /* ---- */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 7361s # 7361s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 7361s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 7361s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 7361s # 7361s # struct _OrgProjectUsefulInterfaceProxy 7361s # { 7361s # /*< private >*/ 7361s # GDBusProxy parent_instance; 7361s # OrgProjectUsefulInterfaceProxyPrivate *priv; 7361s # }; 7361s # 7361s # struct _OrgProjectUsefulInterfaceProxyClass 7361s # { 7361s # GDBusProxyClass parent_class; 7361s # }; 7361s # 7361s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 7361s # 7361s # #if GLIB_CHECK_VERSION(2, 44, 0) 7361s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 7361s # #endif 7361s # 7361s # void org_project_useful_interface_proxy_new ( 7361s # GDBusConnection *connection, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 7361s # GDBusConnection *connection, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # void org_project_useful_interface_proxy_new_for_bus ( 7361s # GBusType bus_type, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 7361s # GBusType bus_type, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # 7361s # /* ---- */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 7361s # 7361s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 7361s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 7361s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 7361s # 7361s # struct _OrgProjectUsefulInterfaceSkeleton 7361s # { 7361s # /*< private >*/ 7361s # GDBusInterfaceSkeleton parent_instance; 7361s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 7361s # }; 7361s # 7361s # struct _OrgProjectUsefulInterfaceSkeletonClass 7361s # { 7361s # GDBusInterfaceSkeletonClass parent_class; 7361s # }; 7361s # 7361s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 7361s # 7361s # #if GLIB_CHECK_VERSION(2, 44, 0) 7361s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 7361s # #endif 7361s # 7361s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 7361s # 7361s # 7361s # G_END_DECLS 7361s # 7361s # #endif /* __STDOUT__ */ 7361s # Error: 7361s # 7361s # /tmp/tmpu72sv0xa/tmpz868pkmm.xml: 7361s # 7361s # 7361s # 7361s # 7361s # 7361s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu72sv0xa/tmpz868pkmm.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 7361s # Return code: 0 7361s # Output: 7361s # /* 7361s # * This file is generated by gdbus-codegen, do not modify it. 7361s # * 7361s # * The license of this code is the same as for the D-Bus interface description 7361s # * it was derived from. Note that it links to GLib, so must comply with the 7361s # * LGPL linking clauses. 7361s # */ 7361s # 7361s # #ifndef __STDOUT__ 7361s # #define __STDOUT__ 7361s # 7361s # #include 7361s # 7361s # G_BEGIN_DECLS 7361s # 7361s # 7361s # /* ------------------------------------------------------------------------ */ 7361s # /* Declarations for org.project.UsefulInterface */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 7361s # 7361s # struct _OrgProjectUsefulInterface; 7361s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 7361s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 7361s # 7361s # struct _OrgProjectUsefulInterfaceIface 7361s # { 7361s # GTypeInterface parent_iface; 7361s # 7361s # gboolean (*handle_useful_method) ( 7361s # OrgProjectUsefulInterface *object, 7361s # GDBusMethodInvocation *invocation); 7361s # 7361s # }; 7361s # 7361s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 7361s # 7361s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 7361s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 7361s # 7361s # 7361s # /* D-Bus method call completion functions: */ 7361s # void org_project_useful_interface_complete_useful_method ( 7361s # OrgProjectUsefulInterface *object, 7361s # GDBusMethodInvocation *invocation); 7361s # 7361s # 7361s # 7361s # /* D-Bus method calls: */ 7361s # void org_project_useful_interface_call_useful_method ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # 7361s # gboolean org_project_useful_interface_call_useful_method_finish ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # 7361s # gboolean org_project_useful_interface_call_useful_method_sync ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # 7361s # 7361s # /* ---- */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 7361s # 7361s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 7361s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 7361s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 7361s # 7361s # struct _OrgProjectUsefulInterfaceProxy 7361s # { 7361s # /*< private >*/ 7361s # GDBusProxy parent_instance; 7361s # OrgProjectUsefulInterfaceProxyPrivate *priv; 7361s # }; 7361s # 7361s # struct _OrgProjectUsefulInterfaceProxyClass 7361s # { 7361s # GDBusProxyClass parent_class; 7361s # }; 7361s # 7361s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 7361s # 7361s # #if GLIB_CHECK_VERSION(2, 44, 0) 7361s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 7361s # #endif 7361s # 7361s # void org_project_useful_interface_proxy_new ( 7361s # GDBusConnection *connection, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 7361s # GDBusConnection *connection, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # void org_project_useful_interface_proxy_new_for_bus ( 7361s # GBusType bus_type, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 7361s # GBusType bus_type, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # 7361s # /* ---- */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 7361s # 7361s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 7361s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 7361s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 7361s # 7361s # struct _OrgProjectUsefulInterfaceSkeleton 7361s # { 7361s # /*< private >*/ 7361s # GDBusInterfaceSkeleton parent_instance; 7361s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 7361s # }; 7361s # 7361s # struct _OrgProjectUsefulInterfaceSkeletonClass 7361s # { 7361s # GDBusInterfaceSkeletonClass parent_class; 7361s # }; 7361s # 7361s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 7361s # 7361s # #if GLIB_CHECK_VERSION(2, 44, 0) 7361s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 7361s # #endif 7361s # 7361s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 7361s # 7361s # 7361s # G_END_DECLS 7361s # 7361s # #endif /* __STDOUT__ */ 7361s # Error: 7361s # 7361s # /tmp/tmpu72sv0xa/tmplpeenlkl.xml: 7361s # 7361s # 7361s # 7361s # 7361s # 7361s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu72sv0xa/tmplpeenlkl.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 7361s # Return code: 0 7361s # Output: 7361s # /* 7361s # * This file is generated by gdbus-codegen, do not modify it. 7361s # * 7361s # * The license of this code is the same as for the D-Bus interface description 7361s # * it was derived from. Note that it links to GLib, so must comply with the 7361s # * LGPL linking clauses. 7361s # */ 7361s # 7361s # #ifndef __STDOUT__ 7361s # #define __STDOUT__ 7361s # 7361s # #include 7361s # 7361s # G_BEGIN_DECLS 7361s # 7361s # 7361s # /* ------------------------------------------------------------------------ */ 7361s # /* Declarations for org.project.UsefulInterface */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 7361s # 7361s # struct _OrgProjectUsefulInterface; 7361s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 7361s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 7361s # 7361s # struct _OrgProjectUsefulInterfaceIface 7361s # { 7361s # GTypeInterface parent_iface; 7361s # 7361s # gboolean (*handle_useful_method) ( 7361s # OrgProjectUsefulInterface *object, 7361s # GDBusMethodInvocation *invocation); 7361s # 7361s # }; 7361s # 7361s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 7361s # 7361s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 7361s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 7361s # 7361s # 7361s # /* D-Bus method call completion functions: */ 7361s # void org_project_useful_interface_complete_useful_method ( 7361s # OrgProjectUsefulInterface *object, 7361s # GDBusMethodInvocation *invocation); 7361s # 7361s # 7361s # 7361s # /* D-Bus method calls: */ 7361s # void org_project_useful_interface_call_useful_method ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GDBusCallFlags call_flags, 7361s # gint timeout_msec, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # 7361s # gboolean org_project_useful_interface_call_useful_method_finish ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # 7361s # gboolean org_project_useful_interface_call_useful_method_sync ( 7361s # OrgProjectUsefulInterface *proxy, 7361s # GDBusCallFlags call_flags, 7361s # gint timeout_msec, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # 7361s # 7361s # /* ---- */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 7361s # 7361s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 7361s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 7361s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 7361s # 7361s # struct _OrgProjectUsefulInterfaceProxy 7361s # { 7361s # /*< private >*/ 7361s # GDBusProxy parent_instance; 7361s # OrgProjectUsefulInterfaceProxyPrivate *priv; 7361s # }; 7361s # 7361s # struct _OrgProjectUsefulInterfaceProxyClass 7361s # { 7361s # GDBusProxyClass parent_class; 7361s # }; 7361s # 7361s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 7361s # 7361s # #if GLIB_CHECK_VERSION(2, 44, 0) 7361s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 7361s # #endif 7361s # 7361s # void org_project_useful_interface_proxy_new ( 7361s # GDBusConnection *connection, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 7361s # GDBusConnection *connection, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # void org_project_useful_interface_proxy_new_for_bus ( 7361s # GBusType bus_type, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GAsyncReadyCallback callback, 7361s # gpointer user_data); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 7361s # GAsyncResult *res, 7361s # GError **error); 7361s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 7361s # GBusType bus_type, 7361s # GDBusProxyFlags flags, 7361s # const gchar *name, 7361s # const gchar *object_path, 7361s # GCancellable *cancellable, 7361s # GError **error); 7361s # 7361s # 7361s # /* ---- */ 7361s # 7361s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 7361s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 7361s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 7361s # 7361s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 7361s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 7361s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 7361s # 7361s # struct _OrgProjectUsefulInterfaceSkeleton 7361s # { 7361s # /*< private >*/ 7361s # GDBusInterfaceSkeleton parent_instance; 7361s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 7361s # }; 7361s # 7361s # struct _OrgProjectUsefulInterfaceSkeletonClass 7361s # { 7361s # GDBusInterfaceSkeletonClass parent_class; 7361s # }; 7361s # 7361s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 7361s # 7361s # #if GLIB_CHECK_VERSION(2, 44, 0) 7361s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 7361s # #endif 7361s # 7361s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 7361s # 7361s # 7361s # G_END_DECLS 7361s # 7361s # #endif /* __STDOUT__ */ 7361s # Error: 7364s # Executing: glib/codegen.py.test 7369s # Executing: glib/codegen.py.test 7374s # Executing: glib/codegen.py.test 7379s # Executing: glib/codegen.py.test 7382s ok 2 __main__.TestCodegen.test_dbus_types 7382s # gdbus-codegen: /usr/bin/gdbus-codegen 7382s # tmpdir: /tmp/tmp3p3yzvwn 7382s # /tmp/tmp3p3yzvwn/tmp5r826dp7.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmp5r826dp7.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 7382s # /tmp/tmp3p3yzvwn/tmp8nwbkb_h.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmp8nwbkb_h.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 7382s # /tmp/tmp3p3yzvwn/tmpo_6l058q.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpo_6l058q.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 7382s # /tmp/tmp3p3yzvwn/tmpnjfe0o38.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpnjfe0o38.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 7382s # /tmp/tmp3p3yzvwn/tmpq_3dr9kn.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpq_3dr9kn.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 7382s # /tmp/tmp3p3yzvwn/tmpafq_5ol1.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpafq_5ol1.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 7382s # /tmp/tmp3p3yzvwn/tmpt9u_7ez9.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpt9u_7ez9.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 7382s # /tmp/tmp3p3yzvwn/tmpy894jhou.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpy894jhou.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 7382s # /tmp/tmp3p3yzvwn/tmpgkkkjffl.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpgkkkjffl.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 7382s # /tmp/tmp3p3yzvwn/tmpwlffucgq.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpwlffucgq.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: D-Bus maximum signature length of 255 exceeded. 7382s # /tmp/tmp3p3yzvwn/tmpdtsk4tle.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpdtsk4tle.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: D-Bus maximum signature length of 255 exceeded. 7382s # /tmp/tmp3p3yzvwn/tmpcib8lp2h.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpcib8lp2h.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 7382s # /tmp/tmp3p3yzvwn/tmpu1ka5y7c.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpu1ka5y7c.xml', '--output', '-', '--body'] 7382s # Return code: 1 7382s # Output: 7382s # 7382s # Error: 7382s # ERROR: D-Bus maximum signature length of 255 exceeded. 7382s # /tmp/tmp3p3yzvwn/tmp3rrvyzue.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmp3rrvyzue.xml', '--output', '-', '--body'] 7382s # Return code: 0 7382s # Output: 7382s # /* 7382s # * This file is generated by gdbus-codegen, do not modify it. 7382s # * 7382s # * The license of this code is the same as for the D-Bus interface description 7382s # * it was derived from. Note that it links to GLib, so must comply with the 7382s # * LGPL linking clauses. 7382s # */ 7382s # 7382s # #ifdef HAVE_CONFIG_H 7382s # # include "config.h" 7382s # #endif 7382s # 7382s # #include 7382s # #ifdef G_OS_UNIX 7382s # # include 7382s # #endif 7382s # 7382s # #ifdef G_ENABLE_DEBUG 7382s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7382s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7382s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7382s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7382s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7382s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7382s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7382s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7382s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7382s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7382s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7382s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7382s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7382s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7382s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7382s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7382s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7382s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7382s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7382s # #else /* !G_ENABLE_DEBUG */ 7382s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7382s # * Do not access GValues directly in your code. Instead, use the 7382s # * g_value_get_*() functions 7382s # */ 7382s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7382s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7382s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7382s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7382s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7382s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7382s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7382s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7382s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7382s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7382s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7382s # #endif /* !G_ENABLE_DEBUG */ 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusArgInfo parent_struct; 7382s # gboolean use_gvariant; 7382s # } _ExtendedGDBusArgInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusMethodInfo parent_struct; 7382s # const gchar *signal_name; 7382s # gboolean pass_fdlist; 7382s # } _ExtendedGDBusMethodInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusSignalInfo parent_struct; 7382s # const gchar *signal_name; 7382s # } _ExtendedGDBusSignalInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusPropertyInfo parent_struct; 7382s # const gchar *hyphen_name; 7382s # guint use_gvariant : 1; 7382s # guint emits_changed_signal : 1; 7382s # } _ExtendedGDBusPropertyInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusInterfaceInfo parent_struct; 7382s # const gchar *hyphen_name; 7382s # } _ExtendedGDBusInterfaceInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # guint prop_id; 7382s # GValue orig_value; /* the value before the change */ 7382s # } ChangedProperty; 7382s # 7382s # static void 7382s # _changed_property_free (ChangedProperty *data) 7382s # { 7382s # g_value_unset (&data->orig_value); 7382s # g_free (data); 7382s # } 7382s # 7382s # static gboolean 7382s # _g_strv_equal0 (gchar **a, gchar **b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # guint n; 7382s # if (a == NULL && b == NULL) 7382s # { 7382s # ret = TRUE; 7382s # goto out; 7382s # } 7382s # if (a == NULL || b == NULL) 7382s # goto out; 7382s # if (g_strv_length (a) != g_strv_length (b)) 7382s # goto out; 7382s # for (n = 0; a[n] != NULL; n++) 7382s # if (g_strcmp0 (a[n], b[n]) != 0) 7382s # goto out; 7382s # ret = TRUE; 7382s # out: 7382s # return ret; 7382s # } 7382s # 7382s # static gboolean 7382s # _g_variant_equal0 (GVariant *a, GVariant *b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # if (a == NULL && b == NULL) 7382s # { 7382s # ret = TRUE; 7382s # goto out; 7382s # } 7382s # if (a == NULL || b == NULL) 7382s # goto out; 7382s # ret = g_variant_equal (a, b); 7382s # out: 7382s # return ret; 7382s # } 7382s # 7382s # G_GNUC_UNUSED static gboolean 7382s # _g_value_equal (const GValue *a, const GValue *b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7382s # switch (G_VALUE_TYPE (a)) 7382s # { 7382s # case G_TYPE_BOOLEAN: 7382s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7382s # break; 7382s # case G_TYPE_UCHAR: 7382s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7382s # break; 7382s # case G_TYPE_INT: 7382s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7382s # break; 7382s # case G_TYPE_UINT: 7382s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7382s # break; 7382s # case G_TYPE_INT64: 7382s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7382s # break; 7382s # case G_TYPE_UINT64: 7382s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7382s # break; 7382s # case G_TYPE_DOUBLE: 7382s # { 7382s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7382s # gdouble da = g_value_get_double (a); 7382s # gdouble db = g_value_get_double (b); 7382s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7382s # } 7382s # break; 7382s # case G_TYPE_STRING: 7382s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7382s # break; 7382s # case G_TYPE_VARIANT: 7382s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7382s # break; 7382s # default: 7382s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7382s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7382s # else 7382s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7382s # break; 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # /* ------------------------------------------------------------------------ 7382s # * Code for interface GoodTypes 7382s # * ------------------------------------------------------------------------ 7382s # */ 7382s # 7382s # /** 7382s # * SECTION:GoodTypes 7382s # * @title: GoodTypes 7382s # * @short_description: Generated C code for the GoodTypes D-Bus interface 7382s # * 7382s # * This section contains code for working with the GoodTypes D-Bus interface in C. 7382s # */ 7382s # 7382s # /* ---- Introspection data for GoodTypes ---- */ 7382s # 7382s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 7382s # { 7382s # { 7382s # -1, 7382s # (gchar *) "GoodPropertyType", 7382s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 7382s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 7382s # NULL 7382s # }, 7382s # "good-property-type", 7382s # FALSE, 7382s # TRUE 7382s # }; 7382s # 7382s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 7382s # { 7382s # &_good_types_property_info_good_property_type.parent_struct, 7382s # NULL 7382s # }; 7382s # 7382s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 7382s # { 7382s # { 7382s # -1, 7382s # (gchar *) "GoodTypes", 7382s # NULL, 7382s # NULL, 7382s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 7382s # NULL 7382s # }, 7382s # "good-types", 7382s # }; 7382s # 7382s # 7382s # /** 7382s # * good_types_interface_info: 7382s # * 7382s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 7382s # * 7382s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7382s # */ 7382s # GDBusInterfaceInfo * 7382s # good_types_interface_info (void) 7382s # { 7382s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 7382s # } 7382s # 7382s # /** 7382s # * good_types_override_properties: 7382s # * @klass: The class structure for a #GObject derived class. 7382s # * @property_id_begin: The property id to assign to the first overridden property. 7382s # * 7382s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 7382s # * The properties are overridden in the order they are defined. 7382s # * 7382s # * Returns: The last property id. 7382s # */ 7382s # guint 7382s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 7382s # { 7382s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 7382s # return property_id_begin - 1; 7382s # } 7382s # 7382s # 7382s # 7382s # /** 7382s # * GoodTypes: 7382s # * 7382s # * Abstract interface type for the D-Bus interface GoodTypes. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesIface: 7382s # * @parent_iface: The parent interface. 7382s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 7382s # * 7382s # * Virtual table for the D-Bus interface GoodTypes. 7382s # */ 7382s # 7382s # typedef GoodTypesIface GoodTypesInterface; 7382s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 7382s # 7382s # static void 7382s # good_types_default_init (GoodTypesIface *iface) 7382s # { 7382s # /* GObject properties for D-Bus properties: */ 7382s # /** 7382s # * GoodTypes:good-property-type: 7382s # * 7382s # * Represents the D-Bus property "GoodPropertyType". 7382s # * 7382s # * 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. 7382s # */ 7382s # g_object_interface_install_property (iface, 7382s # 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)); 7382s # } 7382s # 7382s # /** 7382s # * good_types_get_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * 7382s # * Gets the value of the "GoodPropertyType" D-Bus property. 7382s # * 7382s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7382s # * 7382s # * 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. 7382s # * 7382s # * 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. 7382s # */ 7382s # GVariant * 7382s # good_types_get_good_property_type (GoodTypes *object) 7382s # { 7382s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 7382s # 7382s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 7382s # } 7382s # 7382s # /** 7382s # * good_types_dup_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * 7382s # * Gets a copy of the "GoodPropertyType" D-Bus property. 7382s # * 7382s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7382s # * 7382s # * 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(). 7382s # */ 7382s # GVariant * 7382s # good_types_dup_good_property_type (GoodTypes *object) 7382s # { 7382s # GVariant *value; 7382s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 7382s # return value; 7382s # } 7382s # 7382s # /** 7382s # * good_types_set_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * @value: The value to set. 7382s # * 7382s # * Sets the "GoodPropertyType" D-Bus property to @value. 7382s # * 7382s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 7382s # */ 7382s # void 7382s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 7382s # { 7382s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 7382s # } 7382s # 7382s # /* ------------------------------------------------------------------------ */ 7382s # 7382s # /** 7382s # * GoodTypesProxy: 7382s # * 7382s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesProxyClass: 7382s # * @parent_class: The parent class. 7382s # * 7382s # * Class structure for GoodTypesProxy. 7382s # */ 7382s # 7382s # struct _GoodTypesProxyPrivate 7382s # { 7382s # GData *qdata; 7382s # }; 7382s # 7382s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 7382s # G_ADD_PRIVATE (GoodTypesProxy) 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 7382s # 7382s # #else 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 7382s # 7382s # #endif 7382s # static void 7382s # good_types_proxy_finalize (GObject *object) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 7382s # g_datalist_clear (&proxy->priv->qdata); 7382s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_get_property (GObject *object, 7382s # guint prop_id, 7382s # GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *variant; 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 7382s # if (info->use_gvariant) 7382s # { 7382s # g_value_set_variant (value, variant); 7382s # } 7382s # else 7382s # { 7382s # if (variant != NULL) 7382s # g_dbus_gvariant_to_gvalue (variant, value); 7382s # } 7382s # if (variant != NULL) 7382s # g_variant_unref (variant); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 7382s # GAsyncResult *res, 7382s # gpointer user_data) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info = user_data; 7382s # GError *error; 7382s # GVariant *_ret; 7382s # error = NULL; 7382s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 7382s # if (!_ret) 7382s # { 7382s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 7382s # info->parent_struct.name, 7382s # error->message, g_quark_to_string (error->domain), error->code); 7382s # g_error_free (error); 7382s # } 7382s # else 7382s # { 7382s # g_variant_unref (_ret); 7382s # } 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_set_property (GObject *object, 7382s # guint prop_id, 7382s # const GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *variant; 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 7382s # g_dbus_proxy_call (G_DBUS_PROXY (object), 7382s # "org.freedesktop.DBus.Properties.Set", 7382s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 7382s # G_DBUS_CALL_FLAGS_NONE, 7382s # -1, 7382s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 7382s # g_variant_unref (variant); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_g_signal (GDBusProxy *proxy, 7382s # const gchar *sender_name G_GNUC_UNUSED, 7382s # const gchar *signal_name, 7382s # GVariant *parameters) 7382s # { 7382s # _ExtendedGDBusSignalInfo *info; 7382s # GVariantIter iter; 7382s # GVariant *child; 7382s # GValue *paramv; 7382s # gsize num_params; 7382s # gsize n; 7382s # guint signal_id; 7382s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 7382s # if (info == NULL) 7382s # return; 7382s # num_params = g_variant_n_children (parameters); 7382s # paramv = g_new0 (GValue, num_params + 1); 7382s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 7382s # g_value_set_object (¶mv[0], proxy); 7382s # g_variant_iter_init (&iter, parameters); 7382s # n = 1; 7382s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7382s # { 7382s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7382s # if (arg_info->use_gvariant) 7382s # { 7382s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7382s # g_value_set_variant (¶mv[n], child); 7382s # n++; 7382s # } 7382s # else 7382s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7382s # g_variant_unref (child); 7382s # } 7382s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 7382s # g_signal_emitv (paramv, signal_id, 0, NULL); 7382s # for (n = 0; n < num_params + 1; n++) 7382s # g_value_unset (¶mv[n]); 7382s # g_free (paramv); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 7382s # GVariant *changed_properties, 7382s # const gchar *const *invalidated_properties) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 7382s # guint n; 7382s # const gchar *key; 7382s # GVariantIter *iter; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # g_variant_get (changed_properties, "a{sv}", &iter); 7382s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7382s # { 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 7382s # g_datalist_remove_data (&proxy->priv->qdata, key); 7382s # if (info != NULL) 7382s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7382s # } 7382s # g_variant_iter_free (iter); 7382s # for (n = 0; invalidated_properties[n] != NULL; n++) 7382s # { 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 7382s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7382s # if (info != NULL) 7382s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7382s # } 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_proxy_get_good_property_type (GoodTypes *object) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 7382s # GVariant *variant; 7382s # GVariant *value = NULL; 7382s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 7382s # value = variant; 7382s # if (variant != NULL) 7382s # g_variant_unref (variant); 7382s # return value; 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_init (GoodTypesProxy *proxy) 7382s # { 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # proxy->priv = good_types_proxy_get_instance_private (proxy); 7382s # #else 7382s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 7382s # #endif 7382s # 7382s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 7382s # { 7382s # GObjectClass *gobject_class; 7382s # GDBusProxyClass *proxy_class; 7382s # 7382s # gobject_class = G_OBJECT_CLASS (klass); 7382s # gobject_class->finalize = good_types_proxy_finalize; 7382s # gobject_class->get_property = good_types_proxy_get_property; 7382s # gobject_class->set_property = good_types_proxy_set_property; 7382s # 7382s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7382s # proxy_class->g_signal = good_types_proxy_g_signal; 7382s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 7382s # 7382s # good_types_override_properties (gobject_class, 1); 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7382s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 7382s # #endif 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_iface_init (GoodTypesIface *iface) 7382s # { 7382s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new: 7382s # * @connection: A #GDBusConnection. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7382s # * @user_data: User data to pass to @callback. 7382s # * 7382s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 7382s # * 7382s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7382s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 7382s # * 7382s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 7382s # */ 7382s # void 7382s # good_types_proxy_new ( 7382s # GDBusConnection *connection, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GAsyncReadyCallback callback, 7382s # gpointer user_data) 7382s # { 7382s # 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); 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_finish: 7382s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Finishes an operation started with good_types_proxy_new(). 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_finish ( 7382s # GAsyncResult *res, 7382s # GError **error) 7382s # { 7382s # GObject *ret; 7382s # GObject *source_object; 7382s # source_object = g_async_result_get_source_object (res); 7382s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7382s # g_object_unref (source_object); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_sync: 7382s # * @connection: A #GDBusConnection. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 7382s # * 7382s # * The calling thread is blocked until a reply is received. 7382s # * 7382s # * See good_types_proxy_new() for the asynchronous version of this constructor. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_sync ( 7382s # GDBusConnection *connection, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GError **error) 7382s # { 7382s # GInitable *ret; 7382s # 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); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus: 7382s # * @bus_type: A #GBusType. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: A bus name (well-known or unique). 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7382s # * @user_data: User data to pass to @callback. 7382s # * 7382s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7382s # * 7382s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7382s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 7382s # * 7382s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7382s # */ 7382s # void 7382s # good_types_proxy_new_for_bus ( 7382s # GBusType bus_type, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GAsyncReadyCallback callback, 7382s # gpointer user_data) 7382s # { 7382s # 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); 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus_finish: 7382s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Finishes an operation started with good_types_proxy_new_for_bus(). 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_for_bus_finish ( 7382s # GAsyncResult *res, 7382s # GError **error) 7382s # { 7382s # GObject *ret; 7382s # GObject *source_object; 7382s # source_object = g_async_result_get_source_object (res); 7382s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7382s # g_object_unref (source_object); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus_sync: 7382s # * @bus_type: A #GBusType. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: A bus name (well-known or unique). 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7382s # * 7382s # * The calling thread is blocked until a reply is received. 7382s # * 7382s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_for_bus_sync ( 7382s # GBusType bus_type, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GError **error) 7382s # { 7382s # GInitable *ret; 7382s # 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); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # 7382s # /* ------------------------------------------------------------------------ */ 7382s # 7382s # /** 7382s # * GoodTypesSkeleton: 7382s # * 7382s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesSkeletonClass: 7382s # * @parent_class: The parent class. 7382s # * 7382s # * Class structure for GoodTypesSkeleton. 7382s # */ 7382s # 7382s # struct _GoodTypesSkeletonPrivate 7382s # { 7382s # GValue *properties; 7382s # GList *changed_properties; 7382s # GSource *changed_properties_idle_source; 7382s # GMainContext *context; 7382s # GMutex lock; 7382s # }; 7382s # 7382s # static void 7382s # _good_types_skeleton_handle_method_call ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name, 7382s # const gchar *method_name, 7382s # GVariant *parameters, 7382s # GDBusMethodInvocation *invocation, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # _ExtendedGDBusMethodInfo *info; 7382s # GVariantIter iter; 7382s # GVariant *child; 7382s # GValue *paramv; 7382s # gsize num_params; 7382s # guint num_extra; 7382s # gsize n; 7382s # guint signal_id; 7382s # GValue return_value = G_VALUE_INIT; 7382s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7382s # g_assert (info != NULL); 7382s # num_params = g_variant_n_children (parameters); 7382s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7382s # n = 0; 7382s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 7382s # g_value_set_object (¶mv[n++], skeleton); 7382s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7382s # g_value_set_object (¶mv[n++], invocation); 7382s # if (info->pass_fdlist) 7382s # { 7382s # #ifdef G_OS_UNIX 7382s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7382s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7382s # #else 7382s # g_assert_not_reached (); 7382s # #endif 7382s # } 7382s # g_variant_iter_init (&iter, parameters); 7382s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7382s # { 7382s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7382s # if (arg_info->use_gvariant) 7382s # { 7382s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7382s # g_value_set_variant (¶mv[n], child); 7382s # n++; 7382s # } 7382s # else 7382s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7382s # g_variant_unref (child); 7382s # } 7382s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 7382s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7382s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7382s # if (!g_value_get_boolean (&return_value)) 7382s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7382s # g_value_unset (&return_value); 7382s # for (n = 0; n < num_params + num_extra; n++) 7382s # g_value_unset (¶mv[n]); 7382s # g_free (paramv); 7382s # } 7382s # 7382s # static GVariant * 7382s # _good_types_skeleton_handle_get_property ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name G_GNUC_UNUSED, 7382s # const gchar *property_name, 7382s # GError **error, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GValue value = G_VALUE_INIT; 7382s # GParamSpec *pspec; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *ret; 7382s # ret = NULL; 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 7382s # g_assert (info != NULL); 7382s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7382s # if (pspec == NULL) 7382s # { 7382s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7382s # } 7382s # else 7382s # { 7382s # g_value_init (&value, pspec->value_type); 7382s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7382s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7382s # g_value_unset (&value); 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # static gboolean 7382s # _good_types_skeleton_handle_set_property ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name G_GNUC_UNUSED, 7382s # const gchar *property_name, 7382s # GVariant *variant, 7382s # GError **error, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GValue value = G_VALUE_INIT; 7382s # GParamSpec *pspec; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # gboolean ret; 7382s # ret = FALSE; 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 7382s # g_assert (info != NULL); 7382s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7382s # if (pspec == NULL) 7382s # { 7382s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7382s # } 7382s # else 7382s # { 7382s # if (info->use_gvariant) 7382s # g_value_set_variant (&value, variant); 7382s # else 7382s # g_dbus_gvariant_to_gvalue (variant, &value); 7382s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7382s # g_value_unset (&value); 7382s # ret = TRUE; 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 7382s # { 7382s # _good_types_skeleton_handle_method_call, 7382s # _good_types_skeleton_handle_get_property, 7382s # _good_types_skeleton_handle_set_property, 7382s # {NULL} 7382s # }; 7382s # 7382s # static GDBusInterfaceInfo * 7382s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7382s # { 7382s # return good_types_interface_info (); 7382s # } 7382s # 7382s # static GDBusInterfaceVTable * 7382s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7382s # { 7382s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 7382s # 7382s # GVariantBuilder builder; 7382s # guint n; 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7382s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # #else 7382s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # #endif 7382s # if (_good_types_interface_info.parent_struct.properties == NULL) 7382s # goto out; 7382s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 7382s # { 7382s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 7382s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7382s # { 7382s # GVariant *value; 7382s # 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); 7382s # if (value != NULL) 7382s # { 7382s # g_variant_take_ref (value); 7382s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7382s # g_variant_unref (value); 7382s # } 7382s # } 7382s # } 7382s # out: 7382s # return g_variant_builder_end (&builder); 7382s # } 7382s # 7382s # static gboolean _good_types_emit_changed (gpointer user_data); 7382s # 7382s # static void 7382s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 7382s # gboolean emit_changed = FALSE; 7382s # 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # if (skeleton->priv->changed_properties_idle_source != NULL) 7382s # { 7382s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7382s # skeleton->priv->changed_properties_idle_source = NULL; 7382s # emit_changed = TRUE; 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # 7382s # if (emit_changed) 7382s # _good_types_emit_changed (skeleton); 7382s # } 7382s # 7382s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7382s # G_ADD_PRIVATE (GoodTypesSkeleton) 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 7382s # 7382s # #else 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 7382s # 7382s # #endif 7382s # static void 7382s # good_types_skeleton_finalize (GObject *object) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # guint n; 7382s # for (n = 0; n < 1; n++) 7382s # g_value_unset (&skeleton->priv->properties[n]); 7382s # g_free (skeleton->priv->properties); 7382s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7382s # if (skeleton->priv->changed_properties_idle_source != NULL) 7382s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7382s # g_main_context_unref (skeleton->priv->context); 7382s # g_mutex_clear (&skeleton->priv->lock); 7382s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_get_property (GObject *object, 7382s # guint prop_id, 7382s # GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # } 7382s # 7382s # static gboolean 7382s # _good_types_emit_changed (gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GList *l; 7382s # GVariantBuilder builder; 7382s # GVariantBuilder invalidated_builder; 7382s # guint num_changes; 7382s # 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7382s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 7382s # #else 7382s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 7382s # #endif 7382s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 7382s # { 7382s # ChangedProperty *cp = l->data; 7382s # GVariant *variant; 7382s # const GValue *cur_value; 7382s # 7382s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 7382s # if (!_g_value_equal (cur_value, &cp->orig_value)) 7382s # { 7382s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 7382s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 7382s # g_variant_unref (variant); 7382s # num_changes++; 7382s # } 7382s # } 7382s # if (num_changes > 0) 7382s # { 7382s # GList *connections, *ll; 7382s # GVariant *signal_variant; 7382s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 7382s # &builder, &invalidated_builder)); 7382s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7382s # for (ll = connections; ll != NULL; ll = ll->next) 7382s # { 7382s # GDBusConnection *connection = ll->data; 7382s # 7382s # g_dbus_connection_emit_signal (connection, 7382s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 7382s # "org.freedesktop.DBus.Properties", 7382s # "PropertiesChanged", 7382s # signal_variant, 7382s # NULL); 7382s # } 7382s # g_variant_unref (signal_variant); 7382s # g_list_free_full (connections, g_object_unref); 7382s # } 7382s # else 7382s # { 7382s # g_variant_builder_clear (&builder); 7382s # g_variant_builder_clear (&invalidated_builder); 7382s # } 7382s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7382s # skeleton->priv->changed_properties = NULL; 7382s # skeleton->priv->changed_properties_idle_source = NULL; 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # return FALSE; 7382s # } 7382s # 7382s # static void 7382s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 7382s # { 7382s # ChangedProperty *cp; 7382s # GList *l; 7382s # cp = NULL; 7382s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 7382s # { 7382s # ChangedProperty *i_cp = l->data; 7382s # if (i_cp->info == info) 7382s # { 7382s # cp = i_cp; 7382s # break; 7382s # } 7382s # } 7382s # if (cp == NULL) 7382s # { 7382s # cp = g_new0 (ChangedProperty, 1); 7382s # cp->prop_id = prop_id; 7382s # cp->info = info; 7382s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 7382s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 7382s # g_value_copy (orig_value, &cp->orig_value); 7382s # } 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_notify (GObject *object, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # if (skeleton->priv->changed_properties != NULL && 7382s # skeleton->priv->changed_properties_idle_source == NULL) 7382s # { 7382s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 7382s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 7382s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 7382s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 7382s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 7382s # g_source_unref (skeleton->priv->changed_properties_idle_source); 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_set_property (GObject *object, 7382s # guint prop_id, 7382s # const GValue *value, 7382s # GParamSpec *pspec) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # g_object_freeze_notify (object); 7382s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 7382s # { 7382s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 7382s # info->emits_changed_signal) 7382s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 7382s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 7382s # g_object_notify_by_pspec (object, pspec); 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # g_object_thaw_notify (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 7382s # { 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 7382s # #else 7382s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 7382s # #endif 7382s # 7382s # g_mutex_init (&skeleton->priv->lock); 7382s # skeleton->priv->context = g_main_context_ref_thread_default (); 7382s # skeleton->priv->properties = g_new0 (GValue, 1); 7382s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_skeleton_get_good_property_type (GoodTypes *object) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # GVariant *value; 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # return value; 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 7382s # { 7382s # GObjectClass *gobject_class; 7382s # GDBusInterfaceSkeletonClass *skeleton_class; 7382s # 7382s # gobject_class = G_OBJECT_CLASS (klass); 7382s # gobject_class->finalize = good_types_skeleton_finalize; 7382s # gobject_class->get_property = good_types_skeleton_get_property; 7382s # gobject_class->set_property = good_types_skeleton_set_property; 7382s # gobject_class->notify = good_types_skeleton_notify; 7382s # 7382s # 7382s # good_types_override_properties (gobject_class, 1); 7382s # 7382s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7382s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 7382s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 7382s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 7382s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7382s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 7382s # #endif 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_iface_init (GoodTypesIface *iface) 7382s # { 7382s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 7382s # } 7382s # 7382s # /** 7382s # * good_types_skeleton_new: 7382s # * 7382s # * Creates a skeleton object for the D-Bus interface GoodTypes. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 7382s # */ 7382s # GoodTypes * 7382s # good_types_skeleton_new (void) 7382s # { 7382s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 7382s # } 7382s # Error: 7382s # 7382s # /tmp/tmp3p3yzvwn/tmpap80qr8_.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmpap80qr8_.xml', '--output', '-', '--body'] 7382s # Return code: 0 7382s # Output: 7382s # /* 7382s # * This file is generated by gdbus-codegen, do not modify it. 7382s # * 7382s # * The license of this code is the same as for the D-Bus interface description 7382s # * it was derived from. Note that it links to GLib, so must comply with the 7382s # * LGPL linking clauses. 7382s # */ 7382s # 7382s # #ifdef HAVE_CONFIG_H 7382s # # include "config.h" 7382s # #endif 7382s # 7382s # #include 7382s # #ifdef G_OS_UNIX 7382s # # include 7382s # #endif 7382s # 7382s # #ifdef G_ENABLE_DEBUG 7382s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7382s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7382s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7382s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7382s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7382s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7382s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7382s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7382s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7382s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7382s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7382s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7382s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7382s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7382s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7382s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7382s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7382s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7382s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7382s # #else /* !G_ENABLE_DEBUG */ 7382s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7382s # * Do not access GValues directly in your code. Instead, use the 7382s # * g_value_get_*() functions 7382s # */ 7382s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7382s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7382s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7382s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7382s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7382s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7382s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7382s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7382s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7382s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7382s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7382s # #endif /* !G_ENABLE_DEBUG */ 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusArgInfo parent_struct; 7382s # gboolean use_gvariant; 7382s # } _ExtendedGDBusArgInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusMethodInfo parent_struct; 7382s # const gchar *signal_name; 7382s # gboolean pass_fdlist; 7382s # } _ExtendedGDBusMethodInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusSignalInfo parent_struct; 7382s # const gchar *signal_name; 7382s # } _ExtendedGDBusSignalInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusPropertyInfo parent_struct; 7382s # const gchar *hyphen_name; 7382s # guint use_gvariant : 1; 7382s # guint emits_changed_signal : 1; 7382s # } _ExtendedGDBusPropertyInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusInterfaceInfo parent_struct; 7382s # const gchar *hyphen_name; 7382s # } _ExtendedGDBusInterfaceInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # guint prop_id; 7382s # GValue orig_value; /* the value before the change */ 7382s # } ChangedProperty; 7382s # 7382s # static void 7382s # _changed_property_free (ChangedProperty *data) 7382s # { 7382s # g_value_unset (&data->orig_value); 7382s # g_free (data); 7382s # } 7382s # 7382s # static gboolean 7382s # _g_strv_equal0 (gchar **a, gchar **b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # guint n; 7382s # if (a == NULL && b == NULL) 7382s # { 7382s # ret = TRUE; 7382s # goto out; 7382s # } 7382s # if (a == NULL || b == NULL) 7382s # goto out; 7382s # if (g_strv_length (a) != g_strv_length (b)) 7382s # goto out; 7382s # for (n = 0; a[n] != NULL; n++) 7382s # if (g_strcmp0 (a[n], b[n]) != 0) 7382s # goto out; 7382s # ret = TRUE; 7382s # out: 7382s # return ret; 7382s # } 7382s # 7382s # static gboolean 7382s # _g_variant_equal0 (GVariant *a, GVariant *b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # if (a == NULL && b == NULL) 7382s # { 7382s # ret = TRUE; 7382s # goto out; 7382s # } 7382s # if (a == NULL || b == NULL) 7382s # goto out; 7382s # ret = g_variant_equal (a, b); 7382s # out: 7382s # return ret; 7382s # } 7382s # 7382s # G_GNUC_UNUSED static gboolean 7382s # _g_value_equal (const GValue *a, const GValue *b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7382s # switch (G_VALUE_TYPE (a)) 7382s # { 7382s # case G_TYPE_BOOLEAN: 7382s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7382s # break; 7382s # case G_TYPE_UCHAR: 7382s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7382s # break; 7382s # case G_TYPE_INT: 7382s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7382s # break; 7382s # case G_TYPE_UINT: 7382s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7382s # break; 7382s # case G_TYPE_INT64: 7382s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7382s # break; 7382s # case G_TYPE_UINT64: 7382s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7382s # break; 7382s # case G_TYPE_DOUBLE: 7382s # { 7382s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7382s # gdouble da = g_value_get_double (a); 7382s # gdouble db = g_value_get_double (b); 7382s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7382s # } 7382s # break; 7382s # case G_TYPE_STRING: 7382s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7382s # break; 7382s # case G_TYPE_VARIANT: 7382s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7382s # break; 7382s # default: 7382s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7382s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7382s # else 7382s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7382s # break; 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # /* ------------------------------------------------------------------------ 7382s # * Code for interface GoodTypes 7382s # * ------------------------------------------------------------------------ 7382s # */ 7382s # 7382s # /** 7382s # * SECTION:GoodTypes 7382s # * @title: GoodTypes 7382s # * @short_description: Generated C code for the GoodTypes D-Bus interface 7382s # * 7382s # * This section contains code for working with the GoodTypes D-Bus interface in C. 7382s # */ 7382s # 7382s # /* ---- Introspection data for GoodTypes ---- */ 7382s # 7382s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 7382s # { 7382s # { 7382s # -1, 7382s # (gchar *) "GoodPropertyType", 7382s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 7382s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 7382s # NULL 7382s # }, 7382s # "good-property-type", 7382s # FALSE, 7382s # TRUE 7382s # }; 7382s # 7382s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 7382s # { 7382s # &_good_types_property_info_good_property_type.parent_struct, 7382s # NULL 7382s # }; 7382s # 7382s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 7382s # { 7382s # { 7382s # -1, 7382s # (gchar *) "GoodTypes", 7382s # NULL, 7382s # NULL, 7382s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 7382s # NULL 7382s # }, 7382s # "good-types", 7382s # }; 7382s # 7382s # 7382s # /** 7382s # * good_types_interface_info: 7382s # * 7382s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 7382s # * 7382s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7382s # */ 7382s # GDBusInterfaceInfo * 7382s # good_types_interface_info (void) 7382s # { 7382s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 7382s # } 7382s # 7382s # /** 7382s # * good_types_override_properties: 7382s # * @klass: The class structure for a #GObject derived class. 7382s # * @property_id_begin: The property id to assign to the first overridden property. 7382s # * 7382s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 7382s # * The properties are overridden in the order they are defined. 7382s # * 7382s # * Returns: The last property id. 7382s # */ 7382s # guint 7382s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 7382s # { 7382s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 7382s # return property_id_begin - 1; 7382s # } 7382s # 7382s # 7382s # 7382s # /** 7382s # * GoodTypes: 7382s # * 7382s # * Abstract interface type for the D-Bus interface GoodTypes. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesIface: 7382s # * @parent_iface: The parent interface. 7382s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 7382s # * 7382s # * Virtual table for the D-Bus interface GoodTypes. 7382s # */ 7382s # 7382s # typedef GoodTypesIface GoodTypesInterface; 7382s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 7382s # 7382s # static void 7382s # good_types_default_init (GoodTypesIface *iface) 7382s # { 7382s # /* GObject properties for D-Bus properties: */ 7382s # /** 7382s # * GoodTypes:good-property-type: 7382s # * 7382s # * Represents the D-Bus property "GoodPropertyType". 7382s # * 7382s # * 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. 7382s # */ 7382s # g_object_interface_install_property (iface, 7382s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 7382s # } 7382s # 7382s # /** 7382s # * good_types_get_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * 7382s # * Gets the value of the "GoodPropertyType" D-Bus property. 7382s # * 7382s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7382s # * 7382s # * 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. 7382s # * 7382s # * 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. 7382s # */ 7382s # GVariant * 7382s # good_types_get_good_property_type (GoodTypes *object) 7382s # { 7382s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 7382s # 7382s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 7382s # } 7382s # 7382s # /** 7382s # * good_types_dup_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * 7382s # * Gets a copy of the "GoodPropertyType" D-Bus property. 7382s # * 7382s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7382s # * 7382s # * 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(). 7382s # */ 7382s # GVariant * 7382s # good_types_dup_good_property_type (GoodTypes *object) 7382s # { 7382s # GVariant *value; 7382s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 7382s # return value; 7382s # } 7382s # 7382s # /** 7382s # * good_types_set_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * @value: The value to set. 7382s # * 7382s # * Sets the "GoodPropertyType" D-Bus property to @value. 7382s # * 7382s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 7382s # */ 7382s # void 7382s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 7382s # { 7382s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 7382s # } 7382s # 7382s # /* ------------------------------------------------------------------------ */ 7382s # 7382s # /** 7382s # * GoodTypesProxy: 7382s # * 7382s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesProxyClass: 7382s # * @parent_class: The parent class. 7382s # * 7382s # * Class structure for GoodTypesProxy. 7382s # */ 7382s # 7382s # struct _GoodTypesProxyPrivate 7382s # { 7382s # GData *qdata; 7382s # }; 7382s # 7382s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 7382s # G_ADD_PRIVATE (GoodTypesProxy) 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 7382s # 7382s # #else 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 7382s # 7382s # #endif 7382s # static void 7382s # good_types_proxy_finalize (GObject *object) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 7382s # g_datalist_clear (&proxy->priv->qdata); 7382s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_get_property (GObject *object, 7382s # guint prop_id, 7382s # GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *variant; 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 7382s # if (info->use_gvariant) 7382s # { 7382s # g_value_set_variant (value, variant); 7382s # } 7382s # else 7382s # { 7382s # if (variant != NULL) 7382s # g_dbus_gvariant_to_gvalue (variant, value); 7382s # } 7382s # if (variant != NULL) 7382s # g_variant_unref (variant); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 7382s # GAsyncResult *res, 7382s # gpointer user_data) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info = user_data; 7382s # GError *error; 7382s # GVariant *_ret; 7382s # error = NULL; 7382s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 7382s # if (!_ret) 7382s # { 7382s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 7382s # info->parent_struct.name, 7382s # error->message, g_quark_to_string (error->domain), error->code); 7382s # g_error_free (error); 7382s # } 7382s # else 7382s # { 7382s # g_variant_unref (_ret); 7382s # } 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_set_property (GObject *object, 7382s # guint prop_id, 7382s # const GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *variant; 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 7382s # g_dbus_proxy_call (G_DBUS_PROXY (object), 7382s # "org.freedesktop.DBus.Properties.Set", 7382s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 7382s # G_DBUS_CALL_FLAGS_NONE, 7382s # -1, 7382s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 7382s # g_variant_unref (variant); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_g_signal (GDBusProxy *proxy, 7382s # const gchar *sender_name G_GNUC_UNUSED, 7382s # const gchar *signal_name, 7382s # GVariant *parameters) 7382s # { 7382s # _ExtendedGDBusSignalInfo *info; 7382s # GVariantIter iter; 7382s # GVariant *child; 7382s # GValue *paramv; 7382s # gsize num_params; 7382s # gsize n; 7382s # guint signal_id; 7382s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 7382s # if (info == NULL) 7382s # return; 7382s # num_params = g_variant_n_children (parameters); 7382s # paramv = g_new0 (GValue, num_params + 1); 7382s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 7382s # g_value_set_object (¶mv[0], proxy); 7382s # g_variant_iter_init (&iter, parameters); 7382s # n = 1; 7382s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7382s # { 7382s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7382s # if (arg_info->use_gvariant) 7382s # { 7382s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7382s # g_value_set_variant (¶mv[n], child); 7382s # n++; 7382s # } 7382s # else 7382s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7382s # g_variant_unref (child); 7382s # } 7382s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 7382s # g_signal_emitv (paramv, signal_id, 0, NULL); 7382s # for (n = 0; n < num_params + 1; n++) 7382s # g_value_unset (¶mv[n]); 7382s # g_free (paramv); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 7382s # GVariant *changed_properties, 7382s # const gchar *const *invalidated_properties) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 7382s # guint n; 7382s # const gchar *key; 7382s # GVariantIter *iter; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # g_variant_get (changed_properties, "a{sv}", &iter); 7382s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7382s # { 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 7382s # g_datalist_remove_data (&proxy->priv->qdata, key); 7382s # if (info != NULL) 7382s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7382s # } 7382s # g_variant_iter_free (iter); 7382s # for (n = 0; invalidated_properties[n] != NULL; n++) 7382s # { 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 7382s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7382s # if (info != NULL) 7382s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7382s # } 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_proxy_get_good_property_type (GoodTypes *object) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 7382s # GVariant *variant; 7382s # GVariant *value = NULL; 7382s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 7382s # value = variant; 7382s # if (variant != NULL) 7382s # g_variant_unref (variant); 7382s # return value; 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_init (GoodTypesProxy *proxy) 7382s # { 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # proxy->priv = good_types_proxy_get_instance_private (proxy); 7382s # #else 7382s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 7382s # #endif 7382s # 7382s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 7382s # { 7382s # GObjectClass *gobject_class; 7382s # GDBusProxyClass *proxy_class; 7382s # 7382s # gobject_class = G_OBJECT_CLASS (klass); 7382s # gobject_class->finalize = good_types_proxy_finalize; 7382s # gobject_class->get_property = good_types_proxy_get_property; 7382s # gobject_class->set_property = good_types_proxy_set_property; 7382s # 7382s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7382s # proxy_class->g_signal = good_types_proxy_g_signal; 7382s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 7382s # 7382s # good_types_override_properties (gobject_class, 1); 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7382s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 7382s # #endif 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_iface_init (GoodTypesIface *iface) 7382s # { 7382s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new: 7382s # * @connection: A #GDBusConnection. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7382s # * @user_data: User data to pass to @callback. 7382s # * 7382s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 7382s # * 7382s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7382s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 7382s # * 7382s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 7382s # */ 7382s # void 7382s # good_types_proxy_new ( 7382s # GDBusConnection *connection, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GAsyncReadyCallback callback, 7382s # gpointer user_data) 7382s # { 7382s # 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); 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_finish: 7382s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Finishes an operation started with good_types_proxy_new(). 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_finish ( 7382s # GAsyncResult *res, 7382s # GError **error) 7382s # { 7382s # GObject *ret; 7382s # GObject *source_object; 7382s # source_object = g_async_result_get_source_object (res); 7382s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7382s # g_object_unref (source_object); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_sync: 7382s # * @connection: A #GDBusConnection. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 7382s # * 7382s # * The calling thread is blocked until a reply is received. 7382s # * 7382s # * See good_types_proxy_new() for the asynchronous version of this constructor. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_sync ( 7382s # GDBusConnection *connection, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GError **error) 7382s # { 7382s # GInitable *ret; 7382s # 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); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus: 7382s # * @bus_type: A #GBusType. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: A bus name (well-known or unique). 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7382s # * @user_data: User data to pass to @callback. 7382s # * 7382s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7382s # * 7382s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7382s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 7382s # * 7382s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7382s # */ 7382s # void 7382s # good_types_proxy_new_for_bus ( 7382s # GBusType bus_type, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GAsyncReadyCallback callback, 7382s # gpointer user_data) 7382s # { 7382s # 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); 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus_finish: 7382s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Finishes an operation started with good_types_proxy_new_for_bus(). 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_for_bus_finish ( 7382s # GAsyncResult *res, 7382s # GError **error) 7382s # { 7382s # GObject *ret; 7382s # GObject *source_object; 7382s # source_object = g_async_result_get_source_object (res); 7382s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7382s # g_object_unref (source_object); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus_sync: 7382s # * @bus_type: A #GBusType. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: A bus name (well-known or unique). 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7382s # * 7382s # * The calling thread is blocked until a reply is received. 7382s # * 7382s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_for_bus_sync ( 7382s # GBusType bus_type, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GError **error) 7382s # { 7382s # GInitable *ret; 7382s # 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); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # 7382s # /* ------------------------------------------------------------------------ */ 7382s # 7382s # /** 7382s # * GoodTypesSkeleton: 7382s # * 7382s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesSkeletonClass: 7382s # * @parent_class: The parent class. 7382s # * 7382s # * Class structure for GoodTypesSkeleton. 7382s # */ 7382s # 7382s # struct _GoodTypesSkeletonPrivate 7382s # { 7382s # GValue *properties; 7382s # GList *changed_properties; 7382s # GSource *changed_properties_idle_source; 7382s # GMainContext *context; 7382s # GMutex lock; 7382s # }; 7382s # 7382s # static void 7382s # _good_types_skeleton_handle_method_call ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name, 7382s # const gchar *method_name, 7382s # GVariant *parameters, 7382s # GDBusMethodInvocation *invocation, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # _ExtendedGDBusMethodInfo *info; 7382s # GVariantIter iter; 7382s # GVariant *child; 7382s # GValue *paramv; 7382s # gsize num_params; 7382s # guint num_extra; 7382s # gsize n; 7382s # guint signal_id; 7382s # GValue return_value = G_VALUE_INIT; 7382s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7382s # g_assert (info != NULL); 7382s # num_params = g_variant_n_children (parameters); 7382s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7382s # n = 0; 7382s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 7382s # g_value_set_object (¶mv[n++], skeleton); 7382s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7382s # g_value_set_object (¶mv[n++], invocation); 7382s # if (info->pass_fdlist) 7382s # { 7382s # #ifdef G_OS_UNIX 7382s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7382s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7382s # #else 7382s # g_assert_not_reached (); 7382s # #endif 7382s # } 7382s # g_variant_iter_init (&iter, parameters); 7382s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7382s # { 7382s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7382s # if (arg_info->use_gvariant) 7382s # { 7382s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7382s # g_value_set_variant (¶mv[n], child); 7382s # n++; 7382s # } 7382s # else 7382s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7382s # g_variant_unref (child); 7382s # } 7382s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 7382s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7382s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7382s # if (!g_value_get_boolean (&return_value)) 7382s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7382s # g_value_unset (&return_value); 7382s # for (n = 0; n < num_params + num_extra; n++) 7382s # g_value_unset (¶mv[n]); 7382s # g_free (paramv); 7382s # } 7382s # 7382s # static GVariant * 7382s # _good_types_skeleton_handle_get_property ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name G_GNUC_UNUSED, 7382s # const gchar *property_name, 7382s # GError **error, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GValue value = G_VALUE_INIT; 7382s # GParamSpec *pspec; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *ret; 7382s # ret = NULL; 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 7382s # g_assert (info != NULL); 7382s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7382s # if (pspec == NULL) 7382s # { 7382s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7382s # } 7382s # else 7382s # { 7382s # g_value_init (&value, pspec->value_type); 7382s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7382s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7382s # g_value_unset (&value); 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # static gboolean 7382s # _good_types_skeleton_handle_set_property ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name G_GNUC_UNUSED, 7382s # const gchar *property_name, 7382s # GVariant *variant, 7382s # GError **error, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GValue value = G_VALUE_INIT; 7382s # GParamSpec *pspec; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # gboolean ret; 7382s # ret = FALSE; 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 7382s # g_assert (info != NULL); 7382s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7382s # if (pspec == NULL) 7382s # { 7382s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7382s # } 7382s # else 7382s # { 7382s # if (info->use_gvariant) 7382s # g_value_set_variant (&value, variant); 7382s # else 7382s # g_dbus_gvariant_to_gvalue (variant, &value); 7382s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7382s # g_value_unset (&value); 7382s # ret = TRUE; 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 7382s # { 7382s # _good_types_skeleton_handle_method_call, 7382s # _good_types_skeleton_handle_get_property, 7382s # _good_types_skeleton_handle_set_property, 7382s # {NULL} 7382s # }; 7382s # 7382s # static GDBusInterfaceInfo * 7382s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7382s # { 7382s # return good_types_interface_info (); 7382s # } 7382s # 7382s # static GDBusInterfaceVTable * 7382s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7382s # { 7382s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 7382s # 7382s # GVariantBuilder builder; 7382s # guint n; 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7382s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # #else 7382s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # #endif 7382s # if (_good_types_interface_info.parent_struct.properties == NULL) 7382s # goto out; 7382s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 7382s # { 7382s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 7382s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7382s # { 7382s # GVariant *value; 7382s # 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); 7382s # if (value != NULL) 7382s # { 7382s # g_variant_take_ref (value); 7382s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7382s # g_variant_unref (value); 7382s # } 7382s # } 7382s # } 7382s # out: 7382s # return g_variant_builder_end (&builder); 7382s # } 7382s # 7382s # static gboolean _good_types_emit_changed (gpointer user_data); 7382s # 7382s # static void 7382s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 7382s # gboolean emit_changed = FALSE; 7382s # 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # if (skeleton->priv->changed_properties_idle_source != NULL) 7382s # { 7382s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7382s # skeleton->priv->changed_properties_idle_source = NULL; 7382s # emit_changed = TRUE; 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # 7382s # if (emit_changed) 7382s # _good_types_emit_changed (skeleton); 7382s # } 7382s # 7382s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7382s # G_ADD_PRIVATE (GoodTypesSkeleton) 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 7382s # 7382s # #else 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 7382s # 7382s # #endif 7382s # static void 7382s # good_types_skeleton_finalize (GObject *object) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # guint n; 7382s # for (n = 0; n < 1; n++) 7382s # g_value_unset (&skeleton->priv->properties[n]); 7382s # g_free (skeleton->priv->properties); 7382s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7382s # if (skeleton->priv->changed_properties_idle_source != NULL) 7382s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7382s # g_main_context_unref (skeleton->priv->context); 7382s # g_mutex_clear (&skeleton->priv->lock); 7382s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_get_property (GObject *object, 7382s # guint prop_id, 7382s # GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # } 7382s # 7382s # static gboolean 7382s # _good_types_emit_changed (gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GList *l; 7382s # GVariantBuilder builder; 7382s # GVariantBuilder invalidated_builder; 7382s # guint num_changes; 7382s # 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7382s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 7382s # #else 7382s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 7382s # #endif 7382s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 7382s # { 7382s # ChangedProperty *cp = l->data; 7382s # GVariant *variant; 7382s # const GValue *cur_value; 7382s # 7382s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 7382s # if (!_g_value_equal (cur_value, &cp->orig_value)) 7382s # { 7382s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 7382s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 7382s # g_variant_unref (variant); 7382s # num_changes++; 7382s # } 7382s # } 7382s # if (num_changes > 0) 7382s # { 7382s # GList *connections, *ll; 7382s # GVariant *signal_variant; 7382s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 7382s # &builder, &invalidated_builder)); 7382s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7382s # for (ll = connections; ll != NULL; ll = ll->next) 7382s # { 7382s # GDBusConnection *connection = ll->data; 7382s # 7382s # g_dbus_connection_emit_signal (connection, 7382s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 7382s # "org.freedesktop.DBus.Properties", 7382s # "PropertiesChanged", 7382s # signal_variant, 7382s # NULL); 7382s # } 7382s # g_variant_unref (signal_variant); 7382s # g_list_free_full (connections, g_object_unref); 7382s # } 7382s # else 7382s # { 7382s # g_variant_builder_clear (&builder); 7382s # g_variant_builder_clear (&invalidated_builder); 7382s # } 7382s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7382s # skeleton->priv->changed_properties = NULL; 7382s # skeleton->priv->changed_properties_idle_source = NULL; 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # return FALSE; 7382s # } 7382s # 7382s # static void 7382s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 7382s # { 7382s # ChangedProperty *cp; 7382s # GList *l; 7382s # cp = NULL; 7382s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 7382s # { 7382s # ChangedProperty *i_cp = l->data; 7382s # if (i_cp->info == info) 7382s # { 7382s # cp = i_cp; 7382s # break; 7382s # } 7382s # } 7382s # if (cp == NULL) 7382s # { 7382s # cp = g_new0 (ChangedProperty, 1); 7382s # cp->prop_id = prop_id; 7382s # cp->info = info; 7382s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 7382s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 7382s # g_value_copy (orig_value, &cp->orig_value); 7382s # } 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_notify (GObject *object, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # if (skeleton->priv->changed_properties != NULL && 7382s # skeleton->priv->changed_properties_idle_source == NULL) 7382s # { 7382s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 7382s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 7382s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 7382s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 7382s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 7382s # g_source_unref (skeleton->priv->changed_properties_idle_source); 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_set_property (GObject *object, 7382s # guint prop_id, 7382s # const GValue *value, 7382s # GParamSpec *pspec) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # g_object_freeze_notify (object); 7382s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 7382s # { 7382s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 7382s # info->emits_changed_signal) 7382s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 7382s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 7382s # g_object_notify_by_pspec (object, pspec); 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # g_object_thaw_notify (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 7382s # { 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 7382s # #else 7382s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 7382s # #endif 7382s # 7382s # g_mutex_init (&skeleton->priv->lock); 7382s # skeleton->priv->context = g_main_context_ref_thread_default (); 7382s # skeleton->priv->properties = g_new0 (GValue, 1); 7382s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_skeleton_get_good_property_type (GoodTypes *object) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # GVariant *value; 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # return value; 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 7382s # { 7382s # GObjectClass *gobject_class; 7382s # GDBusInterfaceSkeletonClass *skeleton_class; 7382s # 7382s # gobject_class = G_OBJECT_CLASS (klass); 7382s # gobject_class->finalize = good_types_skeleton_finalize; 7382s # gobject_class->get_property = good_types_skeleton_get_property; 7382s # gobject_class->set_property = good_types_skeleton_set_property; 7382s # gobject_class->notify = good_types_skeleton_notify; 7382s # 7382s # 7382s # good_types_override_properties (gobject_class, 1); 7382s # 7382s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7382s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 7382s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 7382s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 7382s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7382s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 7382s # #endif 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_iface_init (GoodTypesIface *iface) 7382s # { 7382s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 7382s # } 7382s # 7382s # /** 7382s # * good_types_skeleton_new: 7382s # * 7382s # * Creates a skeleton object for the D-Bus interface GoodTypes. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 7382s # */ 7382s # GoodTypes * 7382s # good_types_skeleton_new (void) 7382s # { 7382s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 7382s # } 7382s # Error: 7382s # 7382s # /tmp/tmp3p3yzvwn/tmps4cktvn_.xml: 7382s # 7382s # 7382s # 7382s # 7382s # 7382s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3p3yzvwn/tmps4cktvn_.xml', '--output', '-', '--body'] 7382s # Return code: 0 7382s # Output: 7382s # /* 7382s # * This file is generated by gdbus-codegen, do not modify it. 7382s # * 7382s # * The license of this code is the same as for the D-Bus interface description 7382s # * it was derived from. Note that it links to GLib, so must comply with the 7382s # * LGPL linking clauses. 7382s # */ 7382s # 7382s # #ifdef HAVE_CONFIG_H 7382s # # include "config.h" 7382s # #endif 7382s # 7382s # #include 7382s # #ifdef G_OS_UNIX 7382s # # include 7382s # #endif 7382s # 7382s # #ifdef G_ENABLE_DEBUG 7382s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7382s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7382s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7382s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7382s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7382s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7382s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7382s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7382s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7382s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7382s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7382s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7382s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7382s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7382s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7382s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7382s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7382s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7382s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7382s # #else /* !G_ENABLE_DEBUG */ 7382s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7382s # * Do not access GValues directly in your code. Instead, use the 7382s # * g_value_get_*() functions 7382s # */ 7382s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7382s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7382s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7382s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7382s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7382s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7382s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7382s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7382s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7382s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7382s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7382s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7382s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7382s # #endif /* !G_ENABLE_DEBUG */ 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusArgInfo parent_struct; 7382s # gboolean use_gvariant; 7382s # } _ExtendedGDBusArgInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusMethodInfo parent_struct; 7382s # const gchar *signal_name; 7382s # gboolean pass_fdlist; 7382s # } _ExtendedGDBusMethodInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusSignalInfo parent_struct; 7382s # const gchar *signal_name; 7382s # } _ExtendedGDBusSignalInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusPropertyInfo parent_struct; 7382s # const gchar *hyphen_name; 7382s # guint use_gvariant : 1; 7382s # guint emits_changed_signal : 1; 7382s # } _ExtendedGDBusPropertyInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # GDBusInterfaceInfo parent_struct; 7382s # const gchar *hyphen_name; 7382s # } _ExtendedGDBusInterfaceInfo; 7382s # 7382s # typedef struct 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # guint prop_id; 7382s # GValue orig_value; /* the value before the change */ 7382s # } ChangedProperty; 7382s # 7382s # static void 7382s # _changed_property_free (ChangedProperty *data) 7382s # { 7382s # g_value_unset (&data->orig_value); 7382s # g_free (data); 7382s # } 7382s # 7382s # static gboolean 7382s # _g_strv_equal0 (gchar **a, gchar **b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # guint n; 7382s # if (a == NULL && b == NULL) 7382s # { 7382s # ret = TRUE; 7382s # goto out; 7382s # } 7382s # if (a == NULL || b == NULL) 7382s # goto out; 7382s # if (g_strv_length (a) != g_strv_length (b)) 7382s # goto out; 7382s # for (n = 0; a[n] != NULL; n++) 7382s # if (g_strcmp0 (a[n], b[n]) != 0) 7382s # goto out; 7382s # ret = TRUE; 7382s # out: 7382s # return ret; 7382s # } 7382s # 7382s # static gboolean 7382s # _g_variant_equal0 (GVariant *a, GVariant *b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # if (a == NULL && b == NULL) 7382s # { 7382s # ret = TRUE; 7382s # goto out; 7382s # } 7382s # if (a == NULL || b == NULL) 7382s # goto out; 7382s # ret = g_variant_equal (a, b); 7382s # out: 7382s # return ret; 7382s # } 7382s # 7382s # G_GNUC_UNUSED static gboolean 7382s # _g_value_equal (const GValue *a, const GValue *b) 7382s # { 7382s # gboolean ret = FALSE; 7382s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7382s # switch (G_VALUE_TYPE (a)) 7382s # { 7382s # case G_TYPE_BOOLEAN: 7382s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7382s # break; 7382s # case G_TYPE_UCHAR: 7382s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7382s # break; 7382s # case G_TYPE_INT: 7382s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7382s # break; 7382s # case G_TYPE_UINT: 7382s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7382s # break; 7382s # case G_TYPE_INT64: 7382s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7382s # break; 7382s # case G_TYPE_UINT64: 7382s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7382s # break; 7382s # case G_TYPE_DOUBLE: 7382s # { 7382s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7382s # gdouble da = g_value_get_double (a); 7382s # gdouble db = g_value_get_double (b); 7382s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7382s # } 7382s # break; 7382s # case G_TYPE_STRING: 7382s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7382s # break; 7382s # case G_TYPE_VARIANT: 7382s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7382s # break; 7382s # default: 7382s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7382s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7382s # else 7382s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7382s # break; 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # /* ------------------------------------------------------------------------ 7382s # * Code for interface GoodTypes 7382s # * ------------------------------------------------------------------------ 7382s # */ 7382s # 7382s # /** 7382s # * SECTION:GoodTypes 7382s # * @title: GoodTypes 7382s # * @short_description: Generated C code for the GoodTypes D-Bus interface 7382s # * 7382s # * This section contains code for working with the GoodTypes D-Bus interface in C. 7382s # */ 7382s # 7382s # /* ---- Introspection data for GoodTypes ---- */ 7382s # 7382s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 7382s # { 7382s # { 7382s # -1, 7382s # (gchar *) "GoodPropertyType", 7382s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 7382s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 7382s # NULL 7382s # }, 7382s # "good-property-type", 7382s # FALSE, 7382s # TRUE 7382s # }; 7382s # 7382s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 7382s # { 7382s # &_good_types_property_info_good_property_type.parent_struct, 7382s # NULL 7382s # }; 7382s # 7382s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 7382s # { 7382s # { 7382s # -1, 7382s # (gchar *) "GoodTypes", 7382s # NULL, 7382s # NULL, 7382s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 7382s # NULL 7382s # }, 7382s # "good-types", 7382s # }; 7382s # 7382s # 7382s # /** 7382s # * good_types_interface_info: 7382s # * 7382s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 7382s # * 7382s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7382s # */ 7382s # GDBusInterfaceInfo * 7382s # good_types_interface_info (void) 7382s # { 7382s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 7382s # } 7382s # 7382s # /** 7382s # * good_types_override_properties: 7382s # * @klass: The class structure for a #GObject derived class. 7382s # * @property_id_begin: The property id to assign to the first overridden property. 7382s # * 7382s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 7382s # * The properties are overridden in the order they are defined. 7382s # * 7382s # * Returns: The last property id. 7382s # */ 7382s # guint 7382s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 7382s # { 7382s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 7382s # return property_id_begin - 1; 7382s # } 7382s # 7382s # 7382s # 7382s # /** 7382s # * GoodTypes: 7382s # * 7382s # * Abstract interface type for the D-Bus interface GoodTypes. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesIface: 7382s # * @parent_iface: The parent interface. 7382s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 7382s # * 7382s # * Virtual table for the D-Bus interface GoodTypes. 7382s # */ 7382s # 7382s # typedef GoodTypesIface GoodTypesInterface; 7382s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 7382s # 7382s # static void 7382s # good_types_default_init (GoodTypesIface *iface) 7382s # { 7382s # /* GObject properties for D-Bus properties: */ 7382s # /** 7382s # * GoodTypes:good-property-type: 7382s # * 7382s # * Represents the D-Bus property "GoodPropertyType". 7382s # * 7382s # * 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. 7382s # */ 7382s # g_object_interface_install_property (iface, 7382s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 7382s # } 7382s # 7382s # /** 7382s # * good_types_get_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * 7382s # * Gets the value of the "GoodPropertyType" D-Bus property. 7382s # * 7382s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7382s # * 7382s # * 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. 7382s # * 7382s # * 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. 7382s # */ 7382s # GVariant * 7382s # good_types_get_good_property_type (GoodTypes *object) 7382s # { 7382s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 7382s # 7382s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 7382s # } 7382s # 7382s # /** 7382s # * good_types_dup_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * 7382s # * Gets a copy of the "GoodPropertyType" D-Bus property. 7382s # * 7382s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7382s # * 7382s # * 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(). 7382s # */ 7382s # GVariant * 7382s # good_types_dup_good_property_type (GoodTypes *object) 7382s # { 7382s # GVariant *value; 7382s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 7382s # return value; 7382s # } 7382s # 7382s # /** 7382s # * good_types_set_good_property_type: (skip) 7382s # * @object: A GoodTypes. 7382s # * @value: The value to set. 7382s # * 7382s # * Sets the "GoodPropertyType" D-Bus property to @value. 7382s # * 7382s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 7382s # */ 7382s # void 7382s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 7382s # { 7382s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 7382s # } 7382s # 7382s # /* ------------------------------------------------------------------------ */ 7382s # 7382s # /** 7382s # * GoodTypesProxy: 7382s # * 7382s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesProxyClass: 7382s # * @parent_class: The parent class. 7382s # * 7382s # * Class structure for GoodTypesProxy. 7382s # */ 7382s # 7382s # struct _GoodTypesProxyPrivate 7382s # { 7382s # GData *qdata; 7382s # }; 7382s # 7382s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 7382s # G_ADD_PRIVATE (GoodTypesProxy) 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 7382s # 7382s # #else 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 7382s # 7382s # #endif 7382s # static void 7382s # good_types_proxy_finalize (GObject *object) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 7382s # g_datalist_clear (&proxy->priv->qdata); 7382s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_get_property (GObject *object, 7382s # guint prop_id, 7382s # GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *variant; 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 7382s # if (info->use_gvariant) 7382s # { 7382s # g_value_set_variant (value, variant); 7382s # } 7382s # else 7382s # { 7382s # if (variant != NULL) 7382s # g_dbus_gvariant_to_gvalue (variant, value); 7382s # } 7382s # if (variant != NULL) 7382s # g_variant_unref (variant); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 7382s # GAsyncResult *res, 7382s # gpointer user_data) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info = user_data; 7382s # GError *error; 7382s # GVariant *_ret; 7382s # error = NULL; 7382s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 7382s # if (!_ret) 7382s # { 7382s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 7382s # info->parent_struct.name, 7382s # error->message, g_quark_to_string (error->domain), error->code); 7382s # g_error_free (error); 7382s # } 7382s # else 7382s # { 7382s # g_variant_unref (_ret); 7382s # } 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_set_property (GObject *object, 7382s # guint prop_id, 7382s # const GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *variant; 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 7382s # g_dbus_proxy_call (G_DBUS_PROXY (object), 7382s # "org.freedesktop.DBus.Properties.Set", 7382s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 7382s # G_DBUS_CALL_FLAGS_NONE, 7382s # -1, 7382s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 7382s # g_variant_unref (variant); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_g_signal (GDBusProxy *proxy, 7382s # const gchar *sender_name G_GNUC_UNUSED, 7382s # const gchar *signal_name, 7382s # GVariant *parameters) 7382s # { 7382s # _ExtendedGDBusSignalInfo *info; 7382s # GVariantIter iter; 7382s # GVariant *child; 7382s # GValue *paramv; 7382s # gsize num_params; 7382s # gsize n; 7382s # guint signal_id; 7382s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 7382s # if (info == NULL) 7382s # return; 7382s # num_params = g_variant_n_children (parameters); 7382s # paramv = g_new0 (GValue, num_params + 1); 7382s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 7382s # g_value_set_object (¶mv[0], proxy); 7382s # g_variant_iter_init (&iter, parameters); 7382s # n = 1; 7382s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7382s # { 7382s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7382s # if (arg_info->use_gvariant) 7382s # { 7382s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7382s # g_value_set_variant (¶mv[n], child); 7382s # n++; 7382s # } 7382s # else 7382s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7382s # g_variant_unref (child); 7382s # } 7382s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 7382s # g_signal_emitv (paramv, signal_id, 0, NULL); 7382s # for (n = 0; n < num_params + 1; n++) 7382s # g_value_unset (¶mv[n]); 7382s # g_free (paramv); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 7382s # GVariant *changed_properties, 7382s # const gchar *const *invalidated_properties) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 7382s # guint n; 7382s # const gchar *key; 7382s # GVariantIter *iter; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # g_variant_get (changed_properties, "a{sv}", &iter); 7382s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7382s # { 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 7382s # g_datalist_remove_data (&proxy->priv->qdata, key); 7382s # if (info != NULL) 7382s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7382s # } 7382s # g_variant_iter_free (iter); 7382s # for (n = 0; invalidated_properties[n] != NULL; n++) 7382s # { 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 7382s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7382s # if (info != NULL) 7382s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7382s # } 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_proxy_get_good_property_type (GoodTypes *object) 7382s # { 7382s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 7382s # GVariant *variant; 7382s # GVariant *value = NULL; 7382s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 7382s # value = variant; 7382s # if (variant != NULL) 7382s # g_variant_unref (variant); 7382s # return value; 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_init (GoodTypesProxy *proxy) 7382s # { 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # proxy->priv = good_types_proxy_get_instance_private (proxy); 7382s # #else 7382s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 7382s # #endif 7382s # 7382s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 7382s # { 7382s # GObjectClass *gobject_class; 7382s # GDBusProxyClass *proxy_class; 7382s # 7382s # gobject_class = G_OBJECT_CLASS (klass); 7382s # gobject_class->finalize = good_types_proxy_finalize; 7382s # gobject_class->get_property = good_types_proxy_get_property; 7382s # gobject_class->set_property = good_types_proxy_set_property; 7382s # 7382s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7382s # proxy_class->g_signal = good_types_proxy_g_signal; 7382s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 7382s # 7382s # good_types_override_properties (gobject_class, 1); 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7382s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 7382s # #endif 7382s # } 7382s # 7382s # static void 7382s # good_types_proxy_iface_init (GoodTypesIface *iface) 7382s # { 7382s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new: 7382s # * @connection: A #GDBusConnection. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7382s # * @user_data: User data to pass to @callback. 7382s # * 7382s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 7382s # * 7382s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7382s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 7382s # * 7382s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 7382s # */ 7382s # void 7382s # good_types_proxy_new ( 7382s # GDBusConnection *connection, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GAsyncReadyCallback callback, 7382s # gpointer user_data) 7382s # { 7382s # 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); 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_finish: 7382s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Finishes an operation started with good_types_proxy_new(). 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_finish ( 7382s # GAsyncResult *res, 7382s # GError **error) 7382s # { 7382s # GObject *ret; 7382s # GObject *source_object; 7382s # source_object = g_async_result_get_source_object (res); 7382s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7382s # g_object_unref (source_object); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_sync: 7382s # * @connection: A #GDBusConnection. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 7382s # * 7382s # * The calling thread is blocked until a reply is received. 7382s # * 7382s # * See good_types_proxy_new() for the asynchronous version of this constructor. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_sync ( 7382s # GDBusConnection *connection, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GError **error) 7382s # { 7382s # GInitable *ret; 7382s # 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); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus: 7382s # * @bus_type: A #GBusType. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: A bus name (well-known or unique). 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7382s # * @user_data: User data to pass to @callback. 7382s # * 7382s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7382s # * 7382s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7382s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 7382s # * 7382s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7382s # */ 7382s # void 7382s # good_types_proxy_new_for_bus ( 7382s # GBusType bus_type, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GAsyncReadyCallback callback, 7382s # gpointer user_data) 7382s # { 7382s # 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); 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus_finish: 7382s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Finishes an operation started with good_types_proxy_new_for_bus(). 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_for_bus_finish ( 7382s # GAsyncResult *res, 7382s # GError **error) 7382s # { 7382s # GObject *ret; 7382s # GObject *source_object; 7382s # source_object = g_async_result_get_source_object (res); 7382s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7382s # g_object_unref (source_object); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # /** 7382s # * good_types_proxy_new_for_bus_sync: 7382s # * @bus_type: A #GBusType. 7382s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7382s # * @name: A bus name (well-known or unique). 7382s # * @object_path: An object path. 7382s # * @cancellable: (nullable): A #GCancellable or %NULL. 7382s # * @error: Return location for error or %NULL 7382s # * 7382s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7382s # * 7382s # * The calling thread is blocked until a reply is received. 7382s # * 7382s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 7382s # */ 7382s # GoodTypes * 7382s # good_types_proxy_new_for_bus_sync ( 7382s # GBusType bus_type, 7382s # GDBusProxyFlags flags, 7382s # const gchar *name, 7382s # const gchar *object_path, 7382s # GCancellable *cancellable, 7382s # GError **error) 7382s # { 7382s # GInitable *ret; 7382s # 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); 7382s # if (ret != NULL) 7382s # return GOOD_TYPES (ret); 7382s # else 7382s # return NULL; 7382s # } 7382s # 7382s # 7382s # /* ------------------------------------------------------------------------ */ 7382s # 7382s # /** 7382s # * GoodTypesSkeleton: 7382s # * 7382s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 7382s # */ 7382s # 7382s # /** 7382s # * GoodTypesSkeletonClass: 7382s # * @parent_class: The parent class. 7382s # * 7382s # * Class structure for GoodTypesSkeleton. 7382s # */ 7382s # 7382s # struct _GoodTypesSkeletonPrivate 7382s # { 7382s # GValue *properties; 7382s # GList *changed_properties; 7382s # GSource *changed_properties_idle_source; 7382s # GMainContext *context; 7382s # GMutex lock; 7382s # }; 7382s # 7382s # static void 7382s # _good_types_skeleton_handle_method_call ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name, 7382s # const gchar *method_name, 7382s # GVariant *parameters, 7382s # GDBusMethodInvocation *invocation, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # _ExtendedGDBusMethodInfo *info; 7382s # GVariantIter iter; 7382s # GVariant *child; 7382s # GValue *paramv; 7382s # gsize num_params; 7382s # guint num_extra; 7382s # gsize n; 7382s # guint signal_id; 7382s # GValue return_value = G_VALUE_INIT; 7382s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7382s # g_assert (info != NULL); 7382s # num_params = g_variant_n_children (parameters); 7382s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7382s # n = 0; 7382s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 7382s # g_value_set_object (¶mv[n++], skeleton); 7382s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7382s # g_value_set_object (¶mv[n++], invocation); 7382s # if (info->pass_fdlist) 7382s # { 7382s # #ifdef G_OS_UNIX 7382s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7382s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7382s # #else 7382s # g_assert_not_reached (); 7382s # #endif 7382s # } 7382s # g_variant_iter_init (&iter, parameters); 7382s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7382s # { 7382s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7382s # if (arg_info->use_gvariant) 7382s # { 7382s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7382s # g_value_set_variant (¶mv[n], child); 7382s # n++; 7382s # } 7382s # else 7382s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7382s # g_variant_unref (child); 7382s # } 7382s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 7382s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7382s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7382s # if (!g_value_get_boolean (&return_value)) 7382s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7382s # g_value_unset (&return_value); 7382s # for (n = 0; n < num_params + num_extra; n++) 7382s # g_value_unset (¶mv[n]); 7382s # g_free (paramv); 7382s # } 7382s # 7382s # static GVariant * 7382s # _good_types_skeleton_handle_get_property ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name G_GNUC_UNUSED, 7382s # const gchar *property_name, 7382s # GError **error, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GValue value = G_VALUE_INIT; 7382s # GParamSpec *pspec; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # GVariant *ret; 7382s # ret = NULL; 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 7382s # g_assert (info != NULL); 7382s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7382s # if (pspec == NULL) 7382s # { 7382s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7382s # } 7382s # else 7382s # { 7382s # g_value_init (&value, pspec->value_type); 7382s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7382s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7382s # g_value_unset (&value); 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # static gboolean 7382s # _good_types_skeleton_handle_set_property ( 7382s # GDBusConnection *connection G_GNUC_UNUSED, 7382s # const gchar *sender G_GNUC_UNUSED, 7382s # const gchar *object_path G_GNUC_UNUSED, 7382s # const gchar *interface_name G_GNUC_UNUSED, 7382s # const gchar *property_name, 7382s # GVariant *variant, 7382s # GError **error, 7382s # gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GValue value = G_VALUE_INIT; 7382s # GParamSpec *pspec; 7382s # _ExtendedGDBusPropertyInfo *info; 7382s # gboolean ret; 7382s # ret = FALSE; 7382s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 7382s # g_assert (info != NULL); 7382s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7382s # if (pspec == NULL) 7382s # { 7382s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7382s # } 7382s # else 7382s # { 7382s # if (info->use_gvariant) 7382s # g_value_set_variant (&value, variant); 7382s # else 7382s # g_dbus_gvariant_to_gvalue (variant, &value); 7382s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7382s # g_value_unset (&value); 7382s # ret = TRUE; 7382s # } 7382s # return ret; 7382s # } 7382s # 7382s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 7382s # { 7382s # _good_types_skeleton_handle_method_call, 7382s # _good_types_skeleton_handle_get_property, 7382s # _good_types_skeleton_handle_set_property, 7382s # {NULL} 7382s # }; 7382s # 7382s # static GDBusInterfaceInfo * 7382s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7382s # { 7382s # return good_types_interface_info (); 7382s # } 7382s # 7382s # static GDBusInterfaceVTable * 7382s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7382s # { 7382s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 7382s # 7382s # GVariantBuilder builder; 7382s # guint n; 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7382s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # #else 7382s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # #endif 7382s # if (_good_types_interface_info.parent_struct.properties == NULL) 7382s # goto out; 7382s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 7382s # { 7382s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 7382s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7382s # { 7382s # GVariant *value; 7382s # 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); 7382s # if (value != NULL) 7382s # { 7382s # g_variant_take_ref (value); 7382s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7382s # g_variant_unref (value); 7382s # } 7382s # } 7382s # } 7382s # out: 7382s # return g_variant_builder_end (&builder); 7382s # } 7382s # 7382s # static gboolean _good_types_emit_changed (gpointer user_data); 7382s # 7382s # static void 7382s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 7382s # gboolean emit_changed = FALSE; 7382s # 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # if (skeleton->priv->changed_properties_idle_source != NULL) 7382s # { 7382s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7382s # skeleton->priv->changed_properties_idle_source = NULL; 7382s # emit_changed = TRUE; 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # 7382s # if (emit_changed) 7382s # _good_types_emit_changed (skeleton); 7382s # } 7382s # 7382s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7382s # G_ADD_PRIVATE (GoodTypesSkeleton) 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 7382s # 7382s # #else 7382s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7382s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 7382s # 7382s # #endif 7382s # static void 7382s # good_types_skeleton_finalize (GObject *object) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # guint n; 7382s # for (n = 0; n < 1; n++) 7382s # g_value_unset (&skeleton->priv->properties[n]); 7382s # g_free (skeleton->priv->properties); 7382s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7382s # if (skeleton->priv->changed_properties_idle_source != NULL) 7382s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7382s # g_main_context_unref (skeleton->priv->context); 7382s # g_mutex_clear (&skeleton->priv->lock); 7382s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_get_property (GObject *object, 7382s # guint prop_id, 7382s # GValue *value, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # } 7382s # 7382s # static gboolean 7382s # _good_types_emit_changed (gpointer user_data) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 7382s # GList *l; 7382s # GVariantBuilder builder; 7382s # GVariantBuilder invalidated_builder; 7382s # guint num_changes; 7382s # 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7382s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 7382s # #else 7382s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 7382s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 7382s # #endif 7382s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 7382s # { 7382s # ChangedProperty *cp = l->data; 7382s # GVariant *variant; 7382s # const GValue *cur_value; 7382s # 7382s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 7382s # if (!_g_value_equal (cur_value, &cp->orig_value)) 7382s # { 7382s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 7382s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 7382s # g_variant_unref (variant); 7382s # num_changes++; 7382s # } 7382s # } 7382s # if (num_changes > 0) 7382s # { 7382s # GList *connections, *ll; 7382s # GVariant *signal_variant; 7382s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 7382s # &builder, &invalidated_builder)); 7382s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7382s # for (ll = connections; ll != NULL; ll = ll->next) 7382s # { 7382s # GDBusConnection *connection = ll->data; 7382s # 7382s # g_dbus_connection_emit_signal (connection, 7382s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 7382s # "org.freedesktop.DBus.Properties", 7382s # "PropertiesChanged", 7382s # signal_variant, 7382s # NULL); 7382s # } 7382s # g_variant_unref (signal_variant); 7382s # g_list_free_full (connections, g_object_unref); 7382s # } 7382s # else 7382s # { 7382s # g_variant_builder_clear (&builder); 7382s # g_variant_builder_clear (&invalidated_builder); 7382s # } 7382s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7382s # skeleton->priv->changed_properties = NULL; 7382s # skeleton->priv->changed_properties_idle_source = NULL; 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # return FALSE; 7382s # } 7382s # 7382s # static void 7382s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 7382s # { 7382s # ChangedProperty *cp; 7382s # GList *l; 7382s # cp = NULL; 7382s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 7382s # { 7382s # ChangedProperty *i_cp = l->data; 7382s # if (i_cp->info == info) 7382s # { 7382s # cp = i_cp; 7382s # break; 7382s # } 7382s # } 7382s # if (cp == NULL) 7382s # { 7382s # cp = g_new0 (ChangedProperty, 1); 7382s # cp->prop_id = prop_id; 7382s # cp->info = info; 7382s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 7382s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 7382s # g_value_copy (orig_value, &cp->orig_value); 7382s # } 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_notify (GObject *object, 7382s # GParamSpec *pspec G_GNUC_UNUSED) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # if (skeleton->priv->changed_properties != NULL && 7382s # skeleton->priv->changed_properties_idle_source == NULL) 7382s # { 7382s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 7382s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 7382s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 7382s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 7382s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 7382s # g_source_unref (skeleton->priv->changed_properties_idle_source); 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_set_property (GObject *object, 7382s # guint prop_id, 7382s # const GValue *value, 7382s # GParamSpec *pspec) 7382s # { 7382s # const _ExtendedGDBusPropertyInfo *info; 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7382s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # g_object_freeze_notify (object); 7382s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 7382s # { 7382s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 7382s # info->emits_changed_signal) 7382s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 7382s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 7382s # g_object_notify_by_pspec (object, pspec); 7382s # } 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # g_object_thaw_notify (object); 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 7382s # { 7382s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7382s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 7382s # #else 7382s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 7382s # #endif 7382s # 7382s # g_mutex_init (&skeleton->priv->lock); 7382s # skeleton->priv->context = g_main_context_ref_thread_default (); 7382s # skeleton->priv->properties = g_new0 (GValue, 1); 7382s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 7382s # } 7382s # 7382s # static GVariant * 7382s # good_types_skeleton_get_good_property_type (GoodTypes *object) 7382s # { 7382s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 7382s # GVariant *value; 7382s # g_mutex_lock (&skeleton->priv->lock); 7382s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 7382s # g_mutex_unlock (&skeleton->priv->lock); 7382s # return value; 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 7382s # { 7382s # GObjectClass *gobject_class; 7382s # GDBusInterfaceSkeletonClass *skeleton_class; 7382s # 7382s # gobject_class = G_OBJECT_CLASS (klass); 7382s # gobject_class->finalize = good_types_skeleton_finalize; 7382s # gobject_class->get_property = good_types_skeleton_get_property; 7382s # gobject_class->set_property = good_types_skeleton_set_property; 7382s # gobject_class->notify = good_types_skeleton_notify; 7382s # 7382s # 7382s # good_types_override_properties (gobject_class, 1); 7382s # 7382s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7382s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 7382s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 7382s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 7382s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 7382s # 7382s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7382s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 7382s # #endif 7382s # } 7382s # 7382s # static void 7382s # good_types_skeleton_iface_init (GoodTypesIface *iface) 7382s # { 7382s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 7382s # } 7382s # 7382s # /** 7382s # * good_types_skeleton_new: 7382s # * 7382s # * Creates a skeleton object for the D-Bus interface GoodTypes. 7382s # * 7382s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 7382s # */ 7382s # GoodTypes * 7382s # good_types_skeleton_new (void) 7382s # { 7382s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 7382s # } 7382s # Error: 7383s ok 3 __main__.TestCodegen.test_empty_interface_body 7383s # gdbus-codegen: /usr/bin/gdbus-codegen 7383s # tmpdir: /tmp/tmpwp_yrafr 7383s # /tmp/tmpwp_yrafr/tmp4n7db2_n.xml: 7383s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwp_yrafr/tmp4n7db2_n.xml', '--output', '-', '--body'] 7383s # Return code: 0 7383s # Output: 7383s # /* 7383s # * This file is generated by gdbus-codegen, do not modify it. 7383s # * 7383s # * The license of this code is the same as for the D-Bus interface description 7383s # * it was derived from. Note that it links to GLib, so must comply with the 7383s # * LGPL linking clauses. 7383s # */ 7383s # 7383s # #ifdef HAVE_CONFIG_H 7383s # # include "config.h" 7383s # #endif 7383s # 7383s # #include 7383s # #ifdef G_OS_UNIX 7383s # # include 7383s # #endif 7383s # 7383s # #ifdef G_ENABLE_DEBUG 7383s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7383s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7383s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7383s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7383s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7383s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7383s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7383s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7383s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7383s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7383s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7383s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7383s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7383s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7383s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7383s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7383s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7383s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7383s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7383s # #else /* !G_ENABLE_DEBUG */ 7383s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7383s # * Do not access GValues directly in your code. Instead, use the 7383s # * g_value_get_*() functions 7383s # */ 7383s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7383s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7383s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7383s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7383s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7383s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7383s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7383s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7383s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7383s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7383s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7383s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7383s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7383s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7383s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7383s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7383s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7383s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7383s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7383s # #endif /* !G_ENABLE_DEBUG */ 7383s # 7383s # typedef struct 7383s # { 7383s # GDBusArgInfo parent_struct; 7383s # gboolean use_gvariant; 7383s # } _ExtendedGDBusArgInfo; 7383s # 7383s # typedef struct 7383s # { 7383s # GDBusMethodInfo parent_struct; 7383s # const gchar *signal_name; 7383s # gboolean pass_fdlist; 7383s # } _ExtendedGDBusMethodInfo; 7383s # 7383s # typedef struct 7383s # { 7383s # GDBusSignalInfo parent_struct; 7383s # const gchar *signal_name; 7383s # } _ExtendedGDBusSignalInfo; 7383s # 7383s # typedef struct 7383s # { 7383s # GDBusPropertyInfo parent_struct; 7383s # const gchar *hyphen_name; 7383s # guint use_gvariant : 1; 7383s # guint emits_changed_signal : 1; 7383s # } _ExtendedGDBusPropertyInfo; 7383s # 7383s # typedef struct 7383s # { 7383s # GDBusInterfaceInfo parent_struct; 7383s # const gchar *hyphen_name; 7383s # } _ExtendedGDBusInterfaceInfo; 7383s # 7383s # typedef struct 7383s # { 7383s # const _ExtendedGDBusPropertyInfo *info; 7383s # guint prop_id; 7383s # GValue orig_value; /* the value before the change */ 7383s # } ChangedProperty; 7383s # 7383s # static void 7383s # _changed_property_free (ChangedProperty *data) 7383s # { 7383s # g_value_unset (&data->orig_value); 7383s # g_free (data); 7383s # } 7383s # 7383s # static gboolean 7383s # _g_strv_equal0 (gchar **a, gchar **b) 7383s # { 7383s # gboolean ret = FALSE; 7383s # guint n; 7383s # if (a == NULL && b == NULL) 7383s # { 7383s # ret = TRUE; 7383s # goto out; 7383s # } 7383s # if (a == NULL || b == NULL) 7383s # goto out; 7383s # if (g_strv_length (a) != g_strv_length (b)) 7383s # goto out; 7383s # for (n = 0; a[n] != NULL; n++) 7383s # if (g_strcmp0 (a[n], b[n]) != 0) 7383s # goto out; 7383s # ret = TRUE; 7383s # out: 7383s # return ret; 7383s # } 7383s # 7383s # static gboolean 7383s # _g_variant_equal0 (GVariant *a, GVariant *b) 7383s # { 7383s # gboolean ret = FALSE; 7383s # if (a == NULL && b == NULL) 7383s # { 7383s # ret = TRUE; 7383s # goto out; 7383s # } 7383s # if (a == NULL || b == NULL) 7383s # goto out; 7383s # ret = g_variant_equal (a, b); 7383s # out: 7383s # return ret; 7383s # } 7383s # 7383s # G_GNUC_UNUSED static gboolean 7383s # _g_value_equal (const GValue *a, const GValue *b) 7383s # { 7383s # gboolean ret = FALSE; 7383s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7383s # switch (G_VALUE_TYPE (a)) 7383s # { 7383s # case G_TYPE_BOOLEAN: 7383s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7383s # break; 7383s # case G_TYPE_UCHAR: 7383s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7383s # break; 7383s # case G_TYPE_INT: 7383s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7383s # break; 7383s # case G_TYPE_UINT: 7383s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7383s # break; 7383s # case G_TYPE_INT64: 7383s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7383s # break; 7383s # case G_TYPE_UINT64: 7383s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7383s # break; 7383s # case G_TYPE_DOUBLE: 7383s # { 7383s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7383s # gdouble da = g_value_get_double (a); 7383s # gdouble db = g_value_get_double (b); 7383s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7383s # } 7383s # break; 7383s # case G_TYPE_STRING: 7383s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7383s # break; 7383s # case G_TYPE_VARIANT: 7383s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7383s # break; 7383s # default: 7383s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7383s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7383s # else 7383s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7383s # break; 7383s # } 7383s # return ret; 7383s # } 7383s # Error: 7384s # Executing: glib/codegen.py.test 7384s ok 4 __main__.TestCodegen.test_empty_interface_header 7384s # gdbus-codegen: /usr/bin/gdbus-codegen 7384s # tmpdir: /tmp/tmpjuxitjkl 7384s # /tmp/tmpjuxitjkl/tmpaa3lqwbk.xml: 7384s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjuxitjkl/tmpaa3lqwbk.xml', '--output', '-', '--header'] 7384s # Return code: 0 7384s # Output: 7384s # /* 7384s # * This file is generated by gdbus-codegen, do not modify it. 7384s # * 7384s # * The license of this code is the same as for the D-Bus interface description 7384s # * it was derived from. Note that it links to GLib, so must comply with the 7384s # * LGPL linking clauses. 7384s # */ 7384s # 7384s # #ifndef __STDOUT__ 7384s # #define __STDOUT__ 7384s # 7384s # #include 7384s # 7384s # G_BEGIN_DECLS 7384s # 7384s # 7384s # G_END_DECLS 7384s # 7384s # #endif /* __STDOUT__ */ 7384s # Error: 7386s ok 5 __main__.TestCodegen.test_empty_interface_info_body 7386s # gdbus-codegen: /usr/bin/gdbus-codegen 7386s # tmpdir: /tmp/tmpegu51tcg 7386s # /tmp/tmpegu51tcg/tmpcll2d4le.xml: 7386s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpegu51tcg/tmpcll2d4le.xml', '--output', '-', '--interface-info-body'] 7386s # Return code: 0 7386s # Output: 7386s # /* 7386s # * This file is generated by gdbus-codegen, do not modify it. 7386s # * 7386s # * The license of this code is the same as for the D-Bus interface description 7386s # * it was derived from. Note that it links to GLib, so must comply with the 7386s # * LGPL linking clauses. 7386s # */ 7386s # 7386s # #ifdef HAVE_CONFIG_H 7386s # # include "config.h" 7386s # #endif 7386s # 7386s # #include 7386s # Error: 7387s ok 6 __main__.TestCodegen.test_empty_interface_info_header 7387s # gdbus-codegen: /usr/bin/gdbus-codegen 7387s # tmpdir: /tmp/tmplxy4h9i7 7387s # /tmp/tmplxy4h9i7/tmp1riy47w5.xml: 7387s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplxy4h9i7/tmp1riy47w5.xml', '--output', '-', '--interface-info-header'] 7387s # Return code: 0 7387s # Output: 7387s # /* 7387s # * This file is generated by gdbus-codegen, do not modify it. 7387s # * 7387s # * The license of this code is the same as for the D-Bus interface description 7387s # * it was derived from. Note that it links to GLib, so must comply with the 7387s # * LGPL linking clauses. 7387s # */ 7387s # 7387s # #ifndef __STDOUT__ 7387s # #define __STDOUT__ 7387s # 7387s # #include 7387s # 7387s # G_BEGIN_DECLS 7387s # 7387s # 7387s # G_END_DECLS 7387s # 7387s # #endif /* __STDOUT__ */ 7387s # Error: 7389s ok 7 __main__.TestCodegen.test_generate_docbook 7389s # gdbus-codegen: /usr/bin/gdbus-codegen 7389s # tmpdir: /tmp/tmpdkxmp51k 7389s # /tmp/tmpdkxmp51k/tmpbz7hl1z3.xml: 7389s # 7389s # 7389s # 7389s # 7389s # 7389s # 7389s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdkxmp51k/tmpbz7hl1z3.xml', '--generate-docbook', 'test'] 7389s # Return code: 0 7389s # Output: 7389s # 7389s # Error: 7389s # Executing: glib/codegen.py.test 7390s ok 8 __main__.TestCodegen.test_generate_md 7390s # gdbus-codegen: /usr/bin/gdbus-codegen 7390s # tmpdir: /tmp/tmpufwp69q7 7390s # /tmp/tmpufwp69q7/tmpb9218kg_.xml: 7390s # 7390s # 7390s # 7390s # 7390s # 7390s # 7390s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpufwp69q7/tmpb9218kg_.xml', '--generate-md', 'test'] 7390s # Return code: 0 7390s # Output: 7390s # 7390s # Error: 7391s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 7391s # gdbus-codegen: /usr/bin/gdbus-codegen 7391s # tmpdir: /tmp/tmpo1ojlbk3 7391s # /tmp/tmpo1ojlbk3/tmpdyhwzdwq.xml: 7391s # 7391s # 7391s # 7391s # 7391s # 7391s # 7391s # 7391s # 7391s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo1ojlbk3/tmpdyhwzdwq.xml', '--output', '-', '--body'] 7391s # Return code: 0 7391s # Output: 7391s # /* 7391s # * This file is generated by gdbus-codegen, do not modify it. 7391s # * 7391s # * The license of this code is the same as for the D-Bus interface description 7391s # * it was derived from. Note that it links to GLib, so must comply with the 7391s # * LGPL linking clauses. 7391s # */ 7391s # 7391s # #ifdef HAVE_CONFIG_H 7391s # # include "config.h" 7391s # #endif 7391s # 7391s # #include 7391s # #ifdef G_OS_UNIX 7391s # # include 7391s # #endif 7391s # 7391s # #ifdef G_ENABLE_DEBUG 7391s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7391s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7391s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7391s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7391s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7391s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7391s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7391s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7391s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7391s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7391s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7391s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7391s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7391s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7391s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7391s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7391s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7391s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7391s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7391s # #else /* !G_ENABLE_DEBUG */ 7391s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7391s # * Do not access GValues directly in your code. Instead, use the 7391s # * g_value_get_*() functions 7391s # */ 7391s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7391s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7391s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7391s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7391s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7391s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7391s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7391s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7391s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7391s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7391s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7391s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7391s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7391s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7391s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7391s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7391s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7391s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7391s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7391s # #endif /* !G_ENABLE_DEBUG */ 7391s # 7391s # typedef struct 7391s # { 7391s # GDBusArgInfo parent_struct; 7391s # gboolean use_gvariant; 7391s # } _ExtendedGDBusArgInfo; 7391s # 7391s # typedef struct 7391s # { 7391s # GDBusMethodInfo parent_struct; 7391s # const gchar *signal_name; 7391s # gboolean pass_fdlist; 7391s # } _ExtendedGDBusMethodInfo; 7391s # 7391s # typedef struct 7391s # { 7391s # GDBusSignalInfo parent_struct; 7391s # const gchar *signal_name; 7391s # } _ExtendedGDBusSignalInfo; 7391s # 7391s # typedef struct 7391s # { 7391s # GDBusPropertyInfo parent_struct; 7391s # const gchar *hyphen_name; 7391s # guint use_gvariant : 1; 7391s # guint emits_changed_signal : 1; 7391s # } _ExtendedGDBusPropertyInfo; 7391s # 7391s # typedef struct 7391s # { 7391s # GDBusInterfaceInfo parent_struct; 7391s # const gchar *hyphen_name; 7391s # } _ExtendedGDBusInterfaceInfo; 7391s # 7391s # typedef struct 7391s # { 7391s # const _ExtendedGDBusPropertyInfo *info; 7391s # guint prop_id; 7391s # GValue orig_value; /* the value before the change */ 7391s # } ChangedProperty; 7391s # 7391s # static void 7391s # _changed_property_free (ChangedProperty *data) 7391s # { 7391s # g_value_unset (&data->orig_value); 7391s # g_free (data); 7391s # } 7391s # 7391s # static gboolean 7391s # _g_strv_equal0 (gchar **a, gchar **b) 7391s # { 7391s # gboolean ret = FALSE; 7391s # guint n; 7391s # if (a == NULL && b == NULL) 7391s # { 7391s # ret = TRUE; 7391s # goto out; 7391s # } 7391s # if (a == NULL || b == NULL) 7391s # goto out; 7391s # if (g_strv_length (a) != g_strv_length (b)) 7391s # goto out; 7391s # for (n = 0; a[n] != NULL; n++) 7391s # if (g_strcmp0 (a[n], b[n]) != 0) 7391s # goto out; 7391s # ret = TRUE; 7391s # out: 7391s # return ret; 7391s # } 7391s # 7391s # static gboolean 7391s # _g_variant_equal0 (GVariant *a, GVariant *b) 7391s # { 7391s # gboolean ret = FALSE; 7391s # if (a == NULL && b == NULL) 7391s # { 7391s # ret = TRUE; 7391s # goto out; 7391s # } 7391s # if (a == NULL || b == NULL) 7391s # goto out; 7391s # ret = g_variant_equal (a, b); 7391s # out: 7391s # return ret; 7391s # } 7391s # 7391s # G_GNUC_UNUSED static gboolean 7391s # _g_value_equal (const GValue *a, const GValue *b) 7391s # { 7391s # gboolean ret = FALSE; 7391s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7391s # switch (G_VALUE_TYPE (a)) 7391s # { 7391s # case G_TYPE_BOOLEAN: 7391s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7391s # break; 7391s # case G_TYPE_UCHAR: 7391s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7391s # break; 7391s # case G_TYPE_INT: 7391s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7391s # break; 7391s # case G_TYPE_UINT: 7391s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7391s # break; 7391s # case G_TYPE_INT64: 7391s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7391s # break; 7391s # case G_TYPE_UINT64: 7391s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7391s # break; 7391s # case G_TYPE_DOUBLE: 7391s # { 7391s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7391s # gdouble da = g_value_get_double (a); 7391s # gdouble db = g_value_get_double (b); 7391s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7391s # } 7391s # break; 7391s # case G_TYPE_STRING: 7391s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7391s # break; 7391s # case G_TYPE_VARIANT: 7391s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7391s # break; 7391s # default: 7391s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7391s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7391s # else 7391s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7391s # break; 7391s # } 7391s # return ret; 7391s # } 7391s # 7391s # static void 7391s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7391s # GClosure *closure, 7391s # GValue *return_value, 7391s # unsigned int n_param_values, 7391s # const GValue *param_values, 7391s # void *invocation_hint G_GNUC_UNUSED, 7391s # void *marshal_data) 7391s # { 7391s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7391s # (void *data1, 7391s # GDBusMethodInvocation *arg_method_invocation, 7391s # void *data2); 7391s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7391s # GCClosure *cc = (GCClosure*) closure; 7391s # void *data1, *data2; 7391s # gboolean v_return; 7391s # 7391s # g_return_if_fail (return_value != NULL); 7391s # g_return_if_fail (n_param_values == 2); 7391s # 7391s # if (G_CCLOSURE_SWAP_DATA (closure)) 7391s # { 7391s # data1 = closure->data; 7391s # data2 = g_value_peek_pointer (param_values + 0); 7391s # } 7391s # else 7391s # { 7391s # data1 = g_value_peek_pointer (param_values + 0); 7391s # data2 = closure->data; 7391s # } 7391s # 7391s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7391s # (marshal_data ? marshal_data : cc->callback); 7391s # 7391s # v_return = 7391s # callback (data1, 7391s # g_marshal_value_peek_object (param_values + 1), 7391s # data2); 7391s # 7391s # g_value_set_boolean (return_value, v_return); 7391s # } 7391s # 7391s # /* ------------------------------------------------------------------------ 7391s # * Code for interface org.project.CallableIface 7391s # * ------------------------------------------------------------------------ 7391s # */ 7391s # 7391s # /** 7391s # * SECTION:OrgProjectCallableIface 7391s # * @title: OrgProjectCallableIface 7391s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 7391s # * 7391s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 7391s # */ 7391s # 7391s # /* ---- Introspection data for org.project.CallableIface ---- */ 7391s # 7391s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 7391s # { 7391s # { 7391s # -1, 7391s # (gchar *) "SimpleMethod", 7391s # NULL, 7391s # NULL, 7391s # NULL 7391s # }, 7391s # "handle-simple-method", 7391s # FALSE 7391s # }; 7391s # 7391s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 7391s # { 7391s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 7391s # NULL 7391s # }; 7391s # 7391s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 7391s # { 7391s # { 7391s # -1, 7391s # (gchar *) "org.project.CallableIface", 7391s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 7391s # NULL, 7391s # NULL, 7391s # NULL 7391s # }, 7391s # "org-project-callable-iface", 7391s # }; 7391s # 7391s # 7391s # /** 7391s # * org_project_callable_iface_interface_info: 7391s # * 7391s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 7391s # * 7391s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7391s # */ 7391s # GDBusInterfaceInfo * 7391s # org_project_callable_iface_interface_info (void) 7391s # { 7391s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_override_properties: 7391s # * @klass: The class structure for a #GObject derived class. 7391s # * @property_id_begin: The property id to assign to the first overridden property. 7391s # * 7391s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 7391s # * The properties are overridden in the order they are defined. 7391s # * 7391s # * Returns: The last property id. 7391s # */ 7391s # guint 7391s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7391s # { 7391s # return property_id_begin - 1; 7391s # } 7391s # 7391s # 7391s # inline static void 7391s # org_project_callable_iface_method_marshal_simple_method ( 7391s # GClosure *closure, 7391s # GValue *return_value, 7391s # unsigned int n_param_values, 7391s # const GValue *param_values, 7391s # void *invocation_hint, 7391s # void *marshal_data) 7391s # { 7391s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7391s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7391s # } 7391s # 7391s # 7391s # /** 7391s # * OrgProjectCallableIface: 7391s # * 7391s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 7391s # */ 7391s # 7391s # /** 7391s # * OrgProjectCallableIfaceIface: 7391s # * @parent_iface: The parent interface. 7391s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 7391s # * 7391s # * Virtual table for the D-Bus interface org.project.CallableIface. 7391s # */ 7391s # 7391s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 7391s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 7391s # 7391s # static void 7391s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 7391s # { 7391s # /* GObject signals for incoming D-Bus method calls: */ 7391s # /** 7391s # * OrgProjectCallableIface::handle-simple-method: 7391s # * @object: A #OrgProjectCallableIface. 7391s # * @invocation: A #GDBusMethodInvocation. 7391s # * 7391s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 7391s # * 7391s # * 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. 7391s # * 7391s # * 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. 7391s # */ 7391s # g_signal_new ("handle-simple-method", 7391s # G_TYPE_FROM_INTERFACE (iface), 7391s # G_SIGNAL_RUN_LAST, 7391s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 7391s # g_signal_accumulator_true_handled, 7391s # NULL, 7391s # org_project_callable_iface_method_marshal_simple_method, 7391s # G_TYPE_BOOLEAN, 7391s # 1, 7391s # G_TYPE_DBUS_METHOD_INVOCATION); 7391s # 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_call_simple_method: 7391s # * @proxy: A #OrgProjectCallableIfaceProxy. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7391s # * @user_data: User data to pass to @callback. 7391s # * 7391s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 7391s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7391s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 7391s # * 7391s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 7391s # */ 7391s # void 7391s # org_project_callable_iface_call_simple_method ( 7391s # OrgProjectCallableIface *proxy, 7391s # GCancellable *cancellable, 7391s # GAsyncReadyCallback callback, 7391s # gpointer user_data) 7391s # { 7391s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7391s # "SimpleMethod", 7391s # g_variant_new ("()"), 7391s # G_DBUS_CALL_FLAGS_NONE, 7391s # -1, 7391s # cancellable, 7391s # callback, 7391s # user_data); 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_call_simple_method_finish: 7391s # * @proxy: A #OrgProjectCallableIfaceProxy. 7391s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 7391s # * @error: Return location for error or %NULL. 7391s # * 7391s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 7391s # * 7391s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7391s # */ 7391s # gboolean 7391s # org_project_callable_iface_call_simple_method_finish ( 7391s # OrgProjectCallableIface *proxy, 7391s # GAsyncResult *res, 7391s # GError **error) 7391s # { 7391s # GVariant *_ret; 7391s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7391s # if (_ret == NULL) 7391s # goto _out; 7391s # g_variant_get (_ret, 7391s # "()"); 7391s # g_variant_unref (_ret); 7391s # _out: 7391s # return _ret != NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_call_simple_method_sync: 7391s # * @proxy: A #OrgProjectCallableIfaceProxy. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @error: Return location for error or %NULL. 7391s # * 7391s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7391s # * 7391s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 7391s # * 7391s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7391s # */ 7391s # gboolean 7391s # org_project_callable_iface_call_simple_method_sync ( 7391s # OrgProjectCallableIface *proxy, 7391s # GCancellable *cancellable, 7391s # GError **error) 7391s # { 7391s # GVariant *_ret; 7391s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7391s # "SimpleMethod", 7391s # g_variant_new ("()"), 7391s # G_DBUS_CALL_FLAGS_NONE, 7391s # -1, 7391s # cancellable, 7391s # error); 7391s # if (_ret == NULL) 7391s # goto _out; 7391s # g_variant_get (_ret, 7391s # "()"); 7391s # g_variant_unref (_ret); 7391s # _out: 7391s # return _ret != NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_complete_simple_method: 7391s # * @object: A #OrgProjectCallableIface. 7391s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7391s # * 7391s # * 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. 7391s # * 7391s # * This method will free @invocation, you cannot use it afterwards. 7391s # */ 7391s # void 7391s # org_project_callable_iface_complete_simple_method ( 7391s # OrgProjectCallableIface *object G_GNUC_UNUSED, 7391s # GDBusMethodInvocation *invocation) 7391s # { 7391s # g_dbus_method_invocation_return_value (invocation, 7391s # g_variant_new ("()")); 7391s # } 7391s # 7391s # /* ------------------------------------------------------------------------ */ 7391s # 7391s # /** 7391s # * OrgProjectCallableIfaceProxy: 7391s # * 7391s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 7391s # */ 7391s # 7391s # /** 7391s # * OrgProjectCallableIfaceProxyClass: 7391s # * @parent_class: The parent class. 7391s # * 7391s # * Class structure for #OrgProjectCallableIfaceProxy. 7391s # */ 7391s # 7391s # struct _OrgProjectCallableIfaceProxyPrivate 7391s # { 7391s # GData *qdata; 7391s # }; 7391s # 7391s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 7391s # 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7391s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 7391s # 7391s # #else 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 7391s # 7391s # #endif 7391s # static void 7391s # org_project_callable_iface_proxy_finalize (GObject *object) 7391s # { 7391s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 7391s # g_datalist_clear (&proxy->priv->qdata); 7391s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7391s # guint prop_id G_GNUC_UNUSED, 7391s # GValue *value G_GNUC_UNUSED, 7391s # GParamSpec *pspec G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7391s # guint prop_id G_GNUC_UNUSED, 7391s # const GValue *value G_GNUC_UNUSED, 7391s # GParamSpec *pspec G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 7391s # const gchar *sender_name G_GNUC_UNUSED, 7391s # const gchar *signal_name, 7391s # GVariant *parameters) 7391s # { 7391s # _ExtendedGDBusSignalInfo *info; 7391s # GVariantIter iter; 7391s # GVariant *child; 7391s # GValue *paramv; 7391s # gsize num_params; 7391s # gsize n; 7391s # guint signal_id; 7391s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 7391s # if (info == NULL) 7391s # return; 7391s # num_params = g_variant_n_children (parameters); 7391s # paramv = g_new0 (GValue, num_params + 1); 7391s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 7391s # g_value_set_object (¶mv[0], proxy); 7391s # g_variant_iter_init (&iter, parameters); 7391s # n = 1; 7391s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7391s # { 7391s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7391s # if (arg_info->use_gvariant) 7391s # { 7391s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7391s # g_value_set_variant (¶mv[n], child); 7391s # n++; 7391s # } 7391s # else 7391s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7391s # g_variant_unref (child); 7391s # } 7391s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 7391s # g_signal_emitv (paramv, signal_id, 0, NULL); 7391s # for (n = 0; n < num_params + 1; n++) 7391s # g_value_unset (¶mv[n]); 7391s # g_free (paramv); 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7391s # GVariant *changed_properties, 7391s # const gchar *const *invalidated_properties) 7391s # { 7391s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 7391s # guint n; 7391s # const gchar *key; 7391s # GVariantIter *iter; 7391s # _ExtendedGDBusPropertyInfo *info; 7391s # g_variant_get (changed_properties, "a{sv}", &iter); 7391s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7391s # { 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 7391s # g_datalist_remove_data (&proxy->priv->qdata, key); 7391s # if (info != NULL) 7391s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7391s # } 7391s # g_variant_iter_free (iter); 7391s # for (n = 0; invalidated_properties[n] != NULL; n++) 7391s # { 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 7391s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7391s # if (info != NULL) 7391s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7391s # } 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 7391s # { 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 7391s # #else 7391s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 7391s # #endif 7391s # 7391s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 7391s # { 7391s # GObjectClass *gobject_class; 7391s # GDBusProxyClass *proxy_class; 7391s # 7391s # gobject_class = G_OBJECT_CLASS (klass); 7391s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 7391s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 7391s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 7391s # 7391s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7391s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 7391s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 7391s # 7391s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7391s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 7391s # #endif 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_proxy_new: 7391s # * @connection: A #GDBusConnection. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7391s # * @user_data: User data to pass to @callback. 7391s # * 7391s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 7391s # * 7391s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7391s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 7391s # * 7391s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7391s # */ 7391s # void 7391s # org_project_callable_iface_proxy_new ( 7391s # GDBusConnection *connection, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GAsyncReadyCallback callback, 7391s # gpointer user_data) 7391s # { 7391s # 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); 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_proxy_new_finish: 7391s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectCallableIface * 7391s # org_project_callable_iface_proxy_new_finish ( 7391s # GAsyncResult *res, 7391s # GError **error) 7391s # { 7391s # GObject *ret; 7391s # GObject *source_object; 7391s # source_object = g_async_result_get_source_object (res); 7391s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7391s # g_object_unref (source_object); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_proxy_new_sync: 7391s # * @connection: A #GDBusConnection. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 7391s # * 7391s # * The calling thread is blocked until a reply is received. 7391s # * 7391s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectCallableIface * 7391s # org_project_callable_iface_proxy_new_sync ( 7391s # GDBusConnection *connection, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GError **error) 7391s # { 7391s # GInitable *ret; 7391s # 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); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # 7391s # /** 7391s # * org_project_callable_iface_proxy_new_for_bus: 7391s # * @bus_type: A #GBusType. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: A bus name (well-known or unique). 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7391s # * @user_data: User data to pass to @callback. 7391s # * 7391s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7391s # * 7391s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7391s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 7391s # * 7391s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7391s # */ 7391s # void 7391s # org_project_callable_iface_proxy_new_for_bus ( 7391s # GBusType bus_type, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GAsyncReadyCallback callback, 7391s # gpointer user_data) 7391s # { 7391s # 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); 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_proxy_new_for_bus_finish: 7391s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectCallableIface * 7391s # org_project_callable_iface_proxy_new_for_bus_finish ( 7391s # GAsyncResult *res, 7391s # GError **error) 7391s # { 7391s # GObject *ret; 7391s # GObject *source_object; 7391s # source_object = g_async_result_get_source_object (res); 7391s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7391s # g_object_unref (source_object); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_proxy_new_for_bus_sync: 7391s # * @bus_type: A #GBusType. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: A bus name (well-known or unique). 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7391s # * 7391s # * The calling thread is blocked until a reply is received. 7391s # * 7391s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectCallableIface * 7391s # org_project_callable_iface_proxy_new_for_bus_sync ( 7391s # GBusType bus_type, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GError **error) 7391s # { 7391s # GInitable *ret; 7391s # 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); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # 7391s # /* ------------------------------------------------------------------------ */ 7391s # 7391s # /** 7391s # * OrgProjectCallableIfaceSkeleton: 7391s # * 7391s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7391s # */ 7391s # 7391s # /** 7391s # * OrgProjectCallableIfaceSkeletonClass: 7391s # * @parent_class: The parent class. 7391s # * 7391s # * Class structure for #OrgProjectCallableIfaceSkeleton. 7391s # */ 7391s # 7391s # struct _OrgProjectCallableIfaceSkeletonPrivate 7391s # { 7391s # GValue *properties; 7391s # GList *changed_properties; 7391s # GSource *changed_properties_idle_source; 7391s # GMainContext *context; 7391s # GMutex lock; 7391s # }; 7391s # 7391s # static void 7391s # _org_project_callable_iface_skeleton_handle_method_call ( 7391s # GDBusConnection *connection G_GNUC_UNUSED, 7391s # const gchar *sender G_GNUC_UNUSED, 7391s # const gchar *object_path G_GNUC_UNUSED, 7391s # const gchar *interface_name, 7391s # const gchar *method_name, 7391s # GVariant *parameters, 7391s # GDBusMethodInvocation *invocation, 7391s # gpointer user_data) 7391s # { 7391s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7391s # _ExtendedGDBusMethodInfo *info; 7391s # GVariantIter iter; 7391s # GVariant *child; 7391s # GValue *paramv; 7391s # gsize num_params; 7391s # guint num_extra; 7391s # gsize n; 7391s # guint signal_id; 7391s # GValue return_value = G_VALUE_INIT; 7391s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7391s # g_assert (info != NULL); 7391s # num_params = g_variant_n_children (parameters); 7391s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7391s # n = 0; 7391s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 7391s # g_value_set_object (¶mv[n++], skeleton); 7391s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7391s # g_value_set_object (¶mv[n++], invocation); 7391s # if (info->pass_fdlist) 7391s # { 7391s # #ifdef G_OS_UNIX 7391s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7391s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7391s # #else 7391s # g_assert_not_reached (); 7391s # #endif 7391s # } 7391s # g_variant_iter_init (&iter, parameters); 7391s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7391s # { 7391s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7391s # if (arg_info->use_gvariant) 7391s # { 7391s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7391s # g_value_set_variant (¶mv[n], child); 7391s # n++; 7391s # } 7391s # else 7391s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7391s # g_variant_unref (child); 7391s # } 7391s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 7391s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7391s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7391s # if (!g_value_get_boolean (&return_value)) 7391s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7391s # g_value_unset (&return_value); 7391s # for (n = 0; n < num_params + num_extra; n++) 7391s # g_value_unset (¶mv[n]); 7391s # g_free (paramv); 7391s # } 7391s # 7391s # static GVariant * 7391s # _org_project_callable_iface_skeleton_handle_get_property ( 7391s # GDBusConnection *connection G_GNUC_UNUSED, 7391s # const gchar *sender G_GNUC_UNUSED, 7391s # const gchar *object_path G_GNUC_UNUSED, 7391s # const gchar *interface_name G_GNUC_UNUSED, 7391s # const gchar *property_name, 7391s # GError **error, 7391s # gpointer user_data) 7391s # { 7391s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7391s # GValue value = G_VALUE_INIT; 7391s # GParamSpec *pspec; 7391s # _ExtendedGDBusPropertyInfo *info; 7391s # GVariant *ret; 7391s # ret = NULL; 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 7391s # g_assert (info != NULL); 7391s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7391s # if (pspec == NULL) 7391s # { 7391s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7391s # } 7391s # else 7391s # { 7391s # g_value_init (&value, pspec->value_type); 7391s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7391s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7391s # g_value_unset (&value); 7391s # } 7391s # return ret; 7391s # } 7391s # 7391s # static gboolean 7391s # _org_project_callable_iface_skeleton_handle_set_property ( 7391s # GDBusConnection *connection G_GNUC_UNUSED, 7391s # const gchar *sender G_GNUC_UNUSED, 7391s # const gchar *object_path G_GNUC_UNUSED, 7391s # const gchar *interface_name G_GNUC_UNUSED, 7391s # const gchar *property_name, 7391s # GVariant *variant, 7391s # GError **error, 7391s # gpointer user_data) 7391s # { 7391s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7391s # GValue value = G_VALUE_INIT; 7391s # GParamSpec *pspec; 7391s # _ExtendedGDBusPropertyInfo *info; 7391s # gboolean ret; 7391s # ret = FALSE; 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 7391s # g_assert (info != NULL); 7391s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7391s # if (pspec == NULL) 7391s # { 7391s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7391s # } 7391s # else 7391s # { 7391s # if (info->use_gvariant) 7391s # g_value_set_variant (&value, variant); 7391s # else 7391s # g_dbus_gvariant_to_gvalue (variant, &value); 7391s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7391s # g_value_unset (&value); 7391s # ret = TRUE; 7391s # } 7391s # return ret; 7391s # } 7391s # 7391s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 7391s # { 7391s # _org_project_callable_iface_skeleton_handle_method_call, 7391s # _org_project_callable_iface_skeleton_handle_get_property, 7391s # _org_project_callable_iface_skeleton_handle_set_property, 7391s # {NULL} 7391s # }; 7391s # 7391s # static GDBusInterfaceInfo * 7391s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7391s # { 7391s # return org_project_callable_iface_interface_info (); 7391s # } 7391s # 7391s # static GDBusInterfaceVTable * 7391s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7391s # { 7391s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 7391s # } 7391s # 7391s # static GVariant * 7391s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7391s # { 7391s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 7391s # 7391s # GVariantBuilder builder; 7391s # guint n; 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7391s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7391s # #else 7391s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7391s # #endif 7391s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 7391s # goto out; 7391s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7391s # { 7391s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 7391s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7391s # { 7391s # GVariant *value; 7391s # 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); 7391s # if (value != NULL) 7391s # { 7391s # g_variant_take_ref (value); 7391s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7391s # g_variant_unref (value); 7391s # } 7391s # } 7391s # } 7391s # out: 7391s # return g_variant_builder_end (&builder); 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7391s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 7391s # 7391s # #else 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 7391s # 7391s # #endif 7391s # static void 7391s # org_project_callable_iface_skeleton_finalize (GObject *object) 7391s # { 7391s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 7391s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7391s # if (skeleton->priv->changed_properties_idle_source != NULL) 7391s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7391s # g_main_context_unref (skeleton->priv->context); 7391s # g_mutex_clear (&skeleton->priv->lock); 7391s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 7391s # { 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 7391s # #else 7391s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 7391s # #endif 7391s # 7391s # g_mutex_init (&skeleton->priv->lock); 7391s # skeleton->priv->context = g_main_context_ref_thread_default (); 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 7391s # { 7391s # GObjectClass *gobject_class; 7391s # GDBusInterfaceSkeletonClass *skeleton_class; 7391s # 7391s # gobject_class = G_OBJECT_CLASS (klass); 7391s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 7391s # 7391s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7391s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 7391s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 7391s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 7391s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 7391s # 7391s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7391s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 7391s # #endif 7391s # } 7391s # 7391s # static void 7391s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # /** 7391s # * org_project_callable_iface_skeleton_new: 7391s # * 7391s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 7391s # */ 7391s # OrgProjectCallableIface * 7391s # org_project_callable_iface_skeleton_new (void) 7391s # { 7391s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 7391s # } 7391s # 7391s # /* ------------------------------------------------------------------------ 7391s # * Code for interface org.project.OtherCallableIface 7391s # * ------------------------------------------------------------------------ 7391s # */ 7391s # 7391s # /** 7391s # * SECTION:OrgProjectOtherCallableIface 7391s # * @title: OrgProjectOtherCallableIface 7391s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 7391s # * 7391s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 7391s # */ 7391s # 7391s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 7391s # 7391s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 7391s # { 7391s # { 7391s # -1, 7391s # (gchar *) "SimpleMethod", 7391s # NULL, 7391s # NULL, 7391s # NULL 7391s # }, 7391s # "handle-simple-method", 7391s # FALSE 7391s # }; 7391s # 7391s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 7391s # { 7391s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 7391s # NULL 7391s # }; 7391s # 7391s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 7391s # { 7391s # { 7391s # -1, 7391s # (gchar *) "org.project.OtherCallableIface", 7391s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 7391s # NULL, 7391s # NULL, 7391s # NULL 7391s # }, 7391s # "org-project-other-callable-iface", 7391s # }; 7391s # 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_interface_info: 7391s # * 7391s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 7391s # * 7391s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7391s # */ 7391s # GDBusInterfaceInfo * 7391s # org_project_other_callable_iface_interface_info (void) 7391s # { 7391s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_override_properties: 7391s # * @klass: The class structure for a #GObject derived class. 7391s # * @property_id_begin: The property id to assign to the first overridden property. 7391s # * 7391s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 7391s # * The properties are overridden in the order they are defined. 7391s # * 7391s # * Returns: The last property id. 7391s # */ 7391s # guint 7391s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7391s # { 7391s # return property_id_begin - 1; 7391s # } 7391s # 7391s # 7391s # inline static void 7391s # org_project_other_callable_iface_method_marshal_simple_method ( 7391s # GClosure *closure, 7391s # GValue *return_value, 7391s # unsigned int n_param_values, 7391s # const GValue *param_values, 7391s # void *invocation_hint, 7391s # void *marshal_data) 7391s # { 7391s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7391s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7391s # } 7391s # 7391s # 7391s # /** 7391s # * OrgProjectOtherCallableIface: 7391s # * 7391s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 7391s # */ 7391s # 7391s # /** 7391s # * OrgProjectOtherCallableIfaceIface: 7391s # * @parent_iface: The parent interface. 7391s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 7391s # * 7391s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 7391s # */ 7391s # 7391s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 7391s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 7391s # 7391s # static void 7391s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 7391s # { 7391s # /* GObject signals for incoming D-Bus method calls: */ 7391s # /** 7391s # * OrgProjectOtherCallableIface::handle-simple-method: 7391s # * @object: A #OrgProjectOtherCallableIface. 7391s # * @invocation: A #GDBusMethodInvocation. 7391s # * 7391s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 7391s # * 7391s # * 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. 7391s # * 7391s # * 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. 7391s # */ 7391s # g_signal_new ("handle-simple-method", 7391s # G_TYPE_FROM_INTERFACE (iface), 7391s # G_SIGNAL_RUN_LAST, 7391s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 7391s # g_signal_accumulator_true_handled, 7391s # NULL, 7391s # org_project_other_callable_iface_method_marshal_simple_method, 7391s # G_TYPE_BOOLEAN, 7391s # 1, 7391s # G_TYPE_DBUS_METHOD_INVOCATION); 7391s # 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_call_simple_method: 7391s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7391s # * @user_data: User data to pass to @callback. 7391s # * 7391s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 7391s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7391s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 7391s # * 7391s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 7391s # */ 7391s # void 7391s # org_project_other_callable_iface_call_simple_method ( 7391s # OrgProjectOtherCallableIface *proxy, 7391s # GCancellable *cancellable, 7391s # GAsyncReadyCallback callback, 7391s # gpointer user_data) 7391s # { 7391s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7391s # "SimpleMethod", 7391s # g_variant_new ("()"), 7391s # G_DBUS_CALL_FLAGS_NONE, 7391s # -1, 7391s # cancellable, 7391s # callback, 7391s # user_data); 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_call_simple_method_finish: 7391s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 7391s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 7391s # * @error: Return location for error or %NULL. 7391s # * 7391s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 7391s # * 7391s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7391s # */ 7391s # gboolean 7391s # org_project_other_callable_iface_call_simple_method_finish ( 7391s # OrgProjectOtherCallableIface *proxy, 7391s # GAsyncResult *res, 7391s # GError **error) 7391s # { 7391s # GVariant *_ret; 7391s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7391s # if (_ret == NULL) 7391s # goto _out; 7391s # g_variant_get (_ret, 7391s # "()"); 7391s # g_variant_unref (_ret); 7391s # _out: 7391s # return _ret != NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_call_simple_method_sync: 7391s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @error: Return location for error or %NULL. 7391s # * 7391s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7391s # * 7391s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 7391s # * 7391s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7391s # */ 7391s # gboolean 7391s # org_project_other_callable_iface_call_simple_method_sync ( 7391s # OrgProjectOtherCallableIface *proxy, 7391s # GCancellable *cancellable, 7391s # GError **error) 7391s # { 7391s # GVariant *_ret; 7391s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7391s # "SimpleMethod", 7391s # g_variant_new ("()"), 7391s # G_DBUS_CALL_FLAGS_NONE, 7391s # -1, 7391s # cancellable, 7391s # error); 7391s # if (_ret == NULL) 7391s # goto _out; 7391s # g_variant_get (_ret, 7391s # "()"); 7391s # g_variant_unref (_ret); 7391s # _out: 7391s # return _ret != NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_complete_simple_method: 7391s # * @object: A #OrgProjectOtherCallableIface. 7391s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7391s # * 7391s # * 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. 7391s # * 7391s # * This method will free @invocation, you cannot use it afterwards. 7391s # */ 7391s # void 7391s # org_project_other_callable_iface_complete_simple_method ( 7391s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 7391s # GDBusMethodInvocation *invocation) 7391s # { 7391s # g_dbus_method_invocation_return_value (invocation, 7391s # g_variant_new ("()")); 7391s # } 7391s # 7391s # /* ------------------------------------------------------------------------ */ 7391s # 7391s # /** 7391s # * OrgProjectOtherCallableIfaceProxy: 7391s # * 7391s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 7391s # */ 7391s # 7391s # /** 7391s # * OrgProjectOtherCallableIfaceProxyClass: 7391s # * @parent_class: The parent class. 7391s # * 7391s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 7391s # */ 7391s # 7391s # struct _OrgProjectOtherCallableIfaceProxyPrivate 7391s # { 7391s # GData *qdata; 7391s # }; 7391s # 7391s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 7391s # 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7391s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 7391s # 7391s # #else 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 7391s # 7391s # #endif 7391s # static void 7391s # org_project_other_callable_iface_proxy_finalize (GObject *object) 7391s # { 7391s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 7391s # g_datalist_clear (&proxy->priv->qdata); 7391s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7391s # guint prop_id G_GNUC_UNUSED, 7391s # GValue *value G_GNUC_UNUSED, 7391s # GParamSpec *pspec G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7391s # guint prop_id G_GNUC_UNUSED, 7391s # const GValue *value G_GNUC_UNUSED, 7391s # GParamSpec *pspec G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 7391s # const gchar *sender_name G_GNUC_UNUSED, 7391s # const gchar *signal_name, 7391s # GVariant *parameters) 7391s # { 7391s # _ExtendedGDBusSignalInfo *info; 7391s # GVariantIter iter; 7391s # GVariant *child; 7391s # GValue *paramv; 7391s # gsize num_params; 7391s # gsize n; 7391s # guint signal_id; 7391s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 7391s # if (info == NULL) 7391s # return; 7391s # num_params = g_variant_n_children (parameters); 7391s # paramv = g_new0 (GValue, num_params + 1); 7391s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7391s # g_value_set_object (¶mv[0], proxy); 7391s # g_variant_iter_init (&iter, parameters); 7391s # n = 1; 7391s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7391s # { 7391s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7391s # if (arg_info->use_gvariant) 7391s # { 7391s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7391s # g_value_set_variant (¶mv[n], child); 7391s # n++; 7391s # } 7391s # else 7391s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7391s # g_variant_unref (child); 7391s # } 7391s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7391s # g_signal_emitv (paramv, signal_id, 0, NULL); 7391s # for (n = 0; n < num_params + 1; n++) 7391s # g_value_unset (¶mv[n]); 7391s # g_free (paramv); 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7391s # GVariant *changed_properties, 7391s # const gchar *const *invalidated_properties) 7391s # { 7391s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 7391s # guint n; 7391s # const gchar *key; 7391s # GVariantIter *iter; 7391s # _ExtendedGDBusPropertyInfo *info; 7391s # g_variant_get (changed_properties, "a{sv}", &iter); 7391s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7391s # { 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 7391s # g_datalist_remove_data (&proxy->priv->qdata, key); 7391s # if (info != NULL) 7391s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7391s # } 7391s # g_variant_iter_free (iter); 7391s # for (n = 0; invalidated_properties[n] != NULL; n++) 7391s # { 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 7391s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7391s # if (info != NULL) 7391s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7391s # } 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 7391s # { 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 7391s # #else 7391s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 7391s # #endif 7391s # 7391s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 7391s # { 7391s # GObjectClass *gobject_class; 7391s # GDBusProxyClass *proxy_class; 7391s # 7391s # gobject_class = G_OBJECT_CLASS (klass); 7391s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 7391s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 7391s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 7391s # 7391s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7391s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 7391s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 7391s # 7391s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7391s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 7391s # #endif 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_proxy_new: 7391s # * @connection: A #GDBusConnection. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7391s # * @user_data: User data to pass to @callback. 7391s # * 7391s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 7391s # * 7391s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7391s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 7391s # * 7391s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7391s # */ 7391s # void 7391s # org_project_other_callable_iface_proxy_new ( 7391s # GDBusConnection *connection, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GAsyncReadyCallback callback, 7391s # gpointer user_data) 7391s # { 7391s # 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); 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_proxy_new_finish: 7391s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectOtherCallableIface * 7391s # org_project_other_callable_iface_proxy_new_finish ( 7391s # GAsyncResult *res, 7391s # GError **error) 7391s # { 7391s # GObject *ret; 7391s # GObject *source_object; 7391s # source_object = g_async_result_get_source_object (res); 7391s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7391s # g_object_unref (source_object); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_proxy_new_sync: 7391s # * @connection: A #GDBusConnection. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 7391s # * 7391s # * The calling thread is blocked until a reply is received. 7391s # * 7391s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectOtherCallableIface * 7391s # org_project_other_callable_iface_proxy_new_sync ( 7391s # GDBusConnection *connection, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GError **error) 7391s # { 7391s # GInitable *ret; 7391s # 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); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_proxy_new_for_bus: 7391s # * @bus_type: A #GBusType. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: A bus name (well-known or unique). 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7391s # * @user_data: User data to pass to @callback. 7391s # * 7391s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7391s # * 7391s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7391s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 7391s # * 7391s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7391s # */ 7391s # void 7391s # org_project_other_callable_iface_proxy_new_for_bus ( 7391s # GBusType bus_type, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GAsyncReadyCallback callback, 7391s # gpointer user_data) 7391s # { 7391s # 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); 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 7391s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectOtherCallableIface * 7391s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 7391s # GAsyncResult *res, 7391s # GError **error) 7391s # { 7391s # GObject *ret; 7391s # GObject *source_object; 7391s # source_object = g_async_result_get_source_object (res); 7391s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7391s # g_object_unref (source_object); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 7391s # * @bus_type: A #GBusType. 7391s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7391s # * @name: A bus name (well-known or unique). 7391s # * @object_path: An object path. 7391s # * @cancellable: (nullable): A #GCancellable or %NULL. 7391s # * @error: Return location for error or %NULL 7391s # * 7391s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7391s # * 7391s # * The calling thread is blocked until a reply is received. 7391s # * 7391s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7391s # */ 7391s # OrgProjectOtherCallableIface * 7391s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 7391s # GBusType bus_type, 7391s # GDBusProxyFlags flags, 7391s # const gchar *name, 7391s # const gchar *object_path, 7391s # GCancellable *cancellable, 7391s # GError **error) 7391s # { 7391s # GInitable *ret; 7391s # 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); 7391s # if (ret != NULL) 7391s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7391s # else 7391s # return NULL; 7391s # } 7391s # 7391s # 7391s # /* ------------------------------------------------------------------------ */ 7391s # 7391s # /** 7391s # * OrgProjectOtherCallableIfaceSkeleton: 7391s # * 7391s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7391s # */ 7391s # 7391s # /** 7391s # * OrgProjectOtherCallableIfaceSkeletonClass: 7391s # * @parent_class: The parent class. 7391s # * 7391s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 7391s # */ 7391s # 7391s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 7391s # { 7391s # GValue *properties; 7391s # GList *changed_properties; 7391s # GSource *changed_properties_idle_source; 7391s # GMainContext *context; 7391s # GMutex lock; 7391s # }; 7391s # 7391s # static void 7391s # _org_project_other_callable_iface_skeleton_handle_method_call ( 7391s # GDBusConnection *connection G_GNUC_UNUSED, 7391s # const gchar *sender G_GNUC_UNUSED, 7391s # const gchar *object_path G_GNUC_UNUSED, 7391s # const gchar *interface_name, 7391s # const gchar *method_name, 7391s # GVariant *parameters, 7391s # GDBusMethodInvocation *invocation, 7391s # gpointer user_data) 7391s # { 7391s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 7391s # _ExtendedGDBusMethodInfo *info; 7391s # GVariantIter iter; 7391s # GVariant *child; 7391s # GValue *paramv; 7391s # gsize num_params; 7391s # guint num_extra; 7391s # gsize n; 7391s # guint signal_id; 7391s # GValue return_value = G_VALUE_INIT; 7391s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7391s # g_assert (info != NULL); 7391s # num_params = g_variant_n_children (parameters); 7391s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7391s # n = 0; 7391s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7391s # g_value_set_object (¶mv[n++], skeleton); 7391s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7391s # g_value_set_object (¶mv[n++], invocation); 7391s # if (info->pass_fdlist) 7391s # { 7391s # #ifdef G_OS_UNIX 7391s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7391s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7391s # #else 7391s # g_assert_not_reached (); 7391s # #endif 7391s # } 7391s # g_variant_iter_init (&iter, parameters); 7391s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7391s # { 7391s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7391s # if (arg_info->use_gvariant) 7391s # { 7391s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7391s # g_value_set_variant (¶mv[n], child); 7391s # n++; 7391s # } 7391s # else 7391s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7391s # g_variant_unref (child); 7391s # } 7391s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7391s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7391s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7391s # if (!g_value_get_boolean (&return_value)) 7391s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7391s # g_value_unset (&return_value); 7391s # for (n = 0; n < num_params + num_extra; n++) 7391s # g_value_unset (¶mv[n]); 7391s # g_free (paramv); 7391s # } 7391s # 7391s # static GVariant * 7391s # _org_project_other_callable_iface_skeleton_handle_get_property ( 7391s # GDBusConnection *connection G_GNUC_UNUSED, 7391s # const gchar *sender G_GNUC_UNUSED, 7391s # const gchar *object_path G_GNUC_UNUSED, 7391s # const gchar *interface_name G_GNUC_UNUSED, 7391s # const gchar *property_name, 7391s # GError **error, 7391s # gpointer user_data) 7391s # { 7391s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 7391s # GValue value = G_VALUE_INIT; 7391s # GParamSpec *pspec; 7391s # _ExtendedGDBusPropertyInfo *info; 7391s # GVariant *ret; 7391s # ret = NULL; 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 7391s # g_assert (info != NULL); 7391s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7391s # if (pspec == NULL) 7391s # { 7391s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7391s # } 7391s # else 7391s # { 7391s # g_value_init (&value, pspec->value_type); 7391s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7391s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7391s # g_value_unset (&value); 7391s # } 7391s # return ret; 7391s # } 7391s # 7391s # static gboolean 7391s # _org_project_other_callable_iface_skeleton_handle_set_property ( 7391s # GDBusConnection *connection G_GNUC_UNUSED, 7391s # const gchar *sender G_GNUC_UNUSED, 7391s # const gchar *object_path G_GNUC_UNUSED, 7391s # const gchar *interface_name G_GNUC_UNUSED, 7391s # const gchar *property_name, 7391s # GVariant *variant, 7391s # GError **error, 7391s # gpointer user_data) 7391s # { 7391s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 7391s # GValue value = G_VALUE_INIT; 7391s # GParamSpec *pspec; 7391s # _ExtendedGDBusPropertyInfo *info; 7391s # gboolean ret; 7391s # ret = FALSE; 7391s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 7391s # g_assert (info != NULL); 7391s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7391s # if (pspec == NULL) 7391s # { 7391s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7391s # } 7391s # else 7391s # { 7391s # if (info->use_gvariant) 7391s # g_value_set_variant (&value, variant); 7391s # else 7391s # g_dbus_gvariant_to_gvalue (variant, &value); 7391s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7391s # g_value_unset (&value); 7391s # ret = TRUE; 7391s # } 7391s # return ret; 7391s # } 7391s # 7391s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 7391s # { 7391s # _org_project_other_callable_iface_skeleton_handle_method_call, 7391s # _org_project_other_callable_iface_skeleton_handle_get_property, 7391s # _org_project_other_callable_iface_skeleton_handle_set_property, 7391s # {NULL} 7391s # }; 7391s # 7391s # static GDBusInterfaceInfo * 7391s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7391s # { 7391s # return org_project_other_callable_iface_interface_info (); 7391s # } 7391s # 7391s # static GDBusInterfaceVTable * 7391s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7391s # { 7391s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 7391s # } 7391s # 7391s # static GVariant * 7391s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7391s # { 7391s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 7391s # 7391s # GVariantBuilder builder; 7391s # guint n; 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7391s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7391s # #else 7391s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7391s # #endif 7391s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 7391s # goto out; 7391s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7391s # { 7391s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 7391s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7391s # { 7391s # GVariant *value; 7391s # 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); 7391s # if (value != NULL) 7391s # { 7391s # g_variant_take_ref (value); 7391s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7391s # g_variant_unref (value); 7391s # } 7391s # } 7391s # } 7391s # out: 7391s # return g_variant_builder_end (&builder); 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7391s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 7391s # 7391s # #else 7391s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7391s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 7391s # 7391s # #endif 7391s # static void 7391s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 7391s # { 7391s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 7391s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7391s # if (skeleton->priv->changed_properties_idle_source != NULL) 7391s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7391s # g_main_context_unref (skeleton->priv->context); 7391s # g_mutex_clear (&skeleton->priv->lock); 7391s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 7391s # { 7391s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7391s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 7391s # #else 7391s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 7391s # #endif 7391s # 7391s # g_mutex_init (&skeleton->priv->lock); 7391s # skeleton->priv->context = g_main_context_ref_thread_default (); 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 7391s # { 7391s # GObjectClass *gobject_class; 7391s # GDBusInterfaceSkeletonClass *skeleton_class; 7391s # 7391s # gobject_class = G_OBJECT_CLASS (klass); 7391s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 7391s # 7391s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7391s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 7391s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 7391s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 7391s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 7391s # 7391s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7391s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 7391s # #endif 7391s # } 7391s # 7391s # static void 7391s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 7391s # { 7391s # } 7391s # 7391s # /** 7391s # * org_project_other_callable_iface_skeleton_new: 7391s # * 7391s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 7391s # * 7391s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 7391s # */ 7391s # OrgProjectOtherCallableIface * 7391s # org_project_other_callable_iface_skeleton_new (void) 7391s # { 7391s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 7391s # } 7391s # Error: 7394s # Executing: glib/codegen.py.test 7399s # Executing: glib/codegen.py.test 7404s # Executing: glib/codegen.py.test 7409s # Executing: glib/codegen.py.test 7414s # Executing: glib/codegen.py.test 7415s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 7415s # gdbus-codegen: /usr/bin/gdbus-codegen 7415s # tmpdir: /tmp/tmps3qh7h6d 7415s # /tmp/tmps3qh7h6d/tmppw9r_p5_.xml: 7415s # 7415s # 7415s # 7415s # 7415s # 7415s # 7415s # 7415s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmppw9r_p5_.xml', '--output', '-', '--body'] 7415s # Return code: 0 7415s # Output: 7415s # /* 7415s # * This file is generated by gdbus-codegen, do not modify it. 7415s # * 7415s # * The license of this code is the same as for the D-Bus interface description 7415s # * it was derived from. Note that it links to GLib, so must comply with the 7415s # * LGPL linking clauses. 7415s # */ 7415s # 7415s # #ifdef HAVE_CONFIG_H 7415s # # include "config.h" 7415s # #endif 7415s # 7415s # #include 7415s # #ifdef G_OS_UNIX 7415s # # include 7415s # #endif 7415s # 7415s # #ifdef G_ENABLE_DEBUG 7415s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7415s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7415s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7415s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7415s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7415s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7415s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7415s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7415s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7415s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7415s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7415s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7415s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7415s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7415s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7415s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7415s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7415s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7415s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7415s # #else /* !G_ENABLE_DEBUG */ 7415s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7415s # * Do not access GValues directly in your code. Instead, use the 7415s # * g_value_get_*() functions 7415s # */ 7415s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7415s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7415s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7415s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7415s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7415s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7415s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7415s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7415s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7415s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7415s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7415s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7415s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7415s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7415s # #endif /* !G_ENABLE_DEBUG */ 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusArgInfo parent_struct; 7415s # gboolean use_gvariant; 7415s # } _ExtendedGDBusArgInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusMethodInfo parent_struct; 7415s # const gchar *signal_name; 7415s # gboolean pass_fdlist; 7415s # } _ExtendedGDBusMethodInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusSignalInfo parent_struct; 7415s # const gchar *signal_name; 7415s # } _ExtendedGDBusSignalInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusPropertyInfo parent_struct; 7415s # const gchar *hyphen_name; 7415s # guint use_gvariant : 1; 7415s # guint emits_changed_signal : 1; 7415s # } _ExtendedGDBusPropertyInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusInterfaceInfo parent_struct; 7415s # const gchar *hyphen_name; 7415s # } _ExtendedGDBusInterfaceInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # const _ExtendedGDBusPropertyInfo *info; 7415s # guint prop_id; 7415s # GValue orig_value; /* the value before the change */ 7415s # } ChangedProperty; 7415s # 7415s # static void 7415s # _changed_property_free (ChangedProperty *data) 7415s # { 7415s # g_value_unset (&data->orig_value); 7415s # g_free (data); 7415s # } 7415s # 7415s # static gboolean 7415s # _g_strv_equal0 (gchar **a, gchar **b) 7415s # { 7415s # gboolean ret = FALSE; 7415s # guint n; 7415s # if (a == NULL && b == NULL) 7415s # { 7415s # ret = TRUE; 7415s # goto out; 7415s # } 7415s # if (a == NULL || b == NULL) 7415s # goto out; 7415s # if (g_strv_length (a) != g_strv_length (b)) 7415s # goto out; 7415s # for (n = 0; a[n] != NULL; n++) 7415s # if (g_strcmp0 (a[n], b[n]) != 0) 7415s # goto out; 7415s # ret = TRUE; 7415s # out: 7415s # return ret; 7415s # } 7415s # 7415s # static gboolean 7415s # _g_variant_equal0 (GVariant *a, GVariant *b) 7415s # { 7415s # gboolean ret = FALSE; 7415s # if (a == NULL && b == NULL) 7415s # { 7415s # ret = TRUE; 7415s # goto out; 7415s # } 7415s # if (a == NULL || b == NULL) 7415s # goto out; 7415s # ret = g_variant_equal (a, b); 7415s # out: 7415s # return ret; 7415s # } 7415s # 7415s # G_GNUC_UNUSED static gboolean 7415s # _g_value_equal (const GValue *a, const GValue *b) 7415s # { 7415s # gboolean ret = FALSE; 7415s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7415s # switch (G_VALUE_TYPE (a)) 7415s # { 7415s # case G_TYPE_BOOLEAN: 7415s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7415s # break; 7415s # case G_TYPE_UCHAR: 7415s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7415s # break; 7415s # case G_TYPE_INT: 7415s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7415s # break; 7415s # case G_TYPE_UINT: 7415s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7415s # break; 7415s # case G_TYPE_INT64: 7415s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7415s # break; 7415s # case G_TYPE_UINT64: 7415s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7415s # break; 7415s # case G_TYPE_DOUBLE: 7415s # { 7415s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7415s # gdouble da = g_value_get_double (a); 7415s # gdouble db = g_value_get_double (b); 7415s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7415s # } 7415s # break; 7415s # case G_TYPE_STRING: 7415s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7415s # break; 7415s # case G_TYPE_VARIANT: 7415s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7415s # break; 7415s # default: 7415s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7415s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7415s # else 7415s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7415s # break; 7415s # } 7415s # return ret; 7415s # } 7415s # 7415s # static void 7415s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 7415s # GClosure *closure, 7415s # GValue *return_value, 7415s # unsigned int n_param_values, 7415s # const GValue *param_values, 7415s # void *invocation_hint G_GNUC_UNUSED, 7415s # void *marshal_data) 7415s # { 7415s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 7415s # (void *data1, 7415s # GDBusMethodInvocation *arg_method_invocation, 7415s # gboolean arg_arg_b, 7415s # void *data2); 7415s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 7415s # GCClosure *cc = (GCClosure*) closure; 7415s # void *data1, *data2; 7415s # gboolean v_return; 7415s # 7415s # g_return_if_fail (return_value != NULL); 7415s # g_return_if_fail (n_param_values == 3); 7415s # 7415s # if (G_CCLOSURE_SWAP_DATA (closure)) 7415s # { 7415s # data1 = closure->data; 7415s # data2 = g_value_peek_pointer (param_values + 0); 7415s # } 7415s # else 7415s # { 7415s # data1 = g_value_peek_pointer (param_values + 0); 7415s # data2 = closure->data; 7415s # } 7415s # 7415s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 7415s # (marshal_data ? marshal_data : cc->callback); 7415s # 7415s # v_return = 7415s # callback (data1, 7415s # g_marshal_value_peek_object (param_values + 1), 7415s # g_marshal_value_peek_boolean (param_values + 2), 7415s # data2); 7415s # 7415s # g_value_set_boolean (return_value, v_return); 7415s # } 7415s # 7415s # /* ------------------------------------------------------------------------ 7415s # * Code for interface org.project.UsefulInterface 7415s # * ------------------------------------------------------------------------ 7415s # */ 7415s # 7415s # /** 7415s # * SECTION:OrgProjectUsefulInterface 7415s # * @title: OrgProjectUsefulInterface 7415s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7415s # * 7415s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7415s # */ 7415s # 7415s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7415s # 7415s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 7415s # { 7415s # { 7415s # -1, 7415s # (gchar *) "arg_b", 7415s # (gchar *) "b", 7415s # NULL 7415s # }, 7415s # FALSE 7415s # }; 7415s # 7415s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 7415s # { 7415s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 7415s # NULL 7415s # }; 7415s # 7415s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 7415s # { 7415s # { 7415s # -1, 7415s # (gchar *) "SingleArgMethodB", 7415s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 7415s # NULL, 7415s # NULL 7415s # }, 7415s # "handle-single-arg-method-b", 7415s # FALSE 7415s # }; 7415s # 7415s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7415s # { 7415s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 7415s # NULL 7415s # }; 7415s # 7415s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7415s # { 7415s # { 7415s # -1, 7415s # (gchar *) "org.project.UsefulInterface", 7415s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7415s # NULL, 7415s # NULL, 7415s # NULL 7415s # }, 7415s # "org-project-useful-interface", 7415s # }; 7415s # 7415s # 7415s # /** 7415s # * org_project_useful_interface_interface_info: 7415s # * 7415s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7415s # * 7415s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7415s # */ 7415s # GDBusInterfaceInfo * 7415s # org_project_useful_interface_interface_info (void) 7415s # { 7415s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_override_properties: 7415s # * @klass: The class structure for a #GObject derived class. 7415s # * @property_id_begin: The property id to assign to the first overridden property. 7415s # * 7415s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7415s # * The properties are overridden in the order they are defined. 7415s # * 7415s # * Returns: The last property id. 7415s # */ 7415s # guint 7415s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7415s # { 7415s # return property_id_begin - 1; 7415s # } 7415s # 7415s # 7415s # inline static void 7415s # org_project_useful_interface_method_marshal_single_arg_method_b ( 7415s # GClosure *closure, 7415s # GValue *return_value, 7415s # unsigned int n_param_values, 7415s # const GValue *param_values, 7415s # void *invocation_hint, 7415s # void *marshal_data) 7415s # { 7415s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 7415s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7415s # } 7415s # 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterface: 7415s # * 7415s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7415s # */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceIface: 7415s # * @parent_iface: The parent interface. 7415s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 7415s # * 7415s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7415s # */ 7415s # 7415s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7415s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7415s # 7415s # static void 7415s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7415s # { 7415s # /* GObject signals for incoming D-Bus method calls: */ 7415s # /** 7415s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 7415s # * @object: A #OrgProjectUsefulInterface. 7415s # * @invocation: A #GDBusMethodInvocation. 7415s # * @arg_arg_b: Argument passed by remote caller. 7415s # * 7415s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 7415s # * 7415s # * 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. 7415s # * 7415s # * 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. 7415s # */ 7415s # g_signal_new ("handle-single-arg-method-b", 7415s # G_TYPE_FROM_INTERFACE (iface), 7415s # G_SIGNAL_RUN_LAST, 7415s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 7415s # g_signal_accumulator_true_handled, 7415s # NULL, 7415s # org_project_useful_interface_method_marshal_single_arg_method_b, 7415s # G_TYPE_BOOLEAN, 7415s # 2, 7415s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 7415s # 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_call_single_arg_method_b: 7415s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7415s # * @arg_arg_b: Argument to pass with the method invocation. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7415s # * @user_data: User data to pass to @callback. 7415s # * 7415s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 7415s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7415s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 7415s # * 7415s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 7415s # */ 7415s # void 7415s # org_project_useful_interface_call_single_arg_method_b ( 7415s # OrgProjectUsefulInterface *proxy, 7415s # gboolean arg_arg_b, 7415s # GCancellable *cancellable, 7415s # GAsyncReadyCallback callback, 7415s # gpointer user_data) 7415s # { 7415s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7415s # "SingleArgMethodB", 7415s # g_variant_new ("(b)", 7415s # arg_arg_b), 7415s # G_DBUS_CALL_FLAGS_NONE, 7415s # -1, 7415s # cancellable, 7415s # callback, 7415s # user_data); 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_call_single_arg_method_b_finish: 7415s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7415s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 7415s # * @error: Return location for error or %NULL. 7415s # * 7415s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 7415s # * 7415s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7415s # */ 7415s # gboolean 7415s # org_project_useful_interface_call_single_arg_method_b_finish ( 7415s # OrgProjectUsefulInterface *proxy, 7415s # GAsyncResult *res, 7415s # GError **error) 7415s # { 7415s # GVariant *_ret; 7415s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7415s # if (_ret == NULL) 7415s # goto _out; 7415s # g_variant_get (_ret, 7415s # "()"); 7415s # g_variant_unref (_ret); 7415s # _out: 7415s # return _ret != NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_call_single_arg_method_b_sync: 7415s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7415s # * @arg_arg_b: Argument to pass with the method invocation. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @error: Return location for error or %NULL. 7415s # * 7415s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7415s # * 7415s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 7415s # * 7415s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7415s # */ 7415s # gboolean 7415s # org_project_useful_interface_call_single_arg_method_b_sync ( 7415s # OrgProjectUsefulInterface *proxy, 7415s # gboolean arg_arg_b, 7415s # GCancellable *cancellable, 7415s # GError **error) 7415s # { 7415s # GVariant *_ret; 7415s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7415s # "SingleArgMethodB", 7415s # g_variant_new ("(b)", 7415s # arg_arg_b), 7415s # G_DBUS_CALL_FLAGS_NONE, 7415s # -1, 7415s # cancellable, 7415s # error); 7415s # if (_ret == NULL) 7415s # goto _out; 7415s # g_variant_get (_ret, 7415s # "()"); 7415s # g_variant_unref (_ret); 7415s # _out: 7415s # return _ret != NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_complete_single_arg_method_b: 7415s # * @object: A #OrgProjectUsefulInterface. 7415s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7415s # * 7415s # * 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. 7415s # * 7415s # * This method will free @invocation, you cannot use it afterwards. 7415s # */ 7415s # void 7415s # org_project_useful_interface_complete_single_arg_method_b ( 7415s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7415s # GDBusMethodInvocation *invocation) 7415s # { 7415s # g_dbus_method_invocation_return_value (invocation, 7415s # g_variant_new ("()")); 7415s # } 7415s # 7415s # /* ------------------------------------------------------------------------ */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceProxy: 7415s # * 7415s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7415s # */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceProxyClass: 7415s # * @parent_class: The parent class. 7415s # * 7415s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7415s # */ 7415s # 7415s # struct _OrgProjectUsefulInterfaceProxyPrivate 7415s # { 7415s # GData *qdata; 7415s # }; 7415s # 7415s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7415s # 7415s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7415s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7415s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7415s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7415s # 7415s # #else 7415s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7415s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7415s # 7415s # #endif 7415s # static void 7415s # org_project_useful_interface_proxy_finalize (GObject *object) 7415s # { 7415s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7415s # g_datalist_clear (&proxy->priv->qdata); 7415s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7415s # guint prop_id G_GNUC_UNUSED, 7415s # GValue *value G_GNUC_UNUSED, 7415s # GParamSpec *pspec G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7415s # guint prop_id G_GNUC_UNUSED, 7415s # const GValue *value G_GNUC_UNUSED, 7415s # GParamSpec *pspec G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7415s # const gchar *sender_name G_GNUC_UNUSED, 7415s # const gchar *signal_name, 7415s # GVariant *parameters) 7415s # { 7415s # _ExtendedGDBusSignalInfo *info; 7415s # GVariantIter iter; 7415s # GVariant *child; 7415s # GValue *paramv; 7415s # gsize num_params; 7415s # gsize n; 7415s # guint signal_id; 7415s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7415s # if (info == NULL) 7415s # return; 7415s # num_params = g_variant_n_children (parameters); 7415s # paramv = g_new0 (GValue, num_params + 1); 7415s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_value_set_object (¶mv[0], proxy); 7415s # g_variant_iter_init (&iter, parameters); 7415s # n = 1; 7415s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7415s # { 7415s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7415s # if (arg_info->use_gvariant) 7415s # { 7415s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7415s # g_value_set_variant (¶mv[n], child); 7415s # n++; 7415s # } 7415s # else 7415s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7415s # g_variant_unref (child); 7415s # } 7415s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_signal_emitv (paramv, signal_id, 0, NULL); 7415s # for (n = 0; n < num_params + 1; n++) 7415s # g_value_unset (¶mv[n]); 7415s # g_free (paramv); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7415s # GVariant *changed_properties, 7415s # const gchar *const *invalidated_properties) 7415s # { 7415s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7415s # guint n; 7415s # const gchar *key; 7415s # GVariantIter *iter; 7415s # _ExtendedGDBusPropertyInfo *info; 7415s # g_variant_get (changed_properties, "a{sv}", &iter); 7415s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7415s # { 7415s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7415s # g_datalist_remove_data (&proxy->priv->qdata, key); 7415s # if (info != NULL) 7415s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7415s # } 7415s # g_variant_iter_free (iter); 7415s # for (n = 0; invalidated_properties[n] != NULL; n++) 7415s # { 7415s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7415s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7415s # if (info != NULL) 7415s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7415s # } 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7415s # { 7415s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7415s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7415s # #else 7415s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7415s # #endif 7415s # 7415s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7415s # { 7415s # GObjectClass *gobject_class; 7415s # GDBusProxyClass *proxy_class; 7415s # 7415s # gobject_class = G_OBJECT_CLASS (klass); 7415s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7415s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7415s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7415s # 7415s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7415s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7415s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7415s # 7415s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7415s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7415s # #endif 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new: 7415s # * @connection: A #GDBusConnection. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7415s # * @user_data: User data to pass to @callback. 7415s # * 7415s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7415s # * 7415s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7415s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7415s # * 7415s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7415s # */ 7415s # void 7415s # org_project_useful_interface_proxy_new ( 7415s # GDBusConnection *connection, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GAsyncReadyCallback callback, 7415s # gpointer user_data) 7415s # { 7415s # g_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); 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_finish: 7415s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_finish ( 7415s # GAsyncResult *res, 7415s # GError **error) 7415s # { 7415s # GObject *ret; 7415s # GObject *source_object; 7415s # source_object = g_async_result_get_source_object (res); 7415s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7415s # g_object_unref (source_object); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_sync: 7415s # * @connection: A #GDBusConnection. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7415s # * 7415s # * The calling thread is blocked until a reply is received. 7415s # * 7415s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_sync ( 7415s # GDBusConnection *connection, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GError **error) 7415s # { 7415s # GInitable *ret; 7415s # 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); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_for_bus: 7415s # * @bus_type: A #GBusType. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: A bus name (well-known or unique). 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7415s # * @user_data: User data to pass to @callback. 7415s # * 7415s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7415s # * 7415s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7415s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7415s # * 7415s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7415s # */ 7415s # void 7415s # org_project_useful_interface_proxy_new_for_bus ( 7415s # GBusType bus_type, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GAsyncReadyCallback callback, 7415s # gpointer user_data) 7415s # { 7415s # g_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); 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_for_bus_finish: 7415s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_for_bus_finish ( 7415s # GAsyncResult *res, 7415s # GError **error) 7415s # { 7415s # GObject *ret; 7415s # GObject *source_object; 7415s # source_object = g_async_result_get_source_object (res); 7415s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7415s # g_object_unref (source_object); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_for_bus_sync: 7415s # * @bus_type: A #GBusType. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: A bus name (well-known or unique). 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7415s # * 7415s # * The calling thread is blocked until a reply is received. 7415s # * 7415s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_for_bus_sync ( 7415s # GBusType bus_type, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GError **error) 7415s # { 7415s # GInitable *ret; 7415s # 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); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # 7415s # /* ------------------------------------------------------------------------ */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceSkeleton: 7415s # * 7415s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7415s # */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceSkeletonClass: 7415s # * @parent_class: The parent class. 7415s # * 7415s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7415s # */ 7415s # 7415s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7415s # { 7415s # GValue *properties; 7415s # GList *changed_properties; 7415s # GSource *changed_properties_idle_source; 7415s # GMainContext *context; 7415s # GMutex lock; 7415s # }; 7415s # 7415s # static void 7415s # _org_project_useful_interface_skeleton_handle_method_call ( 7415s # GDBusConnection *connection G_GNUC_UNUSED, 7415s # const gchar *sender G_GNUC_UNUSED, 7415s # const gchar *object_path G_GNUC_UNUSED, 7415s # const gchar *interface_name, 7415s # const gchar *method_name, 7415s # GVariant *parameters, 7415s # GDBusMethodInvocation *invocation, 7415s # gpointer user_data) 7415s # { 7415s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7415s # _ExtendedGDBusMethodInfo *info; 7415s # GVariantIter iter; 7415s # GVariant *child; 7415s # GValue *paramv; 7415s # gsize num_params; 7415s # guint num_extra; 7415s # gsize n; 7415s # guint signal_id; 7415s # GValue return_value = G_VALUE_INIT; 7415s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7415s # g_assert (info != NULL); 7415s # num_params = g_variant_n_children (parameters); 7415s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7415s # n = 0; 7415s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_value_set_object (¶mv[n++], skeleton); 7415s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7415s # g_value_set_object (¶mv[n++], invocation); 7415s # if (info->pass_fdlist) 7415s # { 7415s # #ifdef G_OS_UNIX 7415s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7415s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7415s # #else 7415s # g_assert_not_reached (); 7415s # #endif 7415s # } 7415s # g_variant_iter_init (&iter, parameters); 7415s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7415s # { 7415s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7415s # if (arg_info->use_gvariant) 7415s # { 7415s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7415s # g_value_set_variant (¶mv[n], child); 7415s # n++; 7415s # } 7415s # else 7415s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7415s # g_variant_unref (child); 7415s # } 7415s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7415s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7415s # if (!g_value_get_boolean (&return_value)) 7415s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7415s # g_value_unset (&return_value); 7415s # for (n = 0; n < num_params + num_extra; n++) 7415s # g_value_unset (¶mv[n]); 7415s # g_free (paramv); 7415s # } 7415s # 7415s # static GVariant * 7415s # _org_project_useful_interface_skeleton_handle_get_property ( 7415s # GDBusConnection *connection G_GNUC_UNUSED, 7415s # const gchar *sender G_GNUC_UNUSED, 7415s # const gchar *object_path G_GNUC_UNUSED, 7415s # const gchar *interface_name G_GNUC_UNUSED, 7415s # const gchar *property_name, 7415s # GError **error, 7415s # gpointer user_data) 7415s # { 7415s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7415s # GValue value = G_VALUE_INIT; 7415s # GParamSpec *pspec; 7415s # _ExtendedGDBusPropertyInfo *info; 7415s # GVariant *ret; 7415s # ret = NULL; 7415s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7415s # g_assert (info != NULL); 7415s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7415s # if (pspec == NULL) 7415s # { 7415s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7415s # } 7415s # else 7415s # { 7415s # g_value_init (&value, pspec->value_type); 7415s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7415s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7415s # g_value_unset (&value); 7415s # } 7415s # return ret; 7415s # } 7415s # 7415s # static gboolean 7415s # _org_project_useful_interface_skeleton_handle_set_property ( 7415s # GDBusConnection *connection G_GNUC_UNUSED, 7415s # const gchar *sender G_GNUC_UNUSED, 7415s # const gchar *object_path G_GNUC_UNUSED, 7415s # const gchar *interface_name G_GNUC_UNUSED, 7415s # const gchar *property_name, 7415s # GVariant *variant, 7415s # GError **error, 7415s # gpointer user_data) 7415s # { 7415s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7415s # GValue value = G_VALUE_INIT; 7415s # GParamSpec *pspec; 7415s # _ExtendedGDBusPropertyInfo *info; 7415s # gboolean ret; 7415s # ret = FALSE; 7415s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7415s # g_assert (info != NULL); 7415s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7415s # if (pspec == NULL) 7415s # { 7415s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7415s # } 7415s # else 7415s # { 7415s # if (info->use_gvariant) 7415s # g_value_set_variant (&value, variant); 7415s # else 7415s # g_dbus_gvariant_to_gvalue (variant, &value); 7415s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7415s # g_value_unset (&value); 7415s # ret = TRUE; 7415s # } 7415s # return ret; 7415s # } 7415s # 7415s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7415s # { 7415s # _org_project_useful_interface_skeleton_handle_method_call, 7415s # _org_project_useful_interface_skeleton_handle_get_property, 7415s # _org_project_useful_interface_skeleton_handle_set_property, 7415s # {NULL} 7415s # }; 7415s # 7415s # static GDBusInterfaceInfo * 7415s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7415s # { 7415s # return org_project_useful_interface_interface_info (); 7415s # } 7415s # 7415s # static GDBusInterfaceVTable * 7415s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7415s # { 7415s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7415s # } 7415s # 7415s # static GVariant * 7415s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7415s # { 7415s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7415s # 7415s # GVariantBuilder builder; 7415s # guint n; 7415s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7415s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7415s # #else 7415s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7415s # #endif 7415s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7415s # goto out; 7415s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7415s # { 7415s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7415s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7415s # { 7415s # GVariant *value; 7415s # 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); 7415s # if (value != NULL) 7415s # { 7415s # g_variant_take_ref (value); 7415s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7415s # g_variant_unref (value); 7415s # } 7415s # } 7415s # } 7415s # out: 7415s # return g_variant_builder_end (&builder); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7415s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7415s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7415s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7415s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7415s # 7415s # #else 7415s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7415s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7415s # 7415s # #endif 7415s # static void 7415s # org_project_useful_interface_skeleton_finalize (GObject *object) 7415s # { 7415s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7415s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7415s # if (skeleton->priv->changed_properties_idle_source != NULL) 7415s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7415s # g_main_context_unref (skeleton->priv->context); 7415s # g_mutex_clear (&skeleton->priv->lock); 7415s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7415s # { 7415s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7415s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7415s # #else 7415s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7415s # #endif 7415s # 7415s # g_mutex_init (&skeleton->priv->lock); 7415s # skeleton->priv->context = g_main_context_ref_thread_default (); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7415s # { 7415s # GObjectClass *gobject_class; 7415s # GDBusInterfaceSkeletonClass *skeleton_class; 7415s # 7415s # gobject_class = G_OBJECT_CLASS (klass); 7415s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7415s # 7415s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7415s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7415s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7415s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7415s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7415s # 7415s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7415s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7415s # #endif 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_skeleton_new: 7415s # * 7415s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_skeleton_new (void) 7415s # { 7415s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7415s # } 7415s # Error: 7415s # 7415s # /tmp/tmps3qh7h6d/tmpfxx46wyg.xml: 7415s # 7415s # 7415s # 7415s # 7415s # 7415s # 7415s # 7415s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpfxx46wyg.xml', '--output', '-', '--body'] 7415s # Return code: 0 7415s # Output: 7415s # /* 7415s # * This file is generated by gdbus-codegen, do not modify it. 7415s # * 7415s # * The license of this code is the same as for the D-Bus interface description 7415s # * it was derived from. Note that it links to GLib, so must comply with the 7415s # * LGPL linking clauses. 7415s # */ 7415s # 7415s # #ifdef HAVE_CONFIG_H 7415s # # include "config.h" 7415s # #endif 7415s # 7415s # #include 7415s # #ifdef G_OS_UNIX 7415s # # include 7415s # #endif 7415s # 7415s # #ifdef G_ENABLE_DEBUG 7415s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7415s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7415s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7415s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7415s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7415s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7415s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7415s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7415s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7415s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7415s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7415s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7415s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7415s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7415s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7415s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7415s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7415s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7415s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7415s # #else /* !G_ENABLE_DEBUG */ 7415s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7415s # * Do not access GValues directly in your code. Instead, use the 7415s # * g_value_get_*() functions 7415s # */ 7415s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7415s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7415s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7415s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7415s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7415s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7415s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7415s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7415s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7415s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7415s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7415s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7415s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7415s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7415s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7415s # #endif /* !G_ENABLE_DEBUG */ 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusArgInfo parent_struct; 7415s # gboolean use_gvariant; 7415s # } _ExtendedGDBusArgInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusMethodInfo parent_struct; 7415s # const gchar *signal_name; 7415s # gboolean pass_fdlist; 7415s # } _ExtendedGDBusMethodInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusSignalInfo parent_struct; 7415s # const gchar *signal_name; 7415s # } _ExtendedGDBusSignalInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusPropertyInfo parent_struct; 7415s # const gchar *hyphen_name; 7415s # guint use_gvariant : 1; 7415s # guint emits_changed_signal : 1; 7415s # } _ExtendedGDBusPropertyInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # GDBusInterfaceInfo parent_struct; 7415s # const gchar *hyphen_name; 7415s # } _ExtendedGDBusInterfaceInfo; 7415s # 7415s # typedef struct 7415s # { 7415s # const _ExtendedGDBusPropertyInfo *info; 7415s # guint prop_id; 7415s # GValue orig_value; /* the value before the change */ 7415s # } ChangedProperty; 7415s # 7415s # static void 7415s # _changed_property_free (ChangedProperty *data) 7415s # { 7415s # g_value_unset (&data->orig_value); 7415s # g_free (data); 7415s # } 7415s # 7415s # static gboolean 7415s # _g_strv_equal0 (gchar **a, gchar **b) 7415s # { 7415s # gboolean ret = FALSE; 7415s # guint n; 7415s # if (a == NULL && b == NULL) 7415s # { 7415s # ret = TRUE; 7415s # goto out; 7415s # } 7415s # if (a == NULL || b == NULL) 7415s # goto out; 7415s # if (g_strv_length (a) != g_strv_length (b)) 7415s # goto out; 7415s # for (n = 0; a[n] != NULL; n++) 7415s # if (g_strcmp0 (a[n], b[n]) != 0) 7415s # goto out; 7415s # ret = TRUE; 7415s # out: 7415s # return ret; 7415s # } 7415s # 7415s # static gboolean 7415s # _g_variant_equal0 (GVariant *a, GVariant *b) 7415s # { 7415s # gboolean ret = FALSE; 7415s # if (a == NULL && b == NULL) 7415s # { 7415s # ret = TRUE; 7415s # goto out; 7415s # } 7415s # if (a == NULL || b == NULL) 7415s # goto out; 7415s # ret = g_variant_equal (a, b); 7415s # out: 7415s # return ret; 7415s # } 7415s # 7415s # G_GNUC_UNUSED static gboolean 7415s # _g_value_equal (const GValue *a, const GValue *b) 7415s # { 7415s # gboolean ret = FALSE; 7415s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7415s # switch (G_VALUE_TYPE (a)) 7415s # { 7415s # case G_TYPE_BOOLEAN: 7415s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7415s # break; 7415s # case G_TYPE_UCHAR: 7415s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7415s # break; 7415s # case G_TYPE_INT: 7415s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7415s # break; 7415s # case G_TYPE_UINT: 7415s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7415s # break; 7415s # case G_TYPE_INT64: 7415s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7415s # break; 7415s # case G_TYPE_UINT64: 7415s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7415s # break; 7415s # case G_TYPE_DOUBLE: 7415s # { 7415s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7415s # gdouble da = g_value_get_double (a); 7415s # gdouble db = g_value_get_double (b); 7415s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7415s # } 7415s # break; 7415s # case G_TYPE_STRING: 7415s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7415s # break; 7415s # case G_TYPE_VARIANT: 7415s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7415s # break; 7415s # default: 7415s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7415s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7415s # else 7415s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7415s # break; 7415s # } 7415s # return ret; 7415s # } 7415s # 7415s # static void 7415s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 7415s # GClosure *closure, 7415s # GValue *return_value, 7415s # unsigned int n_param_values, 7415s # const GValue *param_values, 7415s # void *invocation_hint G_GNUC_UNUSED, 7415s # void *marshal_data) 7415s # { 7415s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 7415s # (void *data1, 7415s # GDBusMethodInvocation *arg_method_invocation, 7415s # guchar arg_arg_y, 7415s # void *data2); 7415s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 7415s # GCClosure *cc = (GCClosure*) closure; 7415s # void *data1, *data2; 7415s # gboolean v_return; 7415s # 7415s # g_return_if_fail (return_value != NULL); 7415s # g_return_if_fail (n_param_values == 3); 7415s # 7415s # if (G_CCLOSURE_SWAP_DATA (closure)) 7415s # { 7415s # data1 = closure->data; 7415s # data2 = g_value_peek_pointer (param_values + 0); 7415s # } 7415s # else 7415s # { 7415s # data1 = g_value_peek_pointer (param_values + 0); 7415s # data2 = closure->data; 7415s # } 7415s # 7415s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 7415s # (marshal_data ? marshal_data : cc->callback); 7415s # 7415s # v_return = 7415s # callback (data1, 7415s # g_marshal_value_peek_object (param_values + 1), 7415s # g_marshal_value_peek_uchar (param_values + 2), 7415s # data2); 7415s # 7415s # g_value_set_boolean (return_value, v_return); 7415s # } 7415s # 7415s # /* ------------------------------------------------------------------------ 7415s # * Code for interface org.project.UsefulInterface 7415s # * ------------------------------------------------------------------------ 7415s # */ 7415s # 7415s # /** 7415s # * SECTION:OrgProjectUsefulInterface 7415s # * @title: OrgProjectUsefulInterface 7415s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7415s # * 7415s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7415s # */ 7415s # 7415s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7415s # 7415s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 7415s # { 7415s # { 7415s # -1, 7415s # (gchar *) "arg_y", 7415s # (gchar *) "y", 7415s # NULL 7415s # }, 7415s # FALSE 7415s # }; 7415s # 7415s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 7415s # { 7415s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 7415s # NULL 7415s # }; 7415s # 7415s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 7415s # { 7415s # { 7415s # -1, 7415s # (gchar *) "SingleArgMethodY", 7415s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 7415s # NULL, 7415s # NULL 7415s # }, 7415s # "handle-single-arg-method-y", 7415s # FALSE 7415s # }; 7415s # 7415s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7415s # { 7415s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 7415s # NULL 7415s # }; 7415s # 7415s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7415s # { 7415s # { 7415s # -1, 7415s # (gchar *) "org.project.UsefulInterface", 7415s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7415s # NULL, 7415s # NULL, 7415s # NULL 7415s # }, 7415s # "org-project-useful-interface", 7415s # }; 7415s # 7415s # 7415s # /** 7415s # * org_project_useful_interface_interface_info: 7415s # * 7415s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7415s # * 7415s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7415s # */ 7415s # GDBusInterfaceInfo * 7415s # org_project_useful_interface_interface_info (void) 7415s # { 7415s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_override_properties: 7415s # * @klass: The class structure for a #GObject derived class. 7415s # * @property_id_begin: The property id to assign to the first overridden property. 7415s # * 7415s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7415s # * The properties are overridden in the order they are defined. 7415s # * 7415s # * Returns: The last property id. 7415s # */ 7415s # guint 7415s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7415s # { 7415s # return property_id_begin - 1; 7415s # } 7415s # 7415s # 7415s # inline static void 7415s # org_project_useful_interface_method_marshal_single_arg_method_y ( 7415s # GClosure *closure, 7415s # GValue *return_value, 7415s # unsigned int n_param_values, 7415s # const GValue *param_values, 7415s # void *invocation_hint, 7415s # void *marshal_data) 7415s # { 7415s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 7415s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7415s # } 7415s # 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterface: 7415s # * 7415s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7415s # */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceIface: 7415s # * @parent_iface: The parent interface. 7415s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 7415s # * 7415s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7415s # */ 7415s # 7415s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7415s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7415s # 7415s # static void 7415s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7415s # { 7415s # /* GObject signals for incoming D-Bus method calls: */ 7415s # /** 7415s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 7415s # * @object: A #OrgProjectUsefulInterface. 7415s # * @invocation: A #GDBusMethodInvocation. 7415s # * @arg_arg_y: Argument passed by remote caller. 7415s # * 7415s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 7415s # * 7415s # * 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. 7415s # * 7415s # * 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. 7415s # */ 7415s # g_signal_new ("handle-single-arg-method-y", 7415s # G_TYPE_FROM_INTERFACE (iface), 7415s # G_SIGNAL_RUN_LAST, 7415s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 7415s # g_signal_accumulator_true_handled, 7415s # NULL, 7415s # org_project_useful_interface_method_marshal_single_arg_method_y, 7415s # G_TYPE_BOOLEAN, 7415s # 2, 7415s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 7415s # 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_call_single_arg_method_y: 7415s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7415s # * @arg_arg_y: Argument to pass with the method invocation. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7415s # * @user_data: User data to pass to @callback. 7415s # * 7415s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 7415s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7415s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 7415s # * 7415s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 7415s # */ 7415s # void 7415s # org_project_useful_interface_call_single_arg_method_y ( 7415s # OrgProjectUsefulInterface *proxy, 7415s # guchar arg_arg_y, 7415s # GCancellable *cancellable, 7415s # GAsyncReadyCallback callback, 7415s # gpointer user_data) 7415s # { 7415s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7415s # "SingleArgMethodY", 7415s # g_variant_new ("(y)", 7415s # arg_arg_y), 7415s # G_DBUS_CALL_FLAGS_NONE, 7415s # -1, 7415s # cancellable, 7415s # callback, 7415s # user_data); 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_call_single_arg_method_y_finish: 7415s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7415s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 7415s # * @error: Return location for error or %NULL. 7415s # * 7415s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 7415s # * 7415s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7415s # */ 7415s # gboolean 7415s # org_project_useful_interface_call_single_arg_method_y_finish ( 7415s # OrgProjectUsefulInterface *proxy, 7415s # GAsyncResult *res, 7415s # GError **error) 7415s # { 7415s # GVariant *_ret; 7415s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7415s # if (_ret == NULL) 7415s # goto _out; 7415s # g_variant_get (_ret, 7415s # "()"); 7415s # g_variant_unref (_ret); 7415s # _out: 7415s # return _ret != NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_call_single_arg_method_y_sync: 7415s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7415s # * @arg_arg_y: Argument to pass with the method invocation. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @error: Return location for error or %NULL. 7415s # * 7415s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7415s # * 7415s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 7415s # * 7415s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7415s # */ 7415s # gboolean 7415s # org_project_useful_interface_call_single_arg_method_y_sync ( 7415s # OrgProjectUsefulInterface *proxy, 7415s # guchar arg_arg_y, 7415s # GCancellable *cancellable, 7415s # GError **error) 7415s # { 7415s # GVariant *_ret; 7415s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7415s # "SingleArgMethodY", 7415s # g_variant_new ("(y)", 7415s # arg_arg_y), 7415s # G_DBUS_CALL_FLAGS_NONE, 7415s # -1, 7415s # cancellable, 7415s # error); 7415s # if (_ret == NULL) 7415s # goto _out; 7415s # g_variant_get (_ret, 7415s # "()"); 7415s # g_variant_unref (_ret); 7415s # _out: 7415s # return _ret != NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_complete_single_arg_method_y: 7415s # * @object: A #OrgProjectUsefulInterface. 7415s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7415s # * 7415s # * 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. 7415s # * 7415s # * This method will free @invocation, you cannot use it afterwards. 7415s # */ 7415s # void 7415s # org_project_useful_interface_complete_single_arg_method_y ( 7415s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7415s # GDBusMethodInvocation *invocation) 7415s # { 7415s # g_dbus_method_invocation_return_value (invocation, 7415s # g_variant_new ("()")); 7415s # } 7415s # 7415s # /* ------------------------------------------------------------------------ */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceProxy: 7415s # * 7415s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7415s # */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceProxyClass: 7415s # * @parent_class: The parent class. 7415s # * 7415s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7415s # */ 7415s # 7415s # struct _OrgProjectUsefulInterfaceProxyPrivate 7415s # { 7415s # GData *qdata; 7415s # }; 7415s # 7415s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7415s # 7415s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7415s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7415s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7415s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7415s # 7415s # #else 7415s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7415s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7415s # 7415s # #endif 7415s # static void 7415s # org_project_useful_interface_proxy_finalize (GObject *object) 7415s # { 7415s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7415s # g_datalist_clear (&proxy->priv->qdata); 7415s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7415s # guint prop_id G_GNUC_UNUSED, 7415s # GValue *value G_GNUC_UNUSED, 7415s # GParamSpec *pspec G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7415s # guint prop_id G_GNUC_UNUSED, 7415s # const GValue *value G_GNUC_UNUSED, 7415s # GParamSpec *pspec G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7415s # const gchar *sender_name G_GNUC_UNUSED, 7415s # const gchar *signal_name, 7415s # GVariant *parameters) 7415s # { 7415s # _ExtendedGDBusSignalInfo *info; 7415s # GVariantIter iter; 7415s # GVariant *child; 7415s # GValue *paramv; 7415s # gsize num_params; 7415s # gsize n; 7415s # guint signal_id; 7415s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7415s # if (info == NULL) 7415s # return; 7415s # num_params = g_variant_n_children (parameters); 7415s # paramv = g_new0 (GValue, num_params + 1); 7415s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_value_set_object (¶mv[0], proxy); 7415s # g_variant_iter_init (&iter, parameters); 7415s # n = 1; 7415s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7415s # { 7415s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7415s # if (arg_info->use_gvariant) 7415s # { 7415s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7415s # g_value_set_variant (¶mv[n], child); 7415s # n++; 7415s # } 7415s # else 7415s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7415s # g_variant_unref (child); 7415s # } 7415s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_signal_emitv (paramv, signal_id, 0, NULL); 7415s # for (n = 0; n < num_params + 1; n++) 7415s # g_value_unset (¶mv[n]); 7415s # g_free (paramv); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7415s # GVariant *changed_properties, 7415s # const gchar *const *invalidated_properties) 7415s # { 7415s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7415s # guint n; 7415s # const gchar *key; 7415s # GVariantIter *iter; 7415s # _ExtendedGDBusPropertyInfo *info; 7415s # g_variant_get (changed_properties, "a{sv}", &iter); 7415s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7415s # { 7415s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7415s # g_datalist_remove_data (&proxy->priv->qdata, key); 7415s # if (info != NULL) 7415s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7415s # } 7415s # g_variant_iter_free (iter); 7415s # for (n = 0; invalidated_properties[n] != NULL; n++) 7415s # { 7415s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7415s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7415s # if (info != NULL) 7415s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7415s # } 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7415s # { 7415s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7415s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7415s # #else 7415s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7415s # #endif 7415s # 7415s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7415s # { 7415s # GObjectClass *gobject_class; 7415s # GDBusProxyClass *proxy_class; 7415s # 7415s # gobject_class = G_OBJECT_CLASS (klass); 7415s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7415s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7415s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7415s # 7415s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7415s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7415s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7415s # 7415s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7415s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7415s # #endif 7415s # } 7415s # 7415s # static void 7415s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7415s # { 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new: 7415s # * @connection: A #GDBusConnection. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7415s # * @user_data: User data to pass to @callback. 7415s # * 7415s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7415s # * 7415s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7415s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7415s # * 7415s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7415s # */ 7415s # void 7415s # org_project_useful_interface_proxy_new ( 7415s # GDBusConnection *connection, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GAsyncReadyCallback callback, 7415s # gpointer user_data) 7415s # { 7415s # g_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); 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_finish: 7415s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_finish ( 7415s # GAsyncResult *res, 7415s # GError **error) 7415s # { 7415s # GObject *ret; 7415s # GObject *source_object; 7415s # source_object = g_async_result_get_source_object (res); 7415s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7415s # g_object_unref (source_object); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_sync: 7415s # * @connection: A #GDBusConnection. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7415s # * 7415s # * The calling thread is blocked until a reply is received. 7415s # * 7415s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_sync ( 7415s # GDBusConnection *connection, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GError **error) 7415s # { 7415s # GInitable *ret; 7415s # 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); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_for_bus: 7415s # * @bus_type: A #GBusType. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: A bus name (well-known or unique). 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7415s # * @user_data: User data to pass to @callback. 7415s # * 7415s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7415s # * 7415s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7415s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7415s # * 7415s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7415s # */ 7415s # void 7415s # org_project_useful_interface_proxy_new_for_bus ( 7415s # GBusType bus_type, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GAsyncReadyCallback callback, 7415s # gpointer user_data) 7415s # { 7415s # g_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); 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_for_bus_finish: 7415s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_for_bus_finish ( 7415s # GAsyncResult *res, 7415s # GError **error) 7415s # { 7415s # GObject *ret; 7415s # GObject *source_object; 7415s # source_object = g_async_result_get_source_object (res); 7415s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7415s # g_object_unref (source_object); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # /** 7415s # * org_project_useful_interface_proxy_new_for_bus_sync: 7415s # * @bus_type: A #GBusType. 7415s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7415s # * @name: A bus name (well-known or unique). 7415s # * @object_path: An object path. 7415s # * @cancellable: (nullable): A #GCancellable or %NULL. 7415s # * @error: Return location for error or %NULL 7415s # * 7415s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7415s # * 7415s # * The calling thread is blocked until a reply is received. 7415s # * 7415s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7415s # * 7415s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7415s # */ 7415s # OrgProjectUsefulInterface * 7415s # org_project_useful_interface_proxy_new_for_bus_sync ( 7415s # GBusType bus_type, 7415s # GDBusProxyFlags flags, 7415s # const gchar *name, 7415s # const gchar *object_path, 7415s # GCancellable *cancellable, 7415s # GError **error) 7415s # { 7415s # GInitable *ret; 7415s # 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); 7415s # if (ret != NULL) 7415s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7415s # else 7415s # return NULL; 7415s # } 7415s # 7415s # 7415s # /* ------------------------------------------------------------------------ */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceSkeleton: 7415s # * 7415s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7415s # */ 7415s # 7415s # /** 7415s # * OrgProjectUsefulInterfaceSkeletonClass: 7415s # * @parent_class: The parent class. 7415s # * 7415s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7415s # */ 7415s # 7415s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7415s # { 7415s # GValue *properties; 7415s # GList *changed_properties; 7415s # GSource *changed_properties_idle_source; 7415s # GMainContext *context; 7415s # GMutex lock; 7415s # }; 7415s # 7415s # static void 7415s # _org_project_useful_interface_skeleton_handle_method_call ( 7415s # GDBusConnection *connection G_GNUC_UNUSED, 7415s # const gchar *sender G_GNUC_UNUSED, 7415s # const gchar *object_path G_GNUC_UNUSED, 7415s # const gchar *interface_name, 7415s # const gchar *method_name, 7415s # GVariant *parameters, 7415s # GDBusMethodInvocation *invocation, 7415s # gpointer user_data) 7415s # { 7415s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7415s # _ExtendedGDBusMethodInfo *info; 7415s # GVariantIter iter; 7415s # GVariant *child; 7415s # GValue *paramv; 7415s # gsize num_params; 7415s # guint num_extra; 7415s # gsize n; 7415s # guint signal_id; 7415s # GValue return_value = G_VALUE_INIT; 7415s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7415s # g_assert (info != NULL); 7415s # num_params = g_variant_n_children (parameters); 7415s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7415s # n = 0; 7415s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_value_set_object (¶mv[n++], skeleton); 7415s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7415s # g_value_set_object (¶mv[n++], invocation); 7415s # if (info->pass_fdlist) 7415s # { 7415s # #ifdef G_OS_UNIX 7415s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7415s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7415s # #else 7415s # g_assert_not_reached (); 7415s # #endif 7415s # } 7415s # g_variant_iter_init (&iter, parameters); 7415s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7415s # { 7415s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7415s # if (arg_info->use_gvariant) 7415s # { 7415s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7415s # g_value_set_variant (¶mv[n], child); 7415s # n++; 7415s # } 7415s # else 7415s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7415s # g_variant_unref (child); 7415s # } 7415s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7415s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7415s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7415s # if (!g_value_get_boolean (&return_value)) 7415s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7415s # g_value_unset (&return_value); 7415s # for (n = 0; n < num_params + num_extra; n++) 7415s # g_value_unset (¶mv[n]); 7415s # g_free (paramv); 7415s # } 7415s # 7415s # static GVariant * 7415s # _org_project_useful_interface_skeleton_handle_get_property ( 7415s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpxyoueq2b.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpxyoueq2b.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # gint16 arg_arg_n, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_int (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_n", 7416s # (gchar *) "n", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodN", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-n", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_n ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_n: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-n", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_n, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_n: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_n: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_n ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gint16 arg_arg_n, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodN", 7416s # g_variant_new ("(n)", 7416s # arg_arg_n), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_n_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_n_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_n_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_n: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_n_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gint16 arg_arg_n, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodN", 7416s # g_variant_new ("(n)", 7416s # arg_arg_n), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_n: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_n ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpe_6t1hc2.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpe_6t1hc2.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # guint16 arg_arg_q, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_uint (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_q", 7416s # (gchar *) "q", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodQ", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-q", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_q ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_q: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-q", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_q, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_q: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_q: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_q ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # guint16 arg_arg_q, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodQ", 7416s # g_variant_new ("(q)", 7416s # arg_arg_q), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_q_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_q_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_q_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_q: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_q_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # guint16 arg_arg_q, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodQ", 7416s # g_variant_new ("(q)", 7416s # arg_arg_q), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_q: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_q ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpl8rz5_nc.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpl8rz5_nc.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # gint arg_arg_i, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_int (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_i", 7416s # (gchar *) "i", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodI", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-i", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_i ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_i: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-i", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_i, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_i: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_i: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_i ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gint arg_arg_i, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodI", 7416s # g_variant_new ("(i)", 7416s # arg_arg_i), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_i_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_i_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_i_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_i: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_i_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gint arg_arg_i, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodI", 7416s # g_variant_new ("(i)", 7416s # arg_arg_i), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_i: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_i ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpjoani2pz.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpjoani2pz.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # guint arg_arg_u, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_uint (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_u", 7416s # (gchar *) "u", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodU", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-u", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_u ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_u: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-u", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_u, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_u: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_u: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_u ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # guint arg_arg_u, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodU", 7416s # g_variant_new ("(u)", 7416s # arg_arg_u), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_u_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_u_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_u_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_u: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_u_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # guint arg_arg_u, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodU", 7416s # g_variant_new ("(u)", 7416s # arg_arg_u), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_u: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_u ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpiqf80sxw.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpiqf80sxw.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # gint64 arg_arg_x, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_int64 (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_x", 7416s # (gchar *) "x", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodX", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-x", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_x ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_x: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-x", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_x, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_x: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_x: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_x ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gint64 arg_arg_x, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodX", 7416s # g_variant_new ("(x)", 7416s # arg_arg_x), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_x_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_x_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_x_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_x: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_x_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gint64 arg_arg_x, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodX", 7416s # g_variant_new ("(x)", 7416s # arg_arg_x), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_x: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_x ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpic91ibum.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpic91ibum.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # guint64 arg_arg_t, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_uint64 (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_t", 7416s # (gchar *) "t", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodT", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-t", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_t ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_t: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-t", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_t, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_t: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_t: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_t ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # guint64 arg_arg_t, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodT", 7416s # g_variant_new ("(t)", 7416s # arg_arg_t), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_t_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_t_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_t_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_t: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_t_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # guint64 arg_arg_t, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodT", 7416s # g_variant_new ("(t)", 7416s # arg_arg_t), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_t: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_t ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpcnktt97d.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpcnktt97d.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # gdouble arg_arg_d, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_double (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_d", 7416s # (gchar *) "d", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodD", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-d", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_d ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_d: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-d", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_d, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_d: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_d: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_d ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gdouble arg_arg_d, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodD", 7416s # g_variant_new ("(d)", 7416s # arg_arg_d), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_d_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_d_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_d_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_d: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_d_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # gdouble arg_arg_d, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodD", 7416s # g_variant_new ("(d)", 7416s # arg_arg_d), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_d: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_d ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmp6mqbo15n.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmp6mqbo15n.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # const gchar *arg_arg_s, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_string (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_s", 7416s # (gchar *) "s", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodS", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-s", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_s ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_s: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-s", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_s, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_s: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_s: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_s ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_s, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodS", 7416s # g_variant_new ("(s)", 7416s # arg_arg_s), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_s_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_s_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_s_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_s: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_s_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_s, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodS", 7416s # g_variant_new ("(s)", 7416s # arg_arg_s), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_s: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_s ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmprnljnajb.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmprnljnajb.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # const gchar *arg_arg_o, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_string (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_o", 7416s # (gchar *) "o", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodO", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-o", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_o ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_o: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-o", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_o, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_o: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_o: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_o ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_o, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodO", 7416s # g_variant_new ("(o)", 7416s # arg_arg_o), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_o_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_o_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_o_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_o: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_o_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_o, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodO", 7416s # g_variant_new ("(o)", 7416s # arg_arg_o), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_o: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_o ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpek1j225c.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpek1j225c.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # const gchar *arg_arg_g, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_string (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_g", 7416s # (gchar *) "g", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodG", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-g", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_g ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_g: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-g", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_g, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_g: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_g: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_g ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_g, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodG", 7416s # g_variant_new ("(g)", 7416s # arg_arg_g), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_g_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_g_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_g_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_g: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_g_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_g, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodG", 7416s # g_variant_new ("(g)", 7416s # arg_arg_g), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_g: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_g ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpb4zulvqe.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpb4zulvqe.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # GVariant *arg_arg_h, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_variant (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_h", 7416s # (gchar *) "h", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodH", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-h", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_h ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_h: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-h", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_h, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_h: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_h: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_h ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GVariant *arg_arg_h, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodH", 7416s # g_variant_new ("(@h)", 7416s # arg_arg_h), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_h_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_h_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_h_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_h: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_h_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GVariant *arg_arg_h, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodH", 7416s # g_variant_new ("(@h)", 7416s # arg_arg_h), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_h: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_h ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpwgr0mpug.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpwgr0mpug.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # const gchar *arg_arg_ay, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_string (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_ay", 7416s # (gchar *) "ay", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodAy", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-ay", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_ay: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-ay", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_ay, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_ay: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_ay: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_ay ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_ay, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAy", 7416s # g_variant_new ("(^ay)", 7416s # arg_arg_ay), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_ay_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_ay_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_ay_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_ay: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_ay_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *arg_arg_ay, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAy", 7416s # g_variant_new ("(^ay)", 7416s # arg_arg_ay), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_ay: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_ay ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmp4bo79ygc.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmp4bo79ygc.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # const gchar *const *arg_arg_as, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_boxed (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_as", 7416s # (gchar *) "as", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodAs", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-as", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_as ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_as: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-as", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_as, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_as: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_as: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_as ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *const *arg_arg_as, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAs", 7416s # g_variant_new ("(^as)", 7416s # arg_arg_as), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_as_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_as_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_as_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_as: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_as_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *const *arg_arg_as, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAs", 7416s # g_variant_new ("(^as)", 7416s # arg_arg_as), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_as: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_as ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpq7bxmc1a.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpq7bxmc1a.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # const gchar *const *arg_arg_ao, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_boxed (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_ao", 7416s # (gchar *) "ao", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodAo", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-ao", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_ao: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-ao", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_ao, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_ao: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_ao: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_ao ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *const *arg_arg_ao, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAo", 7416s # g_variant_new ("(^ao)", 7416s # arg_arg_ao), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_ao_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_ao_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_ao_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_ao: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_ao_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *const *arg_arg_ao, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAo", 7416s # g_variant_new ("(^ao)", 7416s # arg_arg_ao), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_ao: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_ao ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpal1hc1vd.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpal1hc1vd.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # const gchar *const *arg_arg_aay, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_boxed (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_aay", 7416s # (gchar *) "aay", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodAay", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-aay", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_aay: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-aay", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_aay, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_aay: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_aay: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_aay ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *const *arg_arg_aay, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAay", 7416s # g_variant_new ("(^aay)", 7416s # arg_arg_aay), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_aay_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_aay_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_aay_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_aay: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_aay_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # const gchar *const *arg_arg_aay, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAay", 7416s # g_variant_new ("(^aay)", 7416s # arg_arg_aay), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_aay: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_aay ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7416s # 7416s # /tmp/tmps3qh7h6d/tmpxou75ean.xml: 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # 7416s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps3qh7h6d/tmpxou75ean.xml', '--output', '-', '--body'] 7416s # Return code: 0 7416s # Output: 7416s # /* 7416s # * This file is generated by gdbus-codegen, do not modify it. 7416s # * 7416s # * The license of this code is the same as for the D-Bus interface description 7416s # * it was derived from. Note that it links to GLib, so must comply with the 7416s # * LGPL linking clauses. 7416s # */ 7416s # 7416s # #ifdef HAVE_CONFIG_H 7416s # # include "config.h" 7416s # #endif 7416s # 7416s # #include 7416s # #ifdef G_OS_UNIX 7416s # # include 7416s # #endif 7416s # 7416s # #ifdef G_ENABLE_DEBUG 7416s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7416s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7416s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7416s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7416s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7416s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7416s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7416s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7416s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7416s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7416s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7416s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7416s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7416s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7416s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7416s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7416s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7416s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7416s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7416s # #else /* !G_ENABLE_DEBUG */ 7416s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7416s # * Do not access GValues directly in your code. Instead, use the 7416s # * g_value_get_*() functions 7416s # */ 7416s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7416s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7416s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7416s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7416s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7416s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7416s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7416s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7416s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7416s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7416s # #endif /* !G_ENABLE_DEBUG */ 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusArgInfo parent_struct; 7416s # gboolean use_gvariant; 7416s # } _ExtendedGDBusArgInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusMethodInfo parent_struct; 7416s # const gchar *signal_name; 7416s # gboolean pass_fdlist; 7416s # } _ExtendedGDBusMethodInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusSignalInfo parent_struct; 7416s # const gchar *signal_name; 7416s # } _ExtendedGDBusSignalInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusPropertyInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # guint use_gvariant : 1; 7416s # guint emits_changed_signal : 1; 7416s # } _ExtendedGDBusPropertyInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # GDBusInterfaceInfo parent_struct; 7416s # const gchar *hyphen_name; 7416s # } _ExtendedGDBusInterfaceInfo; 7416s # 7416s # typedef struct 7416s # { 7416s # const _ExtendedGDBusPropertyInfo *info; 7416s # guint prop_id; 7416s # GValue orig_value; /* the value before the change */ 7416s # } ChangedProperty; 7416s # 7416s # static void 7416s # _changed_property_free (ChangedProperty *data) 7416s # { 7416s # g_value_unset (&data->orig_value); 7416s # g_free (data); 7416s # } 7416s # 7416s # static gboolean 7416s # _g_strv_equal0 (gchar **a, gchar **b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # guint n; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # if (g_strv_length (a) != g_strv_length (b)) 7416s # goto out; 7416s # for (n = 0; a[n] != NULL; n++) 7416s # if (g_strcmp0 (a[n], b[n]) != 0) 7416s # goto out; 7416s # ret = TRUE; 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _g_variant_equal0 (GVariant *a, GVariant *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # if (a == NULL && b == NULL) 7416s # { 7416s # ret = TRUE; 7416s # goto out; 7416s # } 7416s # if (a == NULL || b == NULL) 7416s # goto out; 7416s # ret = g_variant_equal (a, b); 7416s # out: 7416s # return ret; 7416s # } 7416s # 7416s # G_GNUC_UNUSED static gboolean 7416s # _g_value_equal (const GValue *a, const GValue *b) 7416s # { 7416s # gboolean ret = FALSE; 7416s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7416s # switch (G_VALUE_TYPE (a)) 7416s # { 7416s # case G_TYPE_BOOLEAN: 7416s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7416s # break; 7416s # case G_TYPE_UCHAR: 7416s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7416s # break; 7416s # case G_TYPE_INT: 7416s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7416s # break; 7416s # case G_TYPE_UINT: 7416s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7416s # break; 7416s # case G_TYPE_INT64: 7416s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7416s # break; 7416s # case G_TYPE_UINT64: 7416s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7416s # break; 7416s # case G_TYPE_DOUBLE: 7416s # { 7416s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7416s # gdouble da = g_value_get_double (a); 7416s # gdouble db = g_value_get_double (b); 7416s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7416s # } 7416s # break; 7416s # case G_TYPE_STRING: 7416s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7416s # break; 7416s # case G_TYPE_VARIANT: 7416s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7416s # break; 7416s # default: 7416s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7416s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7416s # else 7416s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7416s # break; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static void 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint G_GNUC_UNUSED, 7416s # void *marshal_data) 7416s # { 7416s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 7416s # (void *data1, 7416s # GDBusMethodInvocation *arg_method_invocation, 7416s # GVariant *arg_arg_asv, 7416s # void *data2); 7416s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 7416s # GCClosure *cc = (GCClosure*) closure; 7416s # void *data1, *data2; 7416s # gboolean v_return; 7416s # 7416s # g_return_if_fail (return_value != NULL); 7416s # g_return_if_fail (n_param_values == 3); 7416s # 7416s # if (G_CCLOSURE_SWAP_DATA (closure)) 7416s # { 7416s # data1 = closure->data; 7416s # data2 = g_value_peek_pointer (param_values + 0); 7416s # } 7416s # else 7416s # { 7416s # data1 = g_value_peek_pointer (param_values + 0); 7416s # data2 = closure->data; 7416s # } 7416s # 7416s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 7416s # (marshal_data ? marshal_data : cc->callback); 7416s # 7416s # v_return = 7416s # callback (data1, 7416s # g_marshal_value_peek_object (param_values + 1), 7416s # g_marshal_value_peek_variant (param_values + 2), 7416s # data2); 7416s # 7416s # g_value_set_boolean (return_value, v_return); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ 7416s # * Code for interface org.project.UsefulInterface 7416s # * ------------------------------------------------------------------------ 7416s # */ 7416s # 7416s # /** 7416s # * SECTION:OrgProjectUsefulInterface 7416s # * @title: OrgProjectUsefulInterface 7416s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7416s # * 7416s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7416s # */ 7416s # 7416s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7416s # 7416s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "arg_asv", 7416s # (gchar *) "a{sv}", 7416s # NULL 7416s # }, 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "SingleArgMethodAsv", 7416s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "handle-single-arg-method-asv", 7416s # FALSE 7416s # }; 7416s # 7416s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7416s # { 7416s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 7416s # NULL 7416s # }; 7416s # 7416s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7416s # { 7416s # { 7416s # -1, 7416s # (gchar *) "org.project.UsefulInterface", 7416s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7416s # NULL, 7416s # NULL, 7416s # NULL 7416s # }, 7416s # "org-project-useful-interface", 7416s # }; 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_interface_info: 7416s # * 7416s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7416s # * 7416s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7416s # */ 7416s # GDBusInterfaceInfo * 7416s # org_project_useful_interface_interface_info (void) 7416s # { 7416s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_override_properties: 7416s # * @klass: The class structure for a #GObject derived class. 7416s # * @property_id_begin: The property id to assign to the first overridden property. 7416s # * 7416s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7416s # * The properties are overridden in the order they are defined. 7416s # * 7416s # * Returns: The last property id. 7416s # */ 7416s # guint 7416s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7416s # { 7416s # return property_id_begin - 1; 7416s # } 7416s # 7416s # 7416s # inline static void 7416s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 7416s # GClosure *closure, 7416s # GValue *return_value, 7416s # unsigned int n_param_values, 7416s # const GValue *param_values, 7416s # void *invocation_hint, 7416s # void *marshal_data) 7416s # { 7416s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 7416s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7416s # } 7416s # 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterface: 7416s # * 7416s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceIface: 7416s # * @parent_iface: The parent interface. 7416s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 7416s # * 7416s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7416s # */ 7416s # 7416s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7416s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7416s # 7416s # static void 7416s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7416s # { 7416s # /* GObject signals for incoming D-Bus method calls: */ 7416s # /** 7416s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: A #GDBusMethodInvocation. 7416s # * @arg_arg_asv: Argument passed by remote caller. 7416s # * 7416s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 7416s # * 7416s # * 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. 7416s # * 7416s # * 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. 7416s # */ 7416s # g_signal_new ("handle-single-arg-method-asv", 7416s # G_TYPE_FROM_INTERFACE (iface), 7416s # G_SIGNAL_RUN_LAST, 7416s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 7416s # g_signal_accumulator_true_handled, 7416s # NULL, 7416s # org_project_useful_interface_method_marshal_single_arg_method_asv, 7416s # G_TYPE_BOOLEAN, 7416s # 2, 7416s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 7416s # 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_asv: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_asv: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 7416s # */ 7416s # void 7416s # org_project_useful_interface_call_single_arg_method_asv ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GVariant *arg_arg_asv, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAsv", 7416s # g_variant_new ("(@a{sv})", 7416s # arg_arg_asv), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # callback, 7416s # user_data); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_asv_finish: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_asv_finish ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_call_single_arg_method_asv_sync: 7416s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7416s # * @arg_arg_asv: Argument to pass with the method invocation. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL. 7416s # * 7416s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 7416s # * 7416s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7416s # */ 7416s # gboolean 7416s # org_project_useful_interface_call_single_arg_method_asv_sync ( 7416s # OrgProjectUsefulInterface *proxy, 7416s # GVariant *arg_arg_asv, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GVariant *_ret; 7416s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7416s # "SingleArgMethodAsv", 7416s # g_variant_new ("(@a{sv})", 7416s # arg_arg_asv), 7416s # G_DBUS_CALL_FLAGS_NONE, 7416s # -1, 7416s # cancellable, 7416s # error); 7416s # if (_ret == NULL) 7416s # goto _out; 7416s # g_variant_get (_ret, 7416s # "()"); 7416s # g_variant_unref (_ret); 7416s # _out: 7416s # return _ret != NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_complete_single_arg_method_asv: 7416s # * @object: A #OrgProjectUsefulInterface. 7416s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7416s # * 7416s # * 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. 7416s # * 7416s # * This method will free @invocation, you cannot use it afterwards. 7416s # */ 7416s # void 7416s # org_project_useful_interface_complete_single_arg_method_asv ( 7416s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7416s # GDBusMethodInvocation *invocation) 7416s # { 7416s # g_dbus_method_invocation_return_value (invocation, 7416s # g_variant_new ("()")); 7416s # } 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxy: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceProxyClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceProxyPrivate 7416s # { 7416s # GData *qdata; 7416s # }; 7416s # 7416s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_proxy_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7416s # g_datalist_clear (&proxy->priv->qdata); 7416s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7416s # guint prop_id G_GNUC_UNUSED, 7416s # const GValue *value G_GNUC_UNUSED, 7416s # GParamSpec *pspec G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7416s # const gchar *sender_name G_GNUC_UNUSED, 7416s # const gchar *signal_name, 7416s # GVariant *parameters) 7416s # { 7416s # _ExtendedGDBusSignalInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # gsize n; 7416s # guint signal_id; 7416s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7416s # if (info == NULL) 7416s # return; 7416s # num_params = g_variant_n_children (parameters); 7416s # paramv = g_new0 (GValue, num_params + 1); 7416s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[0], proxy); 7416s # g_variant_iter_init (&iter, parameters); 7416s # n = 1; 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_signal_emitv (paramv, signal_id, 0, NULL); 7416s # for (n = 0; n < num_params + 1; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7416s # GVariant *changed_properties, 7416s # const gchar *const *invalidated_properties) 7416s # { 7416s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7416s # guint n; 7416s # const gchar *key; 7416s # GVariantIter *iter; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # g_variant_get (changed_properties, "a{sv}", &iter); 7416s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7416s # g_datalist_remove_data (&proxy->priv->qdata, key); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # g_variant_iter_free (iter); 7416s # for (n = 0; invalidated_properties[n] != NULL; n++) 7416s # { 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7416s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7416s # if (info != NULL) 7416s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7416s # } 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7416s # #else 7416s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7416s # #endif 7416s # 7416s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusProxyClass *proxy_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7416s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7416s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7416s # 7416s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7416s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7416s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_sync: 7416s # * @connection: A #GDBusConnection. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_sync ( 7416s # GDBusConnection *connection, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7416s # * @user_data: User data to pass to @callback. 7416s # * 7416s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7416s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7416s # */ 7416s # void 7416s # org_project_useful_interface_proxy_new_for_bus ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GAsyncReadyCallback callback, 7416s # gpointer user_data) 7416s # { 7416s # g_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); 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_finish: 7416s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_finish ( 7416s # GAsyncResult *res, 7416s # GError **error) 7416s # { 7416s # GObject *ret; 7416s # GObject *source_object; 7416s # source_object = g_async_result_get_source_object (res); 7416s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7416s # g_object_unref (source_object); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_proxy_new_for_bus_sync: 7416s # * @bus_type: A #GBusType. 7416s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7416s # * @name: A bus name (well-known or unique). 7416s # * @object_path: An object path. 7416s # * @cancellable: (nullable): A #GCancellable or %NULL. 7416s # * @error: Return location for error or %NULL 7416s # * 7416s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7416s # * 7416s # * The calling thread is blocked until a reply is received. 7416s # * 7416s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_proxy_new_for_bus_sync ( 7416s # GBusType bus_type, 7416s # GDBusProxyFlags flags, 7416s # const gchar *name, 7416s # const gchar *object_path, 7416s # GCancellable *cancellable, 7416s # GError **error) 7416s # { 7416s # GInitable *ret; 7416s # 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); 7416s # if (ret != NULL) 7416s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7416s # else 7416s # return NULL; 7416s # } 7416s # 7416s # 7416s # /* ------------------------------------------------------------------------ */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeleton: 7416s # * 7416s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7416s # */ 7416s # 7416s # /** 7416s # * OrgProjectUsefulInterfaceSkeletonClass: 7416s # * @parent_class: The parent class. 7416s # * 7416s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7416s # */ 7416s # 7416s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7416s # { 7416s # GValue *properties; 7416s # GList *changed_properties; 7416s # GSource *changed_properties_idle_source; 7416s # GMainContext *context; 7416s # GMutex lock; 7416s # }; 7416s # 7416s # static void 7416s # _org_project_useful_interface_skeleton_handle_method_call ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name, 7416s # const gchar *method_name, 7416s # GVariant *parameters, 7416s # GDBusMethodInvocation *invocation, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # _ExtendedGDBusMethodInfo *info; 7416s # GVariantIter iter; 7416s # GVariant *child; 7416s # GValue *paramv; 7416s # gsize num_params; 7416s # guint num_extra; 7416s # gsize n; 7416s # guint signal_id; 7416s # GValue return_value = G_VALUE_INIT; 7416s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7416s # g_assert (info != NULL); 7416s # num_params = g_variant_n_children (parameters); 7416s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7416s # n = 0; 7416s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_set_object (¶mv[n++], skeleton); 7416s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7416s # g_value_set_object (¶mv[n++], invocation); 7416s # if (info->pass_fdlist) 7416s # { 7416s # #ifdef G_OS_UNIX 7416s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7416s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7416s # #else 7416s # g_assert_not_reached (); 7416s # #endif 7416s # } 7416s # g_variant_iter_init (&iter, parameters); 7416s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7416s # { 7416s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7416s # if (arg_info->use_gvariant) 7416s # { 7416s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7416s # g_value_set_variant (¶mv[n], child); 7416s # n++; 7416s # } 7416s # else 7416s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7416s # g_variant_unref (child); 7416s # } 7416s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7416s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7416s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7416s # if (!g_value_get_boolean (&return_value)) 7416s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7416s # g_value_unset (&return_value); 7416s # for (n = 0; n < num_params + num_extra; n++) 7416s # g_value_unset (¶mv[n]); 7416s # g_free (paramv); 7416s # } 7416s # 7416s # static GVariant * 7416s # _org_project_useful_interface_skeleton_handle_get_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # GVariant *ret; 7416s # ret = NULL; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # g_value_init (&value, pspec->value_type); 7416s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7416s # g_value_unset (&value); 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static gboolean 7416s # _org_project_useful_interface_skeleton_handle_set_property ( 7416s # GDBusConnection *connection G_GNUC_UNUSED, 7416s # const gchar *sender G_GNUC_UNUSED, 7416s # const gchar *object_path G_GNUC_UNUSED, 7416s # const gchar *interface_name G_GNUC_UNUSED, 7416s # const gchar *property_name, 7416s # GVariant *variant, 7416s # GError **error, 7416s # gpointer user_data) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7416s # GValue value = G_VALUE_INIT; 7416s # GParamSpec *pspec; 7416s # _ExtendedGDBusPropertyInfo *info; 7416s # gboolean ret; 7416s # ret = FALSE; 7416s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7416s # g_assert (info != NULL); 7416s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7416s # if (pspec == NULL) 7416s # { 7416s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7416s # } 7416s # else 7416s # { 7416s # if (info->use_gvariant) 7416s # g_value_set_variant (&value, variant); 7416s # else 7416s # g_dbus_gvariant_to_gvalue (variant, &value); 7416s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7416s # g_value_unset (&value); 7416s # ret = TRUE; 7416s # } 7416s # return ret; 7416s # } 7416s # 7416s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7416s # { 7416s # _org_project_useful_interface_skeleton_handle_method_call, 7416s # _org_project_useful_interface_skeleton_handle_get_property, 7416s # _org_project_useful_interface_skeleton_handle_set_property, 7416s # {NULL} 7416s # }; 7416s # 7416s # static GDBusInterfaceInfo * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return org_project_useful_interface_interface_info (); 7416s # } 7416s # 7416s # static GDBusInterfaceVTable * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7416s # { 7416s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7416s # } 7416s # 7416s # static GVariant * 7416s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7416s # 7416s # GVariantBuilder builder; 7416s # guint n; 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7416s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #else 7416s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7416s # #endif 7416s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7416s # goto out; 7416s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7416s # { 7416s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7416s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7416s # { 7416s # GVariant *value; 7416s # 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); 7416s # if (value != NULL) 7416s # { 7416s # g_variant_take_ref (value); 7416s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7416s # g_variant_unref (value); 7416s # } 7416s # } 7416s # } 7416s # out: 7416s # return g_variant_builder_end (&builder); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #else 7416s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7416s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7416s # 7416s # #endif 7416s # static void 7416s # org_project_useful_interface_skeleton_finalize (GObject *object) 7416s # { 7416s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7416s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7416s # if (skeleton->priv->changed_properties_idle_source != NULL) 7416s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7416s # g_main_context_unref (skeleton->priv->context); 7416s # g_mutex_clear (&skeleton->priv->lock); 7416s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7416s # { 7416s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7416s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7416s # #else 7416s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7416s # #endif 7416s # 7416s # g_mutex_init (&skeleton->priv->lock); 7416s # skeleton->priv->context = g_main_context_ref_thread_default (); 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7416s # { 7416s # GObjectClass *gobject_class; 7416s # GDBusInterfaceSkeletonClass *skeleton_class; 7416s # 7416s # gobject_class = G_OBJECT_CLASS (klass); 7416s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7416s # 7416s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7416s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7416s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7416s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7416s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7416s # 7416s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7416s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7416s # #endif 7416s # } 7416s # 7416s # static void 7416s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7416s # { 7416s # } 7416s # 7416s # /** 7416s # * org_project_useful_interface_skeleton_new: 7416s # * 7416s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7416s # * 7416s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7416s # */ 7416s # OrgProjectUsefulInterface * 7416s # org_project_useful_interface_skeleton_new (void) 7416s # { 7416s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7416s # } 7416s # Error: 7419s # Executing: glib/codegen.py.test 7424s # Executing: glib/codegen.py.test 7429s # Executing: glib/codegen.py.test 7434s # Executing: glib/codegen.py.test 7437s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 7437s # gdbus-codegen: /usr/bin/gdbus-codegen 7437s # tmpdir: /tmp/tmp5l2s4f0x 7437s # /tmp/tmp5l2s4f0x/tmpt41mhnb5.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpt41mhnb5.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_b", 7437s # (gchar *) "b", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodB", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-b", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_b ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-b", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_b, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_b: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_b ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodB", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_b_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_b_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gboolean *out_arg_b, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(b)", 7437s # out_arg_b); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_b_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_b_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gboolean *out_arg_b, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodB", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(b)", 7437s # out_arg_b); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_b: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_b: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_b ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # gboolean arg_b) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(b)", 7437s # arg_b)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp0rgg4_11.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp0rgg4_11.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_y", 7437s # (gchar *) "y", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodY", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-y", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_y ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-y", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_y, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_y: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_y ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodY", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_y_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_y_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guchar *out_arg_y, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(y)", 7437s # out_arg_y); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_y_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_y_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guchar *out_arg_y, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodY", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(y)", 7437s # out_arg_y); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_y: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_y: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_y ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # guchar arg_y) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(y)", 7437s # arg_y)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp4recmgow.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp4recmgow.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_n", 7437s # (gchar *) "n", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodN", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-n", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_n ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-n", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_n, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_n: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_n ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodN", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_n_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_n_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gint16 *out_arg_n, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(n)", 7437s # out_arg_n); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_n_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_n_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gint16 *out_arg_n, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodN", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(n)", 7437s # out_arg_n); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_n: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_n: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_n ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # gint16 arg_n) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(n)", 7437s # arg_n)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpsco62iws.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpsco62iws.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_q", 7437s # (gchar *) "q", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodQ", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-q", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_q ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-q", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_q, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_q: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_q ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodQ", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_q_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_q_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guint16 *out_arg_q, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(q)", 7437s # out_arg_q); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_q_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_q_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guint16 *out_arg_q, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodQ", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(q)", 7437s # out_arg_q); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_q: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_q: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_q ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # guint16 arg_q) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(q)", 7437s # arg_q)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp71ipg7jt.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp71ipg7jt.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_i", 7437s # (gchar *) "i", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodI", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-i", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_i ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-i", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_i, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_i: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_i ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodI", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_i_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_i_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gint *out_arg_i, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(i)", 7437s # out_arg_i); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_i_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_i_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gint *out_arg_i, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodI", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(i)", 7437s # out_arg_i); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_i: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_i: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_i ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # gint arg_i) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(i)", 7437s # arg_i)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpljb665qz.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpljb665qz.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_u", 7437s # (gchar *) "u", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodU", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-u", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_u ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-u", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_u, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_u: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_u ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodU", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_u_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_u_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guint *out_arg_u, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(u)", 7437s # out_arg_u); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_u_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_u_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guint *out_arg_u, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodU", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(u)", 7437s # out_arg_u); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_u: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_u: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_u ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # guint arg_u) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(u)", 7437s # arg_u)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpv9t2tfdq.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpv9t2tfdq.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_x", 7437s # (gchar *) "x", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodX", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-x", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_x ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-x", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_x, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_x: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_x ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodX", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_x_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_x_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gint64 *out_arg_x, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(x)", 7437s # out_arg_x); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_x_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_x_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gint64 *out_arg_x, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodX", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(x)", 7437s # out_arg_x); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_x: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_x: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_x ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # gint64 arg_x) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(x)", 7437s # arg_x)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp7rwxc1em.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp7rwxc1em.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_t", 7437s # (gchar *) "t", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodT", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-t", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_t ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-t", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_t, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_t: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_t ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodT", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_t_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_t_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guint64 *out_arg_t, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(t)", 7437s # out_arg_t); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_t_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_t_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # guint64 *out_arg_t, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodT", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(t)", 7437s # out_arg_t); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_t: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_t: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_t ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # guint64 arg_t) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(t)", 7437s # arg_t)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpo_4lmmy2.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpo_4lmmy2.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_d", 7437s # (gchar *) "d", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodD", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-d", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_d ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-d", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_d, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_d: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_d ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodD", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_d_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_d_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gdouble *out_arg_d, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(d)", 7437s # out_arg_d); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_d_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_d_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gdouble *out_arg_d, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodD", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(d)", 7437s # out_arg_d); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_d: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_d: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_d ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # gdouble arg_d) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(d)", 7437s # arg_d)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp2ku8ip3d.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp2ku8ip3d.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_s", 7437s # (gchar *) "s", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodS", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-s", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_s ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-s", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_s, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_s: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_s ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodS", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_s_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_s_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_s, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(s)", 7437s # out_arg_s); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_s_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_s_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_s, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodS", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(s)", 7437s # out_arg_s); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_s: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_s: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_s ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # const gchar *arg_s) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(s)", 7437s # arg_s)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpysend5zx.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpysend5zx.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_o", 7437s # (gchar *) "o", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodO", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-o", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_o ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-o", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_o, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_o: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_o ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodO", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_o_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_o_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_o, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(o)", 7437s # out_arg_o); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_o_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_o_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_o, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodO", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(o)", 7437s # out_arg_o); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_o: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_o: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_o ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # const gchar *arg_o) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(o)", 7437s # arg_o)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp3g5stqyq.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp3g5stqyq.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_g", 7437s # (gchar *) "g", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodG", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-g", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_g ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-g", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_g, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_g: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_g ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodG", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_g_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_g_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_g, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(g)", 7437s # out_arg_g); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_g_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_g_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_g, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodG", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(g)", 7437s # out_arg_g); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_g: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_g: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_g ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # const gchar *arg_g) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(g)", 7437s # arg_g)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpbegqcylm.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpbegqcylm.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_h", 7437s # (gchar *) "h", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodH", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-h", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_h ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-h", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_h, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_h: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_h ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodH", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_h_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_h_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GVariant **out_arg_h, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(@h)", 7437s # out_arg_h); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_h_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_h_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GVariant **out_arg_h, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodH", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(@h)", 7437s # out_arg_h); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_h: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_h: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_h ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # GVariant *arg_h) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(@h)", 7437s # arg_h)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpqnpld92z.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpqnpld92z.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_ay", 7437s # (gchar *) "ay", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodAy", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-ay", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-ay", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_ay, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_ay: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_ay ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAy", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_ay_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_ay_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_ay, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^ay)", 7437s # out_arg_ay); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_ay_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_ay_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar **out_arg_ay, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAy", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^ay)", 7437s # out_arg_ay); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_ay: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_ay: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_ay ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # const gchar *arg_ay) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(^ay)", 7437s # arg_ay)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpaf5kap_r.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpaf5kap_r.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_as", 7437s # (gchar *) "as", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodAs", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-as", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_as ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-as", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_as, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_as: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_as ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAs", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_as_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_as_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar ***out_arg_as, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^as)", 7437s # out_arg_as); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_as_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_as_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar ***out_arg_as, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAs", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^as)", 7437s # out_arg_as); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_as: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_as: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_as ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # const gchar *const *arg_as) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(^as)", 7437s # arg_as)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmpmb4e385b.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmpmb4e385b.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_ao", 7437s # (gchar *) "ao", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodAo", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-ao", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-ao", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_ao, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_ao: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_ao ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAo", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_ao_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_ao_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar ***out_arg_ao, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^ao)", 7437s # out_arg_ao); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_ao_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_ao_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar ***out_arg_ao, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAo", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^ao)", 7437s # out_arg_ao); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_ao: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_ao: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_ao ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # const gchar *const *arg_ao) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(^ao)", 7437s # arg_ao)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp9rdnm_x9.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp9rdnm_x9.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_aay", 7437s # (gchar *) "aay", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodAay", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-aay", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-aay", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_aay, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_aay: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_aay ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAay", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_aay_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_aay_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar ***out_arg_aay, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^aay)", 7437s # out_arg_aay); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_aay_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_aay_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # gchar ***out_arg_aay, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAay", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(^aay)", 7437s # out_arg_aay); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_aay: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_aay: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_aay ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # const gchar *const *arg_aay) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(^aay)", 7437s # arg_aay)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7437s # 7437s # /tmp/tmp5l2s4f0x/tmp2_xxbvff.xml: 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # 7437s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5l2s4f0x/tmp2_xxbvff.xml', '--output', '-', '--body'] 7437s # Return code: 0 7437s # Output: 7437s # /* 7437s # * This file is generated by gdbus-codegen, do not modify it. 7437s # * 7437s # * The license of this code is the same as for the D-Bus interface description 7437s # * it was derived from. Note that it links to GLib, so must comply with the 7437s # * LGPL linking clauses. 7437s # */ 7437s # 7437s # #ifdef HAVE_CONFIG_H 7437s # # include "config.h" 7437s # #endif 7437s # 7437s # #include 7437s # #ifdef G_OS_UNIX 7437s # # include 7437s # #endif 7437s # 7437s # #ifdef G_ENABLE_DEBUG 7437s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7437s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7437s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7437s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7437s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7437s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7437s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7437s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7437s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7437s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7437s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7437s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7437s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7437s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7437s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7437s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7437s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7437s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7437s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7437s # #else /* !G_ENABLE_DEBUG */ 7437s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7437s # * Do not access GValues directly in your code. Instead, use the 7437s # * g_value_get_*() functions 7437s # */ 7437s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7437s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7437s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7437s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7437s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7437s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7437s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7437s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7437s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7437s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7437s # #endif /* !G_ENABLE_DEBUG */ 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusArgInfo parent_struct; 7437s # gboolean use_gvariant; 7437s # } _ExtendedGDBusArgInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusMethodInfo parent_struct; 7437s # const gchar *signal_name; 7437s # gboolean pass_fdlist; 7437s # } _ExtendedGDBusMethodInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusSignalInfo parent_struct; 7437s # const gchar *signal_name; 7437s # } _ExtendedGDBusSignalInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusPropertyInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # guint use_gvariant : 1; 7437s # guint emits_changed_signal : 1; 7437s # } _ExtendedGDBusPropertyInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # GDBusInterfaceInfo parent_struct; 7437s # const gchar *hyphen_name; 7437s # } _ExtendedGDBusInterfaceInfo; 7437s # 7437s # typedef struct 7437s # { 7437s # const _ExtendedGDBusPropertyInfo *info; 7437s # guint prop_id; 7437s # GValue orig_value; /* the value before the change */ 7437s # } ChangedProperty; 7437s # 7437s # static void 7437s # _changed_property_free (ChangedProperty *data) 7437s # { 7437s # g_value_unset (&data->orig_value); 7437s # g_free (data); 7437s # } 7437s # 7437s # static gboolean 7437s # _g_strv_equal0 (gchar **a, gchar **b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # guint n; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # if (g_strv_length (a) != g_strv_length (b)) 7437s # goto out; 7437s # for (n = 0; a[n] != NULL; n++) 7437s # if (g_strcmp0 (a[n], b[n]) != 0) 7437s # goto out; 7437s # ret = TRUE; 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _g_variant_equal0 (GVariant *a, GVariant *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # if (a == NULL && b == NULL) 7437s # { 7437s # ret = TRUE; 7437s # goto out; 7437s # } 7437s # if (a == NULL || b == NULL) 7437s # goto out; 7437s # ret = g_variant_equal (a, b); 7437s # out: 7437s # return ret; 7437s # } 7437s # 7437s # G_GNUC_UNUSED static gboolean 7437s # _g_value_equal (const GValue *a, const GValue *b) 7437s # { 7437s # gboolean ret = FALSE; 7437s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7437s # switch (G_VALUE_TYPE (a)) 7437s # { 7437s # case G_TYPE_BOOLEAN: 7437s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7437s # break; 7437s # case G_TYPE_UCHAR: 7437s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7437s # break; 7437s # case G_TYPE_INT: 7437s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7437s # break; 7437s # case G_TYPE_UINT: 7437s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7437s # break; 7437s # case G_TYPE_INT64: 7437s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7437s # break; 7437s # case G_TYPE_UINT64: 7437s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7437s # break; 7437s # case G_TYPE_DOUBLE: 7437s # { 7437s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7437s # gdouble da = g_value_get_double (a); 7437s # gdouble db = g_value_get_double (b); 7437s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7437s # } 7437s # break; 7437s # case G_TYPE_STRING: 7437s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7437s # break; 7437s # case G_TYPE_VARIANT: 7437s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7437s # break; 7437s # default: 7437s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7437s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7437s # else 7437s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7437s # break; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static void 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint G_GNUC_UNUSED, 7437s # void *marshal_data) 7437s # { 7437s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (void *data1, 7437s # GDBusMethodInvocation *arg_method_invocation, 7437s # void *data2); 7437s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7437s # GCClosure *cc = (GCClosure*) closure; 7437s # void *data1, *data2; 7437s # gboolean v_return; 7437s # 7437s # g_return_if_fail (return_value != NULL); 7437s # g_return_if_fail (n_param_values == 2); 7437s # 7437s # if (G_CCLOSURE_SWAP_DATA (closure)) 7437s # { 7437s # data1 = closure->data; 7437s # data2 = g_value_peek_pointer (param_values + 0); 7437s # } 7437s # else 7437s # { 7437s # data1 = g_value_peek_pointer (param_values + 0); 7437s # data2 = closure->data; 7437s # } 7437s # 7437s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7437s # (marshal_data ? marshal_data : cc->callback); 7437s # 7437s # v_return = 7437s # callback (data1, 7437s # g_marshal_value_peek_object (param_values + 1), 7437s # data2); 7437s # 7437s # g_value_set_boolean (return_value, v_return); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ 7437s # * Code for interface org.project.UsefulInterface 7437s # * ------------------------------------------------------------------------ 7437s # */ 7437s # 7437s # /** 7437s # * SECTION:OrgProjectUsefulInterface 7437s # * @title: OrgProjectUsefulInterface 7437s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7437s # * 7437s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7437s # */ 7437s # 7437s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7437s # 7437s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "arg_asv", 7437s # (gchar *) "a{sv}", 7437s # NULL 7437s # }, 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "SingleArgMethodAsv", 7437s # NULL, 7437s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 7437s # NULL 7437s # }, 7437s # "handle-single-arg-method-asv", 7437s # FALSE 7437s # }; 7437s # 7437s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 7437s # { 7437s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 7437s # NULL 7437s # }; 7437s # 7437s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7437s # { 7437s # { 7437s # -1, 7437s # (gchar *) "org.project.UsefulInterface", 7437s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 7437s # NULL, 7437s # NULL, 7437s # NULL 7437s # }, 7437s # "org-project-useful-interface", 7437s # }; 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_interface_info: 7437s # * 7437s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7437s # * 7437s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7437s # */ 7437s # GDBusInterfaceInfo * 7437s # org_project_useful_interface_interface_info (void) 7437s # { 7437s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_override_properties: 7437s # * @klass: The class structure for a #GObject derived class. 7437s # * @property_id_begin: The property id to assign to the first overridden property. 7437s # * 7437s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7437s # * The properties are overridden in the order they are defined. 7437s # * 7437s # * Returns: The last property id. 7437s # */ 7437s # guint 7437s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7437s # { 7437s # return property_id_begin - 1; 7437s # } 7437s # 7437s # 7437s # inline static void 7437s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 7437s # GClosure *closure, 7437s # GValue *return_value, 7437s # unsigned int n_param_values, 7437s # const GValue *param_values, 7437s # void *invocation_hint, 7437s # void *marshal_data) 7437s # { 7437s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7437s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7437s # } 7437s # 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterface: 7437s # * 7437s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceIface: 7437s # * @parent_iface: The parent interface. 7437s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 7437s # * 7437s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7437s # */ 7437s # 7437s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7437s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7437s # 7437s # static void 7437s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7437s # { 7437s # /* GObject signals for incoming D-Bus method calls: */ 7437s # /** 7437s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: A #GDBusMethodInvocation. 7437s # * 7437s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 7437s # * 7437s # * 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. 7437s # * 7437s # * 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. 7437s # */ 7437s # g_signal_new ("handle-single-arg-method-asv", 7437s # G_TYPE_FROM_INTERFACE (iface), 7437s # G_SIGNAL_RUN_LAST, 7437s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 7437s # g_signal_accumulator_true_handled, 7437s # NULL, 7437s # org_project_useful_interface_method_marshal_single_arg_method_asv, 7437s # G_TYPE_BOOLEAN, 7437s # 1, 7437s # G_TYPE_DBUS_METHOD_INVOCATION); 7437s # 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_asv: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 7437s # */ 7437s # void 7437s # org_project_useful_interface_call_single_arg_method_asv ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAsv", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # callback, 7437s # user_data); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_asv_finish: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_asv_finish ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GVariant **out_arg_asv, 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(@a{sv})", 7437s # out_arg_asv); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_call_single_arg_method_asv_sync: 7437s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 7437s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL. 7437s # * 7437s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 7437s # * 7437s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7437s # */ 7437s # gboolean 7437s # org_project_useful_interface_call_single_arg_method_asv_sync ( 7437s # OrgProjectUsefulInterface *proxy, 7437s # GVariant **out_arg_asv, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GVariant *_ret; 7437s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7437s # "SingleArgMethodAsv", 7437s # g_variant_new ("()"), 7437s # G_DBUS_CALL_FLAGS_NONE, 7437s # -1, 7437s # cancellable, 7437s # error); 7437s # if (_ret == NULL) 7437s # goto _out; 7437s # g_variant_get (_ret, 7437s # "(@a{sv})", 7437s # out_arg_asv); 7437s # g_variant_unref (_ret); 7437s # _out: 7437s # return _ret != NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_complete_single_arg_method_asv: 7437s # * @object: A #OrgProjectUsefulInterface. 7437s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7437s # * @arg_asv: Parameter to return. 7437s # * 7437s # * 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. 7437s # * 7437s # * This method will free @invocation, you cannot use it afterwards. 7437s # */ 7437s # void 7437s # org_project_useful_interface_complete_single_arg_method_asv ( 7437s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 7437s # GDBusMethodInvocation *invocation, 7437s # GVariant *arg_asv) 7437s # { 7437s # g_dbus_method_invocation_return_value (invocation, 7437s # g_variant_new ("(@a{sv})", 7437s # arg_asv)); 7437s # } 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxy: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceProxyClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceProxyPrivate 7437s # { 7437s # GData *qdata; 7437s # }; 7437s # 7437s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_proxy_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7437s # g_datalist_clear (&proxy->priv->qdata); 7437s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7437s # guint prop_id G_GNUC_UNUSED, 7437s # const GValue *value G_GNUC_UNUSED, 7437s # GParamSpec *pspec G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7437s # const gchar *sender_name G_GNUC_UNUSED, 7437s # const gchar *signal_name, 7437s # GVariant *parameters) 7437s # { 7437s # _ExtendedGDBusSignalInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # gsize n; 7437s # guint signal_id; 7437s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7437s # if (info == NULL) 7437s # return; 7437s # num_params = g_variant_n_children (parameters); 7437s # paramv = g_new0 (GValue, num_params + 1); 7437s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[0], proxy); 7437s # g_variant_iter_init (&iter, parameters); 7437s # n = 1; 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_signal_emitv (paramv, signal_id, 0, NULL); 7437s # for (n = 0; n < num_params + 1; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7437s # GVariant *changed_properties, 7437s # const gchar *const *invalidated_properties) 7437s # { 7437s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7437s # guint n; 7437s # const gchar *key; 7437s # GVariantIter *iter; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # g_variant_get (changed_properties, "a{sv}", &iter); 7437s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7437s # g_datalist_remove_data (&proxy->priv->qdata, key); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # g_variant_iter_free (iter); 7437s # for (n = 0; invalidated_properties[n] != NULL; n++) 7437s # { 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7437s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7437s # if (info != NULL) 7437s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7437s # } 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7437s # #else 7437s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7437s # #endif 7437s # 7437s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusProxyClass *proxy_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7437s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7437s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7437s # 7437s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7437s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7437s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_sync: 7437s # * @connection: A #GDBusConnection. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_sync ( 7437s # GDBusConnection *connection, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7437s # * @user_data: User data to pass to @callback. 7437s # * 7437s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7437s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7437s # */ 7437s # void 7437s # org_project_useful_interface_proxy_new_for_bus ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GAsyncReadyCallback callback, 7437s # gpointer user_data) 7437s # { 7437s # g_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); 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_finish: 7437s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_finish ( 7437s # GAsyncResult *res, 7437s # GError **error) 7437s # { 7437s # GObject *ret; 7437s # GObject *source_object; 7437s # source_object = g_async_result_get_source_object (res); 7437s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7437s # g_object_unref (source_object); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_proxy_new_for_bus_sync: 7437s # * @bus_type: A #GBusType. 7437s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7437s # * @name: A bus name (well-known or unique). 7437s # * @object_path: An object path. 7437s # * @cancellable: (nullable): A #GCancellable or %NULL. 7437s # * @error: Return location for error or %NULL 7437s # * 7437s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7437s # * 7437s # * The calling thread is blocked until a reply is received. 7437s # * 7437s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_proxy_new_for_bus_sync ( 7437s # GBusType bus_type, 7437s # GDBusProxyFlags flags, 7437s # const gchar *name, 7437s # const gchar *object_path, 7437s # GCancellable *cancellable, 7437s # GError **error) 7437s # { 7437s # GInitable *ret; 7437s # 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); 7437s # if (ret != NULL) 7437s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7437s # else 7437s # return NULL; 7437s # } 7437s # 7437s # 7437s # /* ------------------------------------------------------------------------ */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeleton: 7437s # * 7437s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7437s # */ 7437s # 7437s # /** 7437s # * OrgProjectUsefulInterfaceSkeletonClass: 7437s # * @parent_class: The parent class. 7437s # * 7437s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7437s # */ 7437s # 7437s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7437s # { 7437s # GValue *properties; 7437s # GList *changed_properties; 7437s # GSource *changed_properties_idle_source; 7437s # GMainContext *context; 7437s # GMutex lock; 7437s # }; 7437s # 7437s # static void 7437s # _org_project_useful_interface_skeleton_handle_method_call ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name, 7437s # const gchar *method_name, 7437s # GVariant *parameters, 7437s # GDBusMethodInvocation *invocation, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # _ExtendedGDBusMethodInfo *info; 7437s # GVariantIter iter; 7437s # GVariant *child; 7437s # GValue *paramv; 7437s # gsize num_params; 7437s # guint num_extra; 7437s # gsize n; 7437s # guint signal_id; 7437s # GValue return_value = G_VALUE_INIT; 7437s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7437s # g_assert (info != NULL); 7437s # num_params = g_variant_n_children (parameters); 7437s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7437s # n = 0; 7437s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_set_object (¶mv[n++], skeleton); 7437s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7437s # g_value_set_object (¶mv[n++], invocation); 7437s # if (info->pass_fdlist) 7437s # { 7437s # #ifdef G_OS_UNIX 7437s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7437s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7437s # #else 7437s # g_assert_not_reached (); 7437s # #endif 7437s # } 7437s # g_variant_iter_init (&iter, parameters); 7437s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7437s # { 7437s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7437s # if (arg_info->use_gvariant) 7437s # { 7437s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7437s # g_value_set_variant (¶mv[n], child); 7437s # n++; 7437s # } 7437s # else 7437s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7437s # g_variant_unref (child); 7437s # } 7437s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7437s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7437s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7437s # if (!g_value_get_boolean (&return_value)) 7437s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7437s # g_value_unset (&return_value); 7437s # for (n = 0; n < num_params + num_extra; n++) 7437s # g_value_unset (¶mv[n]); 7437s # g_free (paramv); 7437s # } 7437s # 7437s # static GVariant * 7437s # _org_project_useful_interface_skeleton_handle_get_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # GVariant *ret; 7437s # ret = NULL; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # g_value_init (&value, pspec->value_type); 7437s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7437s # g_value_unset (&value); 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static gboolean 7437s # _org_project_useful_interface_skeleton_handle_set_property ( 7437s # GDBusConnection *connection G_GNUC_UNUSED, 7437s # const gchar *sender G_GNUC_UNUSED, 7437s # const gchar *object_path G_GNUC_UNUSED, 7437s # const gchar *interface_name G_GNUC_UNUSED, 7437s # const gchar *property_name, 7437s # GVariant *variant, 7437s # GError **error, 7437s # gpointer user_data) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7437s # GValue value = G_VALUE_INIT; 7437s # GParamSpec *pspec; 7437s # _ExtendedGDBusPropertyInfo *info; 7437s # gboolean ret; 7437s # ret = FALSE; 7437s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7437s # g_assert (info != NULL); 7437s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7437s # if (pspec == NULL) 7437s # { 7437s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7437s # } 7437s # else 7437s # { 7437s # if (info->use_gvariant) 7437s # g_value_set_variant (&value, variant); 7437s # else 7437s # g_dbus_gvariant_to_gvalue (variant, &value); 7437s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7437s # g_value_unset (&value); 7437s # ret = TRUE; 7437s # } 7437s # return ret; 7437s # } 7437s # 7437s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7437s # { 7437s # _org_project_useful_interface_skeleton_handle_method_call, 7437s # _org_project_useful_interface_skeleton_handle_get_property, 7437s # _org_project_useful_interface_skeleton_handle_set_property, 7437s # {NULL} 7437s # }; 7437s # 7437s # static GDBusInterfaceInfo * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return org_project_useful_interface_interface_info (); 7437s # } 7437s # 7437s # static GDBusInterfaceVTable * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7437s # { 7437s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7437s # } 7437s # 7437s # static GVariant * 7437s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7437s # 7437s # GVariantBuilder builder; 7437s # guint n; 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7437s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #else 7437s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7437s # #endif 7437s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7437s # goto out; 7437s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7437s # { 7437s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7437s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7437s # { 7437s # GVariant *value; 7437s # 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); 7437s # if (value != NULL) 7437s # { 7437s # g_variant_take_ref (value); 7437s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7437s # g_variant_unref (value); 7437s # } 7437s # } 7437s # } 7437s # out: 7437s # return g_variant_builder_end (&builder); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #else 7437s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7437s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7437s # 7437s # #endif 7437s # static void 7437s # org_project_useful_interface_skeleton_finalize (GObject *object) 7437s # { 7437s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7437s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7437s # if (skeleton->priv->changed_properties_idle_source != NULL) 7437s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7437s # g_main_context_unref (skeleton->priv->context); 7437s # g_mutex_clear (&skeleton->priv->lock); 7437s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7437s # { 7437s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7437s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7437s # #else 7437s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7437s # #endif 7437s # 7437s # g_mutex_init (&skeleton->priv->lock); 7437s # skeleton->priv->context = g_main_context_ref_thread_default (); 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7437s # { 7437s # GObjectClass *gobject_class; 7437s # GDBusInterfaceSkeletonClass *skeleton_class; 7437s # 7437s # gobject_class = G_OBJECT_CLASS (klass); 7437s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7437s # 7437s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7437s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7437s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7437s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7437s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7437s # 7437s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7437s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7437s # #endif 7437s # } 7437s # 7437s # static void 7437s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7437s # { 7437s # } 7437s # 7437s # /** 7437s # * org_project_useful_interface_skeleton_new: 7437s # * 7437s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7437s # * 7437s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7437s # */ 7437s # OrgProjectUsefulInterface * 7437s # org_project_useful_interface_skeleton_new (void) 7437s # { 7437s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7437s # } 7437s # Error: 7438s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 7438s # gdbus-codegen: /usr/bin/gdbus-codegen 7438s # tmpdir: /tmp/tmp626pvoe4 7438s # /tmp/tmp626pvoe4/tmpp7rzyqjo.xml: 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # 7438s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp626pvoe4/tmpp7rzyqjo.xml', '--output', '-', '--body'] 7438s # Return code: 0 7438s # Output: 7438s # /* 7438s # * This file is generated by gdbus-codegen, do not modify it. 7438s # * 7438s # * The license of this code is the same as for the D-Bus interface description 7438s # * it was derived from. Note that it links to GLib, so must comply with the 7438s # * LGPL linking clauses. 7438s # */ 7438s # 7438s # #ifdef HAVE_CONFIG_H 7438s # # include "config.h" 7438s # #endif 7438s # 7438s # #include 7438s # #ifdef G_OS_UNIX 7438s # # include 7438s # #endif 7438s # 7438s # #ifdef G_ENABLE_DEBUG 7438s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7438s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7438s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7438s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7438s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7438s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7438s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7438s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7438s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7438s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7438s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7438s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7438s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7438s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7438s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7438s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7438s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7438s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7438s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7438s # #else /* !G_ENABLE_DEBUG */ 7438s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7438s # * Do not access GValues directly in your code. Instead, use the 7438s # * g_value_get_*() functions 7438s # */ 7438s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7438s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7438s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7438s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7438s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7438s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7438s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7438s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7438s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7438s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7438s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7438s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7438s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7438s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7438s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7438s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7438s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7438s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7438s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7438s # #endif /* !G_ENABLE_DEBUG */ 7438s # 7438s # typedef struct 7438s # { 7438s # GDBusArgInfo parent_struct; 7438s # gboolean use_gvariant; 7438s # } _ExtendedGDBusArgInfo; 7438s # 7438s # typedef struct 7438s # { 7438s # GDBusMethodInfo parent_struct; 7438s # const gchar *signal_name; 7438s # gboolean pass_fdlist; 7438s # } _ExtendedGDBusMethodInfo; 7438s # 7438s # typedef struct 7438s # { 7438s # GDBusSignalInfo parent_struct; 7438s # const gchar *signal_name; 7438s # } _ExtendedGDBusSignalInfo; 7438s # 7438s # typedef struct 7438s # { 7438s # GDBusPropertyInfo parent_struct; 7438s # const gchar *hyphen_name; 7438s # guint use_gvariant : 1; 7438s # guint emits_changed_signal : 1; 7438s # } _ExtendedGDBusPropertyInfo; 7438s # 7438s # typedef struct 7438s # { 7438s # GDBusInterfaceInfo parent_struct; 7438s # const gchar *hyphen_name; 7438s # } _ExtendedGDBusInterfaceInfo; 7438s # 7438s # typedef struct 7438s # { 7438s # const _ExtendedGDBusPropertyInfo *info; 7438s # guint prop_id; 7438s # GValue orig_value; /* the value before the change */ 7438s # } ChangedProperty; 7438s # 7438s # static void 7438s # _changed_property_free (ChangedProperty *data) 7438s # { 7438s # g_value_unset (&data->orig_value); 7438s # g_free (data); 7438s # } 7438s # 7438s # static gboolean 7438s # _g_strv_equal0 (gchar **a, gchar **b) 7438s # { 7438s # gboolean ret = FALSE; 7438s # guint n; 7438s # if (a == NULL && b == NULL) 7438s # { 7438s # ret = TRUE; 7438s # goto out; 7438s # } 7438s # if (a == NULL || b == NULL) 7438s # goto out; 7438s # if (g_strv_length (a) != g_strv_length (b)) 7438s # goto out; 7438s # for (n = 0; a[n] != NULL; n++) 7438s # if (g_strcmp0 (a[n], b[n]) != 0) 7438s # goto out; 7438s # ret = TRUE; 7438s # out: 7438s # return ret; 7438s # } 7438s # 7438s # static gboolean 7438s # _g_variant_equal0 (GVariant *a, GVariant *b) 7438s # { 7438s # gboolean ret = FALSE; 7438s # if (a == NULL && b == NULL) 7438s # { 7438s # ret = TRUE; 7438s # goto out; 7438s # } 7438s # if (a == NULL || b == NULL) 7438s # goto out; 7438s # ret = g_variant_equal (a, b); 7438s # out: 7438s # return ret; 7438s # } 7438s # 7438s # G_GNUC_UNUSED static gboolean 7438s # _g_value_equal (const GValue *a, const GValue *b) 7438s # { 7438s # gboolean ret = FALSE; 7438s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7438s # switch (G_VALUE_TYPE (a)) 7438s # { 7438s # case G_TYPE_BOOLEAN: 7438s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7438s # break; 7438s # case G_TYPE_UCHAR: 7438s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7438s # break; 7438s # case G_TYPE_INT: 7438s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7438s # break; 7438s # case G_TYPE_UINT: 7438s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7438s # break; 7438s # case G_TYPE_INT64: 7438s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7438s # break; 7438s # case G_TYPE_UINT64: 7438s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7438s # break; 7438s # case G_TYPE_DOUBLE: 7438s # { 7438s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7438s # gdouble da = g_value_get_double (a); 7438s # gdouble db = g_value_get_double (b); 7438s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7438s # } 7438s # break; 7438s # case G_TYPE_STRING: 7438s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7438s # break; 7438s # case G_TYPE_VARIANT: 7438s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7438s # break; 7438s # default: 7438s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7438s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7438s # else 7438s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7438s # break; 7438s # } 7438s # return ret; 7438s # } 7438s # 7438s # static void 7438s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 7438s # GClosure *closure, 7438s # GValue *return_value, 7438s # unsigned int n_param_values, 7438s # const GValue *param_values, 7438s # void *invocation_hint G_GNUC_UNUSED, 7438s # void *marshal_data) 7438s # { 7438s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 7438s # (void *data1, 7438s # GDBusMethodInvocation *arg_method_invocation, 7438s # gboolean arg_an_b, 7438s # guchar arg_an_y, 7438s # gint16 arg_an_n, 7438s # guint16 arg_an_q, 7438s # gint arg_an_i, 7438s # guint arg_an_u, 7438s # gint64 arg_an_x, 7438s # guint64 arg_an_t, 7438s # gdouble arg_an_d, 7438s # const gchar *arg_an_s, 7438s # const gchar *arg_an_o, 7438s # const gchar *arg_an_g, 7438s # GVariant *arg_an_h, 7438s # const gchar *arg_an_ay, 7438s # const gchar *const *arg_an_as, 7438s # const gchar *const *arg_an_ao, 7438s # const gchar *const *arg_an_aay, 7438s # GVariant *arg_an_asv, 7438s # void *data2); 7438s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 7438s # GCClosure *cc = (GCClosure*) closure; 7438s # void *data1, *data2; 7438s # gboolean v_return; 7438s # 7438s # g_return_if_fail (return_value != NULL); 7438s # g_return_if_fail (n_param_values == 20); 7438s # 7438s # if (G_CCLOSURE_SWAP_DATA (closure)) 7438s # { 7438s # data1 = closure->data; 7438s # data2 = g_value_peek_pointer (param_values + 0); 7438s # } 7438s # else 7438s # { 7438s # data1 = g_value_peek_pointer (param_values + 0); 7438s # data2 = closure->data; 7438s # } 7438s # 7438s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 7438s # (marshal_data ? marshal_data : cc->callback); 7438s # 7438s # v_return = 7438s # callback (data1, 7438s # g_marshal_value_peek_object (param_values + 1), 7438s # g_marshal_value_peek_boolean (param_values + 2), 7438s # g_marshal_value_peek_uchar (param_values + 3), 7438s # g_marshal_value_peek_int (param_values + 4), 7438s # g_marshal_value_peek_uint (param_values + 5), 7438s # g_marshal_value_peek_int (param_values + 6), 7438s # g_marshal_value_peek_uint (param_values + 7), 7438s # g_marshal_value_peek_int64 (param_values + 8), 7438s # g_marshal_value_peek_uint64 (param_values + 9), 7438s # g_marshal_value_peek_double (param_values + 10), 7438s # g_marshal_value_peek_string (param_values + 11), 7438s # g_marshal_value_peek_string (param_values + 12), 7438s # g_marshal_value_peek_string (param_values + 13), 7438s # g_marshal_value_peek_variant (param_values + 14), 7438s # g_marshal_value_peek_string (param_values + 15), 7438s # g_marshal_value_peek_boxed (param_values + 16), 7438s # g_marshal_value_peek_boxed (param_values + 17), 7438s # g_marshal_value_peek_boxed (param_values + 18), 7438s # g_marshal_value_peek_variant (param_values + 19), 7438s # data2); 7438s # 7438s # g_value_set_boolean (return_value, v_return); 7438s # } 7438s # 7438s # /* ------------------------------------------------------------------------ 7438s # * Code for interface org.project.CallableIface 7438s # * ------------------------------------------------------------------------ 7438s # */ 7438s # 7438s # /** 7438s # * SECTION:OrgProjectCallableIface 7438s # * @title: OrgProjectCallableIface 7438s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 7438s # * 7438s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 7438s # */ 7438s # 7438s # /* ---- Introspection data for org.project.CallableIface ---- */ 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_b", 7438s # (gchar *) "b", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_y", 7438s # (gchar *) "y", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_n", 7438s # (gchar *) "n", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_q", 7438s # (gchar *) "q", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_i", 7438s # (gchar *) "i", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_u", 7438s # (gchar *) "u", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_x", 7438s # (gchar *) "x", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_t", 7438s # (gchar *) "t", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_d", 7438s # (gchar *) "d", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_s", 7438s # (gchar *) "s", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_o", 7438s # (gchar *) "o", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_g", 7438s # (gchar *) "g", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_h", 7438s # (gchar *) "h", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_ay", 7438s # (gchar *) "ay", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_as", 7438s # (gchar *) "as", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_ao", 7438s # (gchar *) "ao", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_aay", 7438s # (gchar *) "aay", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_asv", 7438s # (gchar *) "a{sv}", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 7438s # { 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 7438s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 7438s # NULL 7438s # }; 7438s # 7438s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "MethodWithManyArgs", 7438s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 7438s # NULL, 7438s # NULL 7438s # }, 7438s # "handle-method-with-many-args", 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_b", 7438s # (gchar *) "b", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_y", 7438s # (gchar *) "y", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_n", 7438s # (gchar *) "n", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_q", 7438s # (gchar *) "q", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_i", 7438s # (gchar *) "i", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_u", 7438s # (gchar *) "u", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_x", 7438s # (gchar *) "x", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_t", 7438s # (gchar *) "t", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_d", 7438s # (gchar *) "d", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_s", 7438s # (gchar *) "s", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_o", 7438s # (gchar *) "o", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_g", 7438s # (gchar *) "g", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_h", 7438s # (gchar *) "h", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_ay", 7438s # (gchar *) "ay", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_as", 7438s # (gchar *) "as", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_ao", 7438s # (gchar *) "ao", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_aay", 7438s # (gchar *) "aay", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_asv", 7438s # (gchar *) "a{sv}", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 7438s # { 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 7438s # NULL 7438s # }; 7438s # 7438s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "SameMethodWithManyArgs", 7438s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 7438s # NULL, 7438s # NULL 7438s # }, 7438s # "handle-same-method-with-many-args", 7438s # FALSE 7438s # }; 7438s # 7438s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 7438s # { 7438s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 7438s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 7438s # NULL 7438s # }; 7438s # 7438s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "org.project.CallableIface", 7438s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 7438s # NULL, 7438s # NULL, 7438s # NULL 7438s # }, 7438s # "org-project-callable-iface", 7438s # }; 7438s # 7438s # 7438s # /** 7438s # * org_project_callable_iface_interface_info: 7438s # * 7438s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 7438s # * 7438s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7438s # */ 7438s # GDBusInterfaceInfo * 7438s # org_project_callable_iface_interface_info (void) 7438s # { 7438s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_override_properties: 7438s # * @klass: The class structure for a #GObject derived class. 7438s # * @property_id_begin: The property id to assign to the first overridden property. 7438s # * 7438s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 7438s # * The properties are overridden in the order they are defined. 7438s # * 7438s # * Returns: The last property id. 7438s # */ 7438s # guint 7438s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7438s # { 7438s # return property_id_begin - 1; 7438s # } 7438s # 7438s # 7438s # inline static void 7438s # org_project_callable_iface_method_marshal_method_with_many_args ( 7438s # GClosure *closure, 7438s # GValue *return_value, 7438s # unsigned int n_param_values, 7438s # const GValue *param_values, 7438s # void *invocation_hint, 7438s # void *marshal_data) 7438s # { 7438s # _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, 7438s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7438s # } 7438s # 7438s # inline static void 7438s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 7438s # GClosure *closure, 7438s # GValue *return_value, 7438s # unsigned int n_param_values, 7438s # const GValue *param_values, 7438s # void *invocation_hint, 7438s # void *marshal_data) 7438s # { 7438s # _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, 7438s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7438s # } 7438s # 7438s # 7438s # /** 7438s # * OrgProjectCallableIface: 7438s # * 7438s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 7438s # */ 7438s # 7438s # /** 7438s # * OrgProjectCallableIfaceIface: 7438s # * @parent_iface: The parent interface. 7438s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 7438s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 7438s # * 7438s # * Virtual table for the D-Bus interface org.project.CallableIface. 7438s # */ 7438s # 7438s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 7438s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 7438s # 7438s # static void 7438s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 7438s # { 7438s # /* GObject signals for incoming D-Bus method calls: */ 7438s # /** 7438s # * OrgProjectCallableIface::handle-method-with-many-args: 7438s # * @object: A #OrgProjectCallableIface. 7438s # * @invocation: A #GDBusMethodInvocation. 7438s # * @arg_an_b: Argument passed by remote caller. 7438s # * @arg_an_y: Argument passed by remote caller. 7438s # * @arg_an_n: Argument passed by remote caller. 7438s # * @arg_an_q: Argument passed by remote caller. 7438s # * @arg_an_i: Argument passed by remote caller. 7438s # * @arg_an_u: Argument passed by remote caller. 7438s # * @arg_an_x: Argument passed by remote caller. 7438s # * @arg_an_t: Argument passed by remote caller. 7438s # * @arg_an_d: Argument passed by remote caller. 7438s # * @arg_an_s: Argument passed by remote caller. 7438s # * @arg_an_o: Argument passed by remote caller. 7438s # * @arg_an_g: Argument passed by remote caller. 7438s # * @arg_an_h: Argument passed by remote caller. 7438s # * @arg_an_ay: Argument passed by remote caller. 7438s # * @arg_an_as: Argument passed by remote caller. 7438s # * @arg_an_ao: Argument passed by remote caller. 7438s # * @arg_an_aay: Argument passed by remote caller. 7438s # * @arg_an_asv: Argument passed by remote caller. 7438s # * 7438s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 7438s # * 7438s # * 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. 7438s # * 7438s # * 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. 7438s # */ 7438s # g_signal_new ("handle-method-with-many-args", 7438s # G_TYPE_FROM_INTERFACE (iface), 7438s # G_SIGNAL_RUN_LAST, 7438s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 7438s # g_signal_accumulator_true_handled, 7438s # NULL, 7438s # org_project_callable_iface_method_marshal_method_with_many_args, 7438s # G_TYPE_BOOLEAN, 7438s # 19, 7438s # 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); 7438s # 7438s # /** 7438s # * OrgProjectCallableIface::handle-same-method-with-many-args: 7438s # * @object: A #OrgProjectCallableIface. 7438s # * @invocation: A #GDBusMethodInvocation. 7438s # * @arg_an_b: Argument passed by remote caller. 7438s # * @arg_an_y: Argument passed by remote caller. 7438s # * @arg_an_n: Argument passed by remote caller. 7438s # * @arg_an_q: Argument passed by remote caller. 7438s # * @arg_an_i: Argument passed by remote caller. 7438s # * @arg_an_u: Argument passed by remote caller. 7438s # * @arg_an_x: Argument passed by remote caller. 7438s # * @arg_an_t: Argument passed by remote caller. 7438s # * @arg_an_d: Argument passed by remote caller. 7438s # * @arg_an_s: Argument passed by remote caller. 7438s # * @arg_an_o: Argument passed by remote caller. 7438s # * @arg_an_g: Argument passed by remote caller. 7438s # * @arg_an_h: Argument passed by remote caller. 7438s # * @arg_an_ay: Argument passed by remote caller. 7438s # * @arg_an_as: Argument passed by remote caller. 7438s # * @arg_an_ao: Argument passed by remote caller. 7438s # * @arg_an_aay: Argument passed by remote caller. 7438s # * @arg_an_asv: Argument passed by remote caller. 7438s # * 7438s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 7438s # * 7438s # * 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. 7438s # * 7438s # * 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. 7438s # */ 7438s # g_signal_new ("handle-same-method-with-many-args", 7438s # G_TYPE_FROM_INTERFACE (iface), 7438s # G_SIGNAL_RUN_LAST, 7438s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 7438s # g_signal_accumulator_true_handled, 7438s # NULL, 7438s # org_project_callable_iface_method_marshal_same_method_with_many_args, 7438s # G_TYPE_BOOLEAN, 7438s # 19, 7438s # 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); 7438s # 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_call_method_with_many_args: 7438s # * @proxy: A #OrgProjectCallableIfaceProxy. 7438s # * @arg_an_b: Argument to pass with the method invocation. 7438s # * @arg_an_y: Argument to pass with the method invocation. 7438s # * @arg_an_n: Argument to pass with the method invocation. 7438s # * @arg_an_q: Argument to pass with the method invocation. 7438s # * @arg_an_i: Argument to pass with the method invocation. 7438s # * @arg_an_u: Argument to pass with the method invocation. 7438s # * @arg_an_x: Argument to pass with the method invocation. 7438s # * @arg_an_t: Argument to pass with the method invocation. 7438s # * @arg_an_d: Argument to pass with the method invocation. 7438s # * @arg_an_s: Argument to pass with the method invocation. 7438s # * @arg_an_o: Argument to pass with the method invocation. 7438s # * @arg_an_g: Argument to pass with the method invocation. 7438s # * @arg_an_h: Argument to pass with the method invocation. 7438s # * @arg_an_ay: Argument to pass with the method invocation. 7438s # * @arg_an_as: Argument to pass with the method invocation. 7438s # * @arg_an_ao: Argument to pass with the method invocation. 7438s # * @arg_an_aay: Argument to pass with the method invocation. 7438s # * @arg_an_asv: Argument to pass with the method invocation. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7438s # * @user_data: User data to pass to @callback. 7438s # * 7438s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 7438s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7438s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 7438s # * 7438s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 7438s # */ 7438s # void 7438s # org_project_callable_iface_call_method_with_many_args ( 7438s # OrgProjectCallableIface *proxy, 7438s # gboolean arg_an_b, 7438s # guchar arg_an_y, 7438s # gint16 arg_an_n, 7438s # guint16 arg_an_q, 7438s # gint arg_an_i, 7438s # guint arg_an_u, 7438s # gint64 arg_an_x, 7438s # guint64 arg_an_t, 7438s # gdouble arg_an_d, 7438s # const gchar *arg_an_s, 7438s # const gchar *arg_an_o, 7438s # const gchar *arg_an_g, 7438s # GVariant *arg_an_h, 7438s # const gchar *arg_an_ay, 7438s # const gchar *const *arg_an_as, 7438s # const gchar *const *arg_an_ao, 7438s # const gchar *const *arg_an_aay, 7438s # GVariant *arg_an_asv, 7438s # GCancellable *cancellable, 7438s # GAsyncReadyCallback callback, 7438s # gpointer user_data) 7438s # { 7438s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7438s # "MethodWithManyArgs", 7438s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7438s # arg_an_b, 7438s # arg_an_y, 7438s # arg_an_n, 7438s # arg_an_q, 7438s # arg_an_i, 7438s # arg_an_u, 7438s # arg_an_x, 7438s # arg_an_t, 7438s # arg_an_d, 7438s # arg_an_s, 7438s # arg_an_o, 7438s # arg_an_g, 7438s # arg_an_h, 7438s # arg_an_ay, 7438s # arg_an_as, 7438s # arg_an_ao, 7438s # arg_an_aay, 7438s # arg_an_asv), 7438s # G_DBUS_CALL_FLAGS_NONE, 7438s # -1, 7438s # cancellable, 7438s # callback, 7438s # user_data); 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_call_method_with_many_args_finish: 7438s # * @proxy: A #OrgProjectCallableIfaceProxy. 7438s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 7438s # * @error: Return location for error or %NULL. 7438s # * 7438s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 7438s # * 7438s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7438s # */ 7438s # gboolean 7438s # org_project_callable_iface_call_method_with_many_args_finish ( 7438s # OrgProjectCallableIface *proxy, 7438s # GAsyncResult *res, 7438s # GError **error) 7438s # { 7438s # GVariant *_ret; 7438s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7438s # if (_ret == NULL) 7438s # goto _out; 7438s # g_variant_get (_ret, 7438s # "()"); 7438s # g_variant_unref (_ret); 7438s # _out: 7438s # return _ret != NULL; 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_call_method_with_many_args_sync: 7438s # * @proxy: A #OrgProjectCallableIfaceProxy. 7438s # * @arg_an_b: Argument to pass with the method invocation. 7438s # * @arg_an_y: Argument to pass with the method invocation. 7438s # * @arg_an_n: Argument to pass with the method invocation. 7438s # * @arg_an_q: Argument to pass with the method invocation. 7438s # * @arg_an_i: Argument to pass with the method invocation. 7438s # * @arg_an_u: Argument to pass with the method invocation. 7438s # * @arg_an_x: Argument to pass with the method invocation. 7438s # * @arg_an_t: Argument to pass with the method invocation. 7438s # * @arg_an_d: Argument to pass with the method invocation. 7438s # * @arg_an_s: Argument to pass with the method invocation. 7438s # * @arg_an_o: Argument to pass with the method invocation. 7438s # * @arg_an_g: Argument to pass with the method invocation. 7438s # * @arg_an_h: Argument to pass with the method invocation. 7438s # * @arg_an_ay: Argument to pass with the method invocation. 7438s # * @arg_an_as: Argument to pass with the method invocation. 7438s # * @arg_an_ao: Argument to pass with the method invocation. 7438s # * @arg_an_aay: Argument to pass with the method invocation. 7438s # * @arg_an_asv: Argument to pass with the method invocation. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @error: Return location for error or %NULL. 7438s # * 7438s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7438s # * 7438s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 7438s # * 7438s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7438s # */ 7438s # gboolean 7438s # org_project_callable_iface_call_method_with_many_args_sync ( 7438s # OrgProjectCallableIface *proxy, 7438s # gboolean arg_an_b, 7438s # guchar arg_an_y, 7438s # gint16 arg_an_n, 7438s # guint16 arg_an_q, 7438s # gint arg_an_i, 7438s # guint arg_an_u, 7438s # gint64 arg_an_x, 7438s # guint64 arg_an_t, 7438s # gdouble arg_an_d, 7438s # const gchar *arg_an_s, 7438s # const gchar *arg_an_o, 7438s # const gchar *arg_an_g, 7438s # GVariant *arg_an_h, 7438s # const gchar *arg_an_ay, 7438s # const gchar *const *arg_an_as, 7438s # const gchar *const *arg_an_ao, 7438s # const gchar *const *arg_an_aay, 7438s # GVariant *arg_an_asv, 7438s # GCancellable *cancellable, 7438s # GError **error) 7438s # { 7438s # GVariant *_ret; 7438s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7438s # "MethodWithManyArgs", 7438s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7438s # arg_an_b, 7438s # arg_an_y, 7438s # arg_an_n, 7438s # arg_an_q, 7438s # arg_an_i, 7438s # arg_an_u, 7438s # arg_an_x, 7438s # arg_an_t, 7438s # arg_an_d, 7438s # arg_an_s, 7438s # arg_an_o, 7438s # arg_an_g, 7438s # arg_an_h, 7438s # arg_an_ay, 7438s # arg_an_as, 7438s # arg_an_ao, 7438s # arg_an_aay, 7438s # arg_an_asv), 7438s # G_DBUS_CALL_FLAGS_NONE, 7438s # -1, 7438s # cancellable, 7438s # error); 7438s # if (_ret == NULL) 7438s # goto _out; 7438s # g_variant_get (_ret, 7438s # "()"); 7438s # g_variant_unref (_ret); 7438s # _out: 7438s # return _ret != NULL; 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_call_same_method_with_many_args: 7438s # * @proxy: A #OrgProjectCallableIfaceProxy. 7438s # * @arg_an_b: Argument to pass with the method invocation. 7438s # * @arg_an_y: Argument to pass with the method invocation. 7438s # * @arg_an_n: Argument to pass with the method invocation. 7438s # * @arg_an_q: Argument to pass with the method invocation. 7438s # * @arg_an_i: Argument to pass with the method invocation. 7438s # * @arg_an_u: Argument to pass with the method invocation. 7438s # * @arg_an_x: Argument to pass with the method invocation. 7438s # * @arg_an_t: Argument to pass with the method invocation. 7438s # * @arg_an_d: Argument to pass with the method invocation. 7438s # * @arg_an_s: Argument to pass with the method invocation. 7438s # * @arg_an_o: Argument to pass with the method invocation. 7438s # * @arg_an_g: Argument to pass with the method invocation. 7438s # * @arg_an_h: Argument to pass with the method invocation. 7438s # * @arg_an_ay: Argument to pass with the method invocation. 7438s # * @arg_an_as: Argument to pass with the method invocation. 7438s # * @arg_an_ao: Argument to pass with the method invocation. 7438s # * @arg_an_aay: Argument to pass with the method invocation. 7438s # * @arg_an_asv: Argument to pass with the method invocation. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7438s # * @user_data: User data to pass to @callback. 7438s # * 7438s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 7438s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7438s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 7438s # * 7438s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 7438s # */ 7438s # void 7438s # org_project_callable_iface_call_same_method_with_many_args ( 7438s # OrgProjectCallableIface *proxy, 7438s # gboolean arg_an_b, 7438s # guchar arg_an_y, 7438s # gint16 arg_an_n, 7438s # guint16 arg_an_q, 7438s # gint arg_an_i, 7438s # guint arg_an_u, 7438s # gint64 arg_an_x, 7438s # guint64 arg_an_t, 7438s # gdouble arg_an_d, 7438s # const gchar *arg_an_s, 7438s # const gchar *arg_an_o, 7438s # const gchar *arg_an_g, 7438s # GVariant *arg_an_h, 7438s # const gchar *arg_an_ay, 7438s # const gchar *const *arg_an_as, 7438s # const gchar *const *arg_an_ao, 7438s # const gchar *const *arg_an_aay, 7438s # GVariant *arg_an_asv, 7438s # GCancellable *cancellable, 7438s # GAsyncReadyCallback callback, 7438s # gpointer user_data) 7438s # { 7438s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7438s # "SameMethodWithManyArgs", 7438s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7438s # arg_an_b, 7438s # arg_an_y, 7438s # arg_an_n, 7438s # arg_an_q, 7438s # arg_an_i, 7438s # arg_an_u, 7438s # arg_an_x, 7438s # arg_an_t, 7438s # arg_an_d, 7438s # arg_an_s, 7438s # arg_an_o, 7438s # arg_an_g, 7438s # arg_an_h, 7438s # arg_an_ay, 7438s # arg_an_as, 7438s # arg_an_ao, 7438s # arg_an_aay, 7438s # arg_an_asv), 7438s # G_DBUS_CALL_FLAGS_NONE, 7438s # -1, 7438s # cancellable, 7438s # callback, 7438s # user_data); 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_call_same_method_with_many_args_finish: 7438s # * @proxy: A #OrgProjectCallableIfaceProxy. 7438s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 7438s # * @error: Return location for error or %NULL. 7438s # * 7438s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 7438s # * 7438s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7438s # */ 7438s # gboolean 7438s # org_project_callable_iface_call_same_method_with_many_args_finish ( 7438s # OrgProjectCallableIface *proxy, 7438s # GAsyncResult *res, 7438s # GError **error) 7438s # { 7438s # GVariant *_ret; 7438s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7438s # if (_ret == NULL) 7438s # goto _out; 7438s # g_variant_get (_ret, 7438s # "()"); 7438s # g_variant_unref (_ret); 7438s # _out: 7438s # return _ret != NULL; 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_call_same_method_with_many_args_sync: 7438s # * @proxy: A #OrgProjectCallableIfaceProxy. 7438s # * @arg_an_b: Argument to pass with the method invocation. 7438s # * @arg_an_y: Argument to pass with the method invocation. 7438s # * @arg_an_n: Argument to pass with the method invocation. 7438s # * @arg_an_q: Argument to pass with the method invocation. 7438s # * @arg_an_i: Argument to pass with the method invocation. 7438s # * @arg_an_u: Argument to pass with the method invocation. 7438s # * @arg_an_x: Argument to pass with the method invocation. 7438s # * @arg_an_t: Argument to pass with the method invocation. 7438s # * @arg_an_d: Argument to pass with the method invocation. 7438s # * @arg_an_s: Argument to pass with the method invocation. 7438s # * @arg_an_o: Argument to pass with the method invocation. 7438s # * @arg_an_g: Argument to pass with the method invocation. 7438s # * @arg_an_h: Argument to pass with the method invocation. 7438s # * @arg_an_ay: Argument to pass with the method invocation. 7438s # * @arg_an_as: Argument to pass with the method invocation. 7438s # * @arg_an_ao: Argument to pass with the method invocation. 7438s # * @arg_an_aay: Argument to pass with the method invocation. 7438s # * @arg_an_asv: Argument to pass with the method invocation. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @error: Return location for error or %NULL. 7438s # * 7438s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7438s # * 7438s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 7438s # * 7438s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7438s # */ 7438s # gboolean 7438s # org_project_callable_iface_call_same_method_with_many_args_sync ( 7438s # OrgProjectCallableIface *proxy, 7438s # gboolean arg_an_b, 7438s # guchar arg_an_y, 7438s # gint16 arg_an_n, 7438s # guint16 arg_an_q, 7438s # gint arg_an_i, 7438s # guint arg_an_u, 7438s # gint64 arg_an_x, 7438s # guint64 arg_an_t, 7438s # gdouble arg_an_d, 7438s # const gchar *arg_an_s, 7438s # const gchar *arg_an_o, 7438s # const gchar *arg_an_g, 7438s # GVariant *arg_an_h, 7438s # const gchar *arg_an_ay, 7438s # const gchar *const *arg_an_as, 7438s # const gchar *const *arg_an_ao, 7438s # const gchar *const *arg_an_aay, 7438s # GVariant *arg_an_asv, 7438s # GCancellable *cancellable, 7438s # GError **error) 7438s # { 7438s # GVariant *_ret; 7438s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7438s # "SameMethodWithManyArgs", 7438s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7438s # arg_an_b, 7438s # arg_an_y, 7438s # arg_an_n, 7438s # arg_an_q, 7438s # arg_an_i, 7438s # arg_an_u, 7438s # arg_an_x, 7438s # arg_an_t, 7438s # arg_an_d, 7438s # arg_an_s, 7438s # arg_an_o, 7438s # arg_an_g, 7438s # arg_an_h, 7438s # arg_an_ay, 7438s # arg_an_as, 7438s # arg_an_ao, 7438s # arg_an_aay, 7438s # arg_an_asv), 7438s # G_DBUS_CALL_FLAGS_NONE, 7438s # -1, 7438s # cancellable, 7438s # error); 7438s # if (_ret == NULL) 7438s # goto _out; 7438s # g_variant_get (_ret, 7438s # "()"); 7438s # g_variant_unref (_ret); 7438s # _out: 7438s # return _ret != NULL; 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_complete_method_with_many_args: 7438s # * @object: A #OrgProjectCallableIface. 7438s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7438s # * 7438s # * 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. 7438s # * 7438s # * This method will free @invocation, you cannot use it afterwards. 7438s # */ 7438s # void 7438s # org_project_callable_iface_complete_method_with_many_args ( 7438s # OrgProjectCallableIface *object G_GNUC_UNUSED, 7438s # GDBusMethodInvocation *invocation) 7438s # { 7438s # g_dbus_method_invocation_return_value (invocation, 7438s # g_variant_new ("()")); 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_complete_same_method_with_many_args: 7438s # * @object: A #OrgProjectCallableIface. 7438s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7438s # * 7438s # * 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. 7438s # * 7438s # * This method will free @invocation, you cannot use it afterwards. 7438s # */ 7438s # void 7438s # org_project_callable_iface_complete_same_method_with_many_args ( 7438s # OrgProjectCallableIface *object G_GNUC_UNUSED, 7438s # GDBusMethodInvocation *invocation) 7438s # { 7438s # g_dbus_method_invocation_return_value (invocation, 7438s # g_variant_new ("()")); 7438s # } 7438s # 7438s # /* ------------------------------------------------------------------------ */ 7438s # 7438s # /** 7438s # * OrgProjectCallableIfaceProxy: 7438s # * 7438s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 7438s # */ 7438s # 7438s # /** 7438s # * OrgProjectCallableIfaceProxyClass: 7438s # * @parent_class: The parent class. 7438s # * 7438s # * Class structure for #OrgProjectCallableIfaceProxy. 7438s # */ 7438s # 7438s # struct _OrgProjectCallableIfaceProxyPrivate 7438s # { 7438s # GData *qdata; 7438s # }; 7438s # 7438s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 7438s # 7438s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7438s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7438s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 7438s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 7438s # 7438s # #else 7438s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7438s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 7438s # 7438s # #endif 7438s # static void 7438s # org_project_callable_iface_proxy_finalize (GObject *object) 7438s # { 7438s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 7438s # g_datalist_clear (&proxy->priv->qdata); 7438s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7438s # guint prop_id G_GNUC_UNUSED, 7438s # GValue *value G_GNUC_UNUSED, 7438s # GParamSpec *pspec G_GNUC_UNUSED) 7438s # { 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7438s # guint prop_id G_GNUC_UNUSED, 7438s # const GValue *value G_GNUC_UNUSED, 7438s # GParamSpec *pspec G_GNUC_UNUSED) 7438s # { 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 7438s # const gchar *sender_name G_GNUC_UNUSED, 7438s # const gchar *signal_name, 7438s # GVariant *parameters) 7438s # { 7438s # _ExtendedGDBusSignalInfo *info; 7438s # GVariantIter iter; 7438s # GVariant *child; 7438s # GValue *paramv; 7438s # gsize num_params; 7438s # gsize n; 7438s # guint signal_id; 7438s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 7438s # if (info == NULL) 7438s # return; 7438s # num_params = g_variant_n_children (parameters); 7438s # paramv = g_new0 (GValue, num_params + 1); 7438s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 7438s # g_value_set_object (¶mv[0], proxy); 7438s # g_variant_iter_init (&iter, parameters); 7438s # n = 1; 7438s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7438s # { 7438s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7438s # if (arg_info->use_gvariant) 7438s # { 7438s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7438s # g_value_set_variant (¶mv[n], child); 7438s # n++; 7438s # } 7438s # else 7438s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7438s # g_variant_unref (child); 7438s # } 7438s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 7438s # g_signal_emitv (paramv, signal_id, 0, NULL); 7438s # for (n = 0; n < num_params + 1; n++) 7438s # g_value_unset (¶mv[n]); 7438s # g_free (paramv); 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7438s # GVariant *changed_properties, 7438s # const gchar *const *invalidated_properties) 7438s # { 7438s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 7438s # guint n; 7438s # const gchar *key; 7438s # GVariantIter *iter; 7438s # _ExtendedGDBusPropertyInfo *info; 7438s # g_variant_get (changed_properties, "a{sv}", &iter); 7438s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7438s # { 7438s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 7438s # g_datalist_remove_data (&proxy->priv->qdata, key); 7438s # if (info != NULL) 7438s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7438s # } 7438s # g_variant_iter_free (iter); 7438s # for (n = 0; invalidated_properties[n] != NULL; n++) 7438s # { 7438s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 7438s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7438s # if (info != NULL) 7438s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7438s # } 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 7438s # { 7438s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7438s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 7438s # #else 7438s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 7438s # #endif 7438s # 7438s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 7438s # { 7438s # GObjectClass *gobject_class; 7438s # GDBusProxyClass *proxy_class; 7438s # 7438s # gobject_class = G_OBJECT_CLASS (klass); 7438s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 7438s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 7438s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 7438s # 7438s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7438s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 7438s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 7438s # 7438s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7438s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 7438s # #endif 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 7438s # { 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_proxy_new: 7438s # * @connection: A #GDBusConnection. 7438s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7438s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7438s # * @object_path: An object path. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7438s # * @user_data: User data to pass to @callback. 7438s # * 7438s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 7438s # * 7438s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7438s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 7438s # * 7438s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7438s # */ 7438s # void 7438s # org_project_callable_iface_proxy_new ( 7438s # GDBusConnection *connection, 7438s # GDBusProxyFlags flags, 7438s # const gchar *name, 7438s # const gchar *object_path, 7438s # GCancellable *cancellable, 7438s # GAsyncReadyCallback callback, 7438s # gpointer user_data) 7438s # { 7438s # 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); 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_proxy_new_finish: 7438s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 7438s # * @error: Return location for error or %NULL 7438s # * 7438s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 7438s # * 7438s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7438s # */ 7438s # OrgProjectCallableIface * 7438s # org_project_callable_iface_proxy_new_finish ( 7438s # GAsyncResult *res, 7438s # GError **error) 7438s # { 7438s # GObject *ret; 7438s # GObject *source_object; 7438s # source_object = g_async_result_get_source_object (res); 7438s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7438s # g_object_unref (source_object); 7438s # if (ret != NULL) 7438s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7438s # else 7438s # return NULL; 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_proxy_new_sync: 7438s # * @connection: A #GDBusConnection. 7438s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7438s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7438s # * @object_path: An object path. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @error: Return location for error or %NULL 7438s # * 7438s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 7438s # * 7438s # * The calling thread is blocked until a reply is received. 7438s # * 7438s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 7438s # * 7438s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7438s # */ 7438s # OrgProjectCallableIface * 7438s # org_project_callable_iface_proxy_new_sync ( 7438s # GDBusConnection *connection, 7438s # GDBusProxyFlags flags, 7438s # const gchar *name, 7438s # const gchar *object_path, 7438s # GCancellable *cancellable, 7438s # GError **error) 7438s # { 7438s # GInitable *ret; 7438s # 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); 7438s # if (ret != NULL) 7438s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7438s # else 7438s # return NULL; 7438s # } 7438s # 7438s # 7438s # /** 7438s # * org_project_callable_iface_proxy_new_for_bus: 7438s # * @bus_type: A #GBusType. 7438s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7438s # * @name: A bus name (well-known or unique). 7438s # * @object_path: An object path. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7438s # * @user_data: User data to pass to @callback. 7438s # * 7438s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7438s # * 7438s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7438s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 7438s # * 7438s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7438s # */ 7438s # void 7438s # org_project_callable_iface_proxy_new_for_bus ( 7438s # GBusType bus_type, 7438s # GDBusProxyFlags flags, 7438s # const gchar *name, 7438s # const gchar *object_path, 7438s # GCancellable *cancellable, 7438s # GAsyncReadyCallback callback, 7438s # gpointer user_data) 7438s # { 7438s # 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); 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_proxy_new_for_bus_finish: 7438s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 7438s # * @error: Return location for error or %NULL 7438s # * 7438s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 7438s # * 7438s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7438s # */ 7438s # OrgProjectCallableIface * 7438s # org_project_callable_iface_proxy_new_for_bus_finish ( 7438s # GAsyncResult *res, 7438s # GError **error) 7438s # { 7438s # GObject *ret; 7438s # GObject *source_object; 7438s # source_object = g_async_result_get_source_object (res); 7438s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7438s # g_object_unref (source_object); 7438s # if (ret != NULL) 7438s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7438s # else 7438s # return NULL; 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_proxy_new_for_bus_sync: 7438s # * @bus_type: A #GBusType. 7438s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7438s # * @name: A bus name (well-known or unique). 7438s # * @object_path: An object path. 7438s # * @cancellable: (nullable): A #GCancellable or %NULL. 7438s # * @error: Return location for error or %NULL 7438s # * 7438s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7438s # * 7438s # * The calling thread is blocked until a reply is received. 7438s # * 7438s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7438s # * 7438s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7438s # */ 7438s # OrgProjectCallableIface * 7438s # org_project_callable_iface_proxy_new_for_bus_sync ( 7438s # GBusType bus_type, 7438s # GDBusProxyFlags flags, 7438s # const gchar *name, 7438s # const gchar *object_path, 7438s # GCancellable *cancellable, 7438s # GError **error) 7438s # { 7438s # GInitable *ret; 7438s # 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); 7438s # if (ret != NULL) 7438s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7438s # else 7438s # return NULL; 7438s # } 7438s # 7438s # 7438s # /* ------------------------------------------------------------------------ */ 7438s # 7438s # /** 7438s # * OrgProjectCallableIfaceSkeleton: 7438s # * 7438s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7438s # */ 7438s # 7438s # /** 7438s # * OrgProjectCallableIfaceSkeletonClass: 7438s # * @parent_class: The parent class. 7438s # * 7438s # * Class structure for #OrgProjectCallableIfaceSkeleton. 7438s # */ 7438s # 7438s # struct _OrgProjectCallableIfaceSkeletonPrivate 7438s # { 7438s # GValue *properties; 7438s # GList *changed_properties; 7438s # GSource *changed_properties_idle_source; 7438s # GMainContext *context; 7438s # GMutex lock; 7438s # }; 7438s # 7438s # static void 7438s # _org_project_callable_iface_skeleton_handle_method_call ( 7438s # GDBusConnection *connection G_GNUC_UNUSED, 7438s # const gchar *sender G_GNUC_UNUSED, 7438s # const gchar *object_path G_GNUC_UNUSED, 7438s # const gchar *interface_name, 7438s # const gchar *method_name, 7438s # GVariant *parameters, 7438s # GDBusMethodInvocation *invocation, 7438s # gpointer user_data) 7438s # { 7438s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7438s # _ExtendedGDBusMethodInfo *info; 7438s # GVariantIter iter; 7438s # GVariant *child; 7438s # GValue *paramv; 7438s # gsize num_params; 7438s # guint num_extra; 7438s # gsize n; 7438s # guint signal_id; 7438s # GValue return_value = G_VALUE_INIT; 7438s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7438s # g_assert (info != NULL); 7438s # num_params = g_variant_n_children (parameters); 7438s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7438s # n = 0; 7438s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 7438s # g_value_set_object (¶mv[n++], skeleton); 7438s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7438s # g_value_set_object (¶mv[n++], invocation); 7438s # if (info->pass_fdlist) 7438s # { 7438s # #ifdef G_OS_UNIX 7438s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7438s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7438s # #else 7438s # g_assert_not_reached (); 7438s # #endif 7438s # } 7438s # g_variant_iter_init (&iter, parameters); 7438s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7438s # { 7438s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7438s # if (arg_info->use_gvariant) 7438s # { 7438s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7438s # g_value_set_variant (¶mv[n], child); 7438s # n++; 7438s # } 7438s # else 7438s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7438s # g_variant_unref (child); 7438s # } 7438s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 7438s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7438s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7438s # if (!g_value_get_boolean (&return_value)) 7438s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7438s # g_value_unset (&return_value); 7438s # for (n = 0; n < num_params + num_extra; n++) 7438s # g_value_unset (¶mv[n]); 7438s # g_free (paramv); 7438s # } 7438s # 7438s # static GVariant * 7438s # _org_project_callable_iface_skeleton_handle_get_property ( 7438s # GDBusConnection *connection G_GNUC_UNUSED, 7438s # const gchar *sender G_GNUC_UNUSED, 7438s # const gchar *object_path G_GNUC_UNUSED, 7438s # const gchar *interface_name G_GNUC_UNUSED, 7438s # const gchar *property_name, 7438s # GError **error, 7438s # gpointer user_data) 7438s # { 7438s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7438s # GValue value = G_VALUE_INIT; 7438s # GParamSpec *pspec; 7438s # _ExtendedGDBusPropertyInfo *info; 7438s # GVariant *ret; 7438s # ret = NULL; 7438s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 7438s # g_assert (info != NULL); 7438s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7438s # if (pspec == NULL) 7438s # { 7438s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7438s # } 7438s # else 7438s # { 7438s # g_value_init (&value, pspec->value_type); 7438s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7438s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7438s # g_value_unset (&value); 7438s # } 7438s # return ret; 7438s # } 7438s # 7438s # static gboolean 7438s # _org_project_callable_iface_skeleton_handle_set_property ( 7438s # GDBusConnection *connection G_GNUC_UNUSED, 7438s # const gchar *sender G_GNUC_UNUSED, 7438s # const gchar *object_path G_GNUC_UNUSED, 7438s # const gchar *interface_name G_GNUC_UNUSED, 7438s # const gchar *property_name, 7438s # GVariant *variant, 7438s # GError **error, 7438s # gpointer user_data) 7438s # { 7438s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7438s # GValue value = G_VALUE_INIT; 7438s # GParamSpec *pspec; 7438s # _ExtendedGDBusPropertyInfo *info; 7438s # gboolean ret; 7438s # ret = FALSE; 7438s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 7438s # g_assert (info != NULL); 7438s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7438s # if (pspec == NULL) 7438s # { 7438s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7438s # } 7438s # else 7438s # { 7438s # if (info->use_gvariant) 7438s # g_value_set_variant (&value, variant); 7438s # else 7438s # g_dbus_gvariant_to_gvalue (variant, &value); 7438s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7438s # g_value_unset (&value); 7438s # ret = TRUE; 7438s # } 7438s # return ret; 7438s # } 7438s # 7438s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 7438s # { 7438s # _org_project_callable_iface_skeleton_handle_method_call, 7438s # _org_project_callable_iface_skeleton_handle_get_property, 7438s # _org_project_callable_iface_skeleton_handle_set_property, 7438s # {NULL} 7438s # }; 7438s # 7438s # static GDBusInterfaceInfo * 7438s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7438s # { 7438s # return org_project_callable_iface_interface_info (); 7438s # } 7438s # 7438s # static GDBusInterfaceVTable * 7438s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7438s # { 7438s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 7438s # } 7438s # 7438s # static GVariant * 7438s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7438s # { 7438s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 7438s # 7438s # GVariantBuilder builder; 7438s # guint n; 7438s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7438s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7438s # #else 7438s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7438s # #endif 7438s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 7438s # goto out; 7438s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7438s # { 7438s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 7438s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7438s # { 7438s # GVariant *value; 7438s # 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); 7438s # if (value != NULL) 7438s # { 7438s # g_variant_take_ref (value); 7438s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7438s # g_variant_unref (value); 7438s # } 7438s # } 7438s # } 7438s # out: 7438s # return g_variant_builder_end (&builder); 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7438s # { 7438s # } 7438s # 7438s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 7438s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7438s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7438s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 7438s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 7438s # 7438s # #else 7438s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7438s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 7438s # 7438s # #endif 7438s # static void 7438s # org_project_callable_iface_skeleton_finalize (GObject *object) 7438s # { 7438s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 7438s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7438s # if (skeleton->priv->changed_properties_idle_source != NULL) 7438s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7438s # g_main_context_unref (skeleton->priv->context); 7438s # g_mutex_clear (&skeleton->priv->lock); 7438s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 7438s # { 7438s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7438s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 7438s # #else 7438s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 7438s # #endif 7438s # 7438s # g_mutex_init (&skeleton->priv->lock); 7438s # skeleton->priv->context = g_main_context_ref_thread_default (); 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 7438s # { 7438s # GObjectClass *gobject_class; 7438s # GDBusInterfaceSkeletonClass *skeleton_class; 7438s # 7438s # gobject_class = G_OBJECT_CLASS (klass); 7438s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 7438s # 7438s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7438s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 7438s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 7438s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 7438s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 7438s # 7438s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7438s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 7438s # #endif 7438s # } 7438s # 7438s # static void 7438s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 7438s # { 7438s # } 7438s # 7438s # /** 7438s # * org_project_callable_iface_skeleton_new: 7438s # * 7438s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 7438s # * 7438s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 7438s # */ 7438s # OrgProjectCallableIface * 7438s # org_project_callable_iface_skeleton_new (void) 7438s # { 7438s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 7438s # } 7438s # 7438s # /* ------------------------------------------------------------------------ 7438s # * Code for interface org.project.OtherCallableIface 7438s # * ------------------------------------------------------------------------ 7438s # */ 7438s # 7438s # /** 7438s # * SECTION:OrgProjectOtherCallableIface 7438s # * @title: OrgProjectOtherCallableIface 7438s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 7438s # * 7438s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 7438s # */ 7438s # 7438s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_b", 7438s # (gchar *) "b", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_y", 7438s # (gchar *) "y", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_n", 7438s # (gchar *) "n", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_q", 7438s # (gchar *) "q", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_i", 7438s # (gchar *) "i", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_u", 7438s # (gchar *) "u", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_x", 7438s # (gchar *) "x", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_t", 7438s # (gchar *) "t", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_d", 7438s # (gchar *) "d", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_s", 7438s # (gchar *) "s", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_o", 7438s # (gchar *) "o", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_g", 7438s # (gchar *) "g", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_h", 7438s # (gchar *) "h", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_ay", 7438s # (gchar *) "ay", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_as", 7438s # (gchar *) "as", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_ao", 7438s # (gchar *) "ao", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_aay", 7438s # (gchar *) "aay", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "an_asv", 7438s # (gchar *) "a{sv}", 7438s # NULL 7438s # }, 7438s # FALSE 7438s # }; 7438s # 7438s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 7438s # { 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 7438s # NULL 7438s # }; 7438s # 7438s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "MethodWithManyArgs", 7438s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 7438s # NULL, 7438s # NULL 7438s # }, 7438s # "handle-method-with-many-args", 7438s # FALSE 7438s # }; 7438s # 7438s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 7438s # { 7438s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 7438s # NULL 7438s # }; 7438s # 7438s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 7438s # { 7438s # { 7438s # -1, 7438s # (gchar *) "org.project.OtherCallableIface", 7438s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 7438s # NULL, 7438s # NULL, 7438s # NULL 7438s # }, 7438s # "org-project-other-callable-iface", 7438s # }; 7438s # 7438s # 7438s # /** 7438s # * org_project_other_callable_iface_interface_info: 7438s # * 7438s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 7438s # * 7438s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7438s # */ 7438s # GDBusInterfaceInfo * 7438s # org_project_other_callable_iface_interface_info (void) 7438s # { 7438s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 7438s # } 7438s # 7438s # /** 7438s # * org_project_other_callable_iface_override_properties: 7438s # * @klass: The class structure for a #GObject derived class. 7438s # * @property_id_begin: The property id to assign to the first overridden property. 7438s # * 7438s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 7438s # * The properties are overridden in the order they are defined. 7438s # * 7438s # * Returns: The last property id. 7438s # */ 7438s # guint 7438s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7438s # { 7438s # return property_id_begin - 1; 7438s # } 7438s # 7438s # 7438s # inline static void 7438s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 7438s # GClosure *closure, 7438s # GValue *return_value, 7438s # unsigned int n_param_values, 7438s # const GValue *param_values, 7438s # void *invocation_hint, 7438s # void *marshal_data) 7438s # { 7438s # _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, 7438s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7438s # } 7438s # 7438s # 7438s # /** 7438s # * OrgProjectOtherCallableIface: 7438s # * 7438s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 7438s # */ 7438s # 7438s # /** 7438s # * OrgProjectOtherCallableIfaceIface: 7438s # * @parent_iface: The parent interface. 7438s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 7438s # * 7438s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 7438s # */ 7438s # 7438s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 7438s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 7438s # 7438s # static void 7438s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 7438s # { 7438s # /* GObject signals for incoming D-Bus method calls: */ 7438s # /** 7438s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 7438s # * @object: A #OrgProjectOtherCallableIface. 7438s # * @invocation: A #GDBusMethodInvocation. 7438s # * @arg_an_b: Argument passed by remote caller. 7438s # * @arg_an_y: Argument passed by remote caller. 7438s # * @arg_an_n: Argument passed by remote caller. 7438s # * @arg_an_q: Argument passed by remote caller. 7438s # * @arg_an_i: Argument passed by remote caller. 7438s # * @arg_an_u: Argument passed by remote caller. 7438s # * @arg_an_x: Argument passed by remote caller. 7438s # * @arg_an_t: Argument passed by remote caller. 7438s # * @arg_an_d: Argument passed by remote caller. 7438s # * @arg_an_s: Argument passed by remote caller. 7438s # * @arg_an_o: Argument passed by remote caller. 7438s # * @arg_an_g: Argument passed by remote caller. 7438s # * @arg_an_h: Argument passed by remote caller. 7438s # * @arg_an_ay: Argument passed by remote caller. 7438s # * @arg_an_as: Argument passed by remote caller. 7438s # * @arg_an_ao: Argument passed by remote caller. 7438s # * @arg_an_aay: Argument passed by remote caller. 7438s # * @arg_an_asv: Argument passed by remote caller. 7438s # * 7438s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 7438s # * 7438s # * 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. 7438s # * 7438s # * 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. 7438s # */ 7438s # g_signal_new ("handle-method-with-many-args", 7438s # G_TYPE_FROM_INTERFACE (iface), 7438s # G_SIGNAL_RUN_LAST, 7438s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 7438s # g_signal_accumulator_true_handled, 7439s # NULL, 7439s # org_project_other_callable_iface_method_marshal_method_with_many_args, 7439s # G_TYPE_BOOLEAN, 7439s # 19, 7439s # 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); 7439s # 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_call_method_with_many_args: 7439s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 7439s # * @arg_an_b: Argument to pass with the method invocation. 7439s # * @arg_an_y: Argument to pass with the method invocation. 7439s # * @arg_an_n: Argument to pass with the method invocation. 7439s # * @arg_an_q: Argument to pass with the method invocation. 7439s # * @arg_an_i: Argument to pass with the method invocation. 7439s # * @arg_an_u: Argument to pass with the method invocation. 7439s # * @arg_an_x: Argument to pass with the method invocation. 7439s # * @arg_an_t: Argument to pass with the method invocation. 7439s # * @arg_an_d: Argument to pass with the method invocation. 7439s # * @arg_an_s: Argument to pass with the method invocation. 7439s # * @arg_an_o: Argument to pass with the method invocation. 7439s # * @arg_an_g: Argument to pass with the method invocation. 7439s # * @arg_an_h: Argument to pass with the method invocation. 7439s # * @arg_an_ay: Argument to pass with the method invocation. 7439s # * @arg_an_as: Argument to pass with the method invocation. 7439s # * @arg_an_ao: Argument to pass with the method invocation. 7439s # * @arg_an_aay: Argument to pass with the method invocation. 7439s # * @arg_an_asv: Argument to pass with the method invocation. 7439s # * @cancellable: (nullable): A #GCancellable or %NULL. 7439s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7439s # * @user_data: User data to pass to @callback. 7439s # * 7439s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 7439s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7439s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 7439s # * 7439s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 7439s # */ 7439s # void 7439s # org_project_other_callable_iface_call_method_with_many_args ( 7439s # OrgProjectOtherCallableIface *proxy, 7439s # gboolean arg_an_b, 7439s # guchar arg_an_y, 7439s # gint16 arg_an_n, 7439s # guint16 arg_an_q, 7439s # gint arg_an_i, 7439s # guint arg_an_u, 7439s # gint64 arg_an_x, 7439s # guint64 arg_an_t, 7439s # gdouble arg_an_d, 7439s # const gchar *arg_an_s, 7439s # const gchar *arg_an_o, 7439s # const gchar *arg_an_g, 7439s # GVariant *arg_an_h, 7439s # const gchar *arg_an_ay, 7439s # const gchar *const *arg_an_as, 7439s # const gchar *const *arg_an_ao, 7439s # const gchar *const *arg_an_aay, 7439s # GVariant *arg_an_asv, 7439s # GCancellable *cancellable, 7439s # GAsyncReadyCallback callback, 7439s # gpointer user_data) 7439s # { 7439s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7439s # "MethodWithManyArgs", 7439s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7439s # arg_an_b, 7439s # arg_an_y, 7439s # arg_an_n, 7439s # arg_an_q, 7439s # arg_an_i, 7439s # arg_an_u, 7439s # arg_an_x, 7439s # arg_an_t, 7439s # arg_an_d, 7439s # arg_an_s, 7439s # arg_an_o, 7439s # arg_an_g, 7439s # arg_an_h, 7439s # arg_an_ay, 7439s # arg_an_as, 7439s # arg_an_ao, 7439s # arg_an_aay, 7439s # arg_an_asv), 7439s # G_DBUS_CALL_FLAGS_NONE, 7439s # -1, 7439s # cancellable, 7439s # callback, 7439s # user_data); 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_call_method_with_many_args_finish: 7439s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 7439s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 7439s # * @error: Return location for error or %NULL. 7439s # * 7439s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 7439s # * 7439s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7439s # */ 7439s # gboolean 7439s # org_project_other_callable_iface_call_method_with_many_args_finish ( 7439s # OrgProjectOtherCallableIface *proxy, 7439s # GAsyncResult *res, 7439s # GError **error) 7439s # { 7439s # GVariant *_ret; 7439s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7439s # if (_ret == NULL) 7439s # goto _out; 7439s # g_variant_get (_ret, 7439s # "()"); 7439s # g_variant_unref (_ret); 7439s # _out: 7439s # return _ret != NULL; 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_call_method_with_many_args_sync: 7439s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 7439s # * @arg_an_b: Argument to pass with the method invocation. 7439s # * @arg_an_y: Argument to pass with the method invocation. 7439s # * @arg_an_n: Argument to pass with the method invocation. 7439s # * @arg_an_q: Argument to pass with the method invocation. 7439s # * @arg_an_i: Argument to pass with the method invocation. 7439s # * @arg_an_u: Argument to pass with the method invocation. 7439s # * @arg_an_x: Argument to pass with the method invocation. 7439s # * @arg_an_t: Argument to pass with the method invocation. 7439s # * @arg_an_d: Argument to pass with the method invocation. 7439s # * @arg_an_s: Argument to pass with the method invocation. 7439s # * @arg_an_o: Argument to pass with the method invocation. 7439s # * @arg_an_g: Argument to pass with the method invocation. 7439s # * @arg_an_h: Argument to pass with the method invocation. 7439s # * @arg_an_ay: Argument to pass with the method invocation. 7439s # * @arg_an_as: Argument to pass with the method invocation. 7439s # * @arg_an_ao: Argument to pass with the method invocation. 7439s # * @arg_an_aay: Argument to pass with the method invocation. 7439s # * @arg_an_asv: Argument to pass with the method invocation. 7439s # * @cancellable: (nullable): A #GCancellable or %NULL. 7439s # * @error: Return location for error or %NULL. 7439s # * 7439s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7439s # * 7439s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 7439s # * 7439s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7439s # */ 7439s # gboolean 7439s # org_project_other_callable_iface_call_method_with_many_args_sync ( 7439s # OrgProjectOtherCallableIface *proxy, 7439s # gboolean arg_an_b, 7439s # guchar arg_an_y, 7439s # gint16 arg_an_n, 7439s # guint16 arg_an_q, 7439s # gint arg_an_i, 7439s # guint arg_an_u, 7439s # gint64 arg_an_x, 7439s # guint64 arg_an_t, 7439s # gdouble arg_an_d, 7439s # const gchar *arg_an_s, 7439s # const gchar *arg_an_o, 7439s # const gchar *arg_an_g, 7439s # GVariant *arg_an_h, 7439s # const gchar *arg_an_ay, 7439s # const gchar *const *arg_an_as, 7439s # const gchar *const *arg_an_ao, 7439s # const gchar *const *arg_an_aay, 7439s # GVariant *arg_an_asv, 7439s # GCancellable *cancellable, 7439s # GError **error) 7439s # { 7439s # GVariant *_ret; 7439s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7439s # "MethodWithManyArgs", 7439s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7439s # arg_an_b, 7439s # arg_an_y, 7439s # arg_an_n, 7439s # arg_an_q, 7439s # arg_an_i, 7439s # arg_an_u, 7439s # arg_an_x, 7439s # arg_an_t, 7439s # arg_an_d, 7439s # arg_an_s, 7439s # arg_an_o, 7439s # arg_an_g, 7439s # arg_an_h, 7439s # arg_an_ay, 7439s # arg_an_as, 7439s # arg_an_ao, 7439s # arg_an_aay, 7439s # arg_an_asv), 7439s # G_DBUS_CALL_FLAGS_NONE, 7439s # -1, 7439s # cancellable, 7439s # error); 7439s # if (_ret == NULL) 7439s # goto _out; 7439s # g_variant_get (_ret, 7439s # "()"); 7439s # g_variant_unref (_ret); 7439s # _out: 7439s # return _ret != NULL; 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_complete_method_with_many_args: 7439s # * @object: A #OrgProjectOtherCallableIface. 7439s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7439s # * 7439s # * 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. 7439s # * 7439s # * This method will free @invocation, you cannot use it afterwards. 7439s # */ 7439s # void 7439s # org_project_other_callable_iface_complete_method_with_many_args ( 7439s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 7439s # GDBusMethodInvocation *invocation) 7439s # { 7439s # g_dbus_method_invocation_return_value (invocation, 7439s # g_variant_new ("()")); 7439s # } 7439s # 7439s # /* ------------------------------------------------------------------------ */ 7439s # 7439s # /** 7439s # * OrgProjectOtherCallableIfaceProxy: 7439s # * 7439s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 7439s # */ 7439s # 7439s # /** 7439s # * OrgProjectOtherCallableIfaceProxyClass: 7439s # * @parent_class: The parent class. 7439s # * 7439s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 7439s # */ 7439s # 7439s # struct _OrgProjectOtherCallableIfaceProxyPrivate 7439s # { 7439s # GData *qdata; 7439s # }; 7439s # 7439s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 7439s # 7439s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7439s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7439s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 7439s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 7439s # 7439s # #else 7439s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7439s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 7439s # 7439s # #endif 7439s # static void 7439s # org_project_other_callable_iface_proxy_finalize (GObject *object) 7439s # { 7439s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 7439s # g_datalist_clear (&proxy->priv->qdata); 7439s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7439s # guint prop_id G_GNUC_UNUSED, 7439s # GValue *value G_GNUC_UNUSED, 7439s # GParamSpec *pspec G_GNUC_UNUSED) 7439s # { 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7439s # guint prop_id G_GNUC_UNUSED, 7439s # const GValue *value G_GNUC_UNUSED, 7439s # GParamSpec *pspec G_GNUC_UNUSED) 7439s # { 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 7439s # const gchar *sender_name G_GNUC_UNUSED, 7439s # const gchar *signal_name, 7439s # GVariant *parameters) 7439s # { 7439s # _ExtendedGDBusSignalInfo *info; 7439s # GVariantIter iter; 7439s # GVariant *child; 7439s # GValue *paramv; 7439s # gsize num_params; 7439s # gsize n; 7439s # guint signal_id; 7439s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 7439s # if (info == NULL) 7439s # return; 7439s # num_params = g_variant_n_children (parameters); 7439s # paramv = g_new0 (GValue, num_params + 1); 7439s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7439s # g_value_set_object (¶mv[0], proxy); 7439s # g_variant_iter_init (&iter, parameters); 7439s # n = 1; 7439s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7439s # { 7439s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7439s # if (arg_info->use_gvariant) 7439s # { 7439s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7439s # g_value_set_variant (¶mv[n], child); 7439s # n++; 7439s # } 7439s # else 7439s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7439s # g_variant_unref (child); 7439s # } 7439s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7439s # g_signal_emitv (paramv, signal_id, 0, NULL); 7439s # for (n = 0; n < num_params + 1; n++) 7439s # g_value_unset (¶mv[n]); 7439s # g_free (paramv); 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7439s # GVariant *changed_properties, 7439s # const gchar *const *invalidated_properties) 7439s # { 7439s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 7439s # guint n; 7439s # const gchar *key; 7439s # GVariantIter *iter; 7439s # _ExtendedGDBusPropertyInfo *info; 7439s # g_variant_get (changed_properties, "a{sv}", &iter); 7439s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7439s # { 7439s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 7439s # g_datalist_remove_data (&proxy->priv->qdata, key); 7439s # if (info != NULL) 7439s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7439s # } 7439s # g_variant_iter_free (iter); 7439s # for (n = 0; invalidated_properties[n] != NULL; n++) 7439s # { 7439s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 7439s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7439s # if (info != NULL) 7439s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7439s # } 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 7439s # { 7439s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7439s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 7439s # #else 7439s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 7439s # #endif 7439s # 7439s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 7439s # { 7439s # GObjectClass *gobject_class; 7439s # GDBusProxyClass *proxy_class; 7439s # 7439s # gobject_class = G_OBJECT_CLASS (klass); 7439s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 7439s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 7439s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 7439s # 7439s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7439s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 7439s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 7439s # 7439s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7439s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 7439s # #endif 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 7439s # { 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_proxy_new: 7439s # * @connection: A #GDBusConnection. 7439s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7439s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7439s # * @object_path: An object path. 7439s # * @cancellable: (nullable): A #GCancellable or %NULL. 7439s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7439s # * @user_data: User data to pass to @callback. 7439s # * 7439s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 7439s # * 7439s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7439s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 7439s # * 7439s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7439s # */ 7439s # void 7439s # org_project_other_callable_iface_proxy_new ( 7439s # GDBusConnection *connection, 7439s # GDBusProxyFlags flags, 7439s # const gchar *name, 7439s # const gchar *object_path, 7439s # GCancellable *cancellable, 7439s # GAsyncReadyCallback callback, 7439s # gpointer user_data) 7439s # { 7439s # 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); 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_proxy_new_finish: 7439s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 7439s # * @error: Return location for error or %NULL 7439s # * 7439s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 7439s # * 7439s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7439s # */ 7439s # OrgProjectOtherCallableIface * 7439s # org_project_other_callable_iface_proxy_new_finish ( 7439s # GAsyncResult *res, 7439s # GError **error) 7439s # { 7439s # GObject *ret; 7439s # GObject *source_object; 7439s # source_object = g_async_result_get_source_object (res); 7439s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7439s # g_object_unref (source_object); 7439s # if (ret != NULL) 7439s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7439s # else 7439s # return NULL; 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_proxy_new_sync: 7439s # * @connection: A #GDBusConnection. 7439s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7439s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7439s # * @object_path: An object path. 7439s # * @cancellable: (nullable): A #GCancellable or %NULL. 7439s # * @error: Return location for error or %NULL 7439s # * 7439s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 7439s # * 7439s # * The calling thread is blocked until a reply is received. 7439s # * 7439s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 7439s # * 7439s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7439s # */ 7439s # OrgProjectOtherCallableIface * 7439s # org_project_other_callable_iface_proxy_new_sync ( 7439s # GDBusConnection *connection, 7439s # GDBusProxyFlags flags, 7439s # const gchar *name, 7439s # const gchar *object_path, 7439s # GCancellable *cancellable, 7439s # GError **error) 7439s # { 7439s # GInitable *ret; 7439s # 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); 7439s # if (ret != NULL) 7439s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7439s # else 7439s # return NULL; 7439s # } 7439s # 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_proxy_new_for_bus: 7439s # * @bus_type: A #GBusType. 7439s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7439s # * @name: A bus name (well-known or unique). 7439s # * @object_path: An object path. 7439s # * @cancellable: (nullable): A #GCancellable or %NULL. 7439s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7439s # * @user_data: User data to pass to @callback. 7439s # * 7439s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7439s # * 7439s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7439s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 7439s # * 7439s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7439s # */ 7439s # void 7439s # org_project_other_callable_iface_proxy_new_for_bus ( 7439s # GBusType bus_type, 7439s # GDBusProxyFlags flags, 7439s # const gchar *name, 7439s # const gchar *object_path, 7439s # GCancellable *cancellable, 7439s # GAsyncReadyCallback callback, 7439s # gpointer user_data) 7439s # { 7439s # 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); 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 7439s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 7439s # * @error: Return location for error or %NULL 7439s # * 7439s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 7439s # * 7439s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7439s # */ 7439s # OrgProjectOtherCallableIface * 7439s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 7439s # GAsyncResult *res, 7439s # GError **error) 7439s # { 7439s # GObject *ret; 7439s # GObject *source_object; 7439s # source_object = g_async_result_get_source_object (res); 7439s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7439s # g_object_unref (source_object); 7439s # if (ret != NULL) 7439s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7439s # else 7439s # return NULL; 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 7439s # * @bus_type: A #GBusType. 7439s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7439s # * @name: A bus name (well-known or unique). 7439s # * @object_path: An object path. 7439s # * @cancellable: (nullable): A #GCancellable or %NULL. 7439s # * @error: Return location for error or %NULL 7439s # * 7439s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7439s # * 7439s # * The calling thread is blocked until a reply is received. 7439s # * 7439s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7439s # * 7439s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7439s # */ 7439s # OrgProjectOtherCallableIface * 7439s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 7439s # GBusType bus_type, 7439s # GDBusProxyFlags flags, 7439s # const gchar *name, 7439s # const gchar *object_path, 7439s # GCancellable *cancellable, 7439s # GError **error) 7439s # { 7439s # GInitable *ret; 7439s # 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); 7439s # if (ret != NULL) 7439s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 7439s # else 7439s # return NULL; 7439s # } 7439s # 7439s # 7439s # /* ------------------------------------------------------------------------ */ 7439s # 7439s # /** 7439s # * OrgProjectOtherCallableIfaceSkeleton: 7439s # * 7439s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7439s # */ 7439s # 7439s # /** 7439s # * OrgProjectOtherCallableIfaceSkeletonClass: 7439s # * @parent_class: The parent class. 7439s # * 7439s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 7439s # */ 7439s # 7439s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 7439s # { 7439s # GValue *properties; 7439s # GList *changed_properties; 7439s # GSource *changed_properties_idle_source; 7439s # GMainContext *context; 7439s # GMutex lock; 7439s # }; 7439s # 7439s # static void 7439s # _org_project_other_callable_iface_skeleton_handle_method_call ( 7439s # GDBusConnection *connection G_GNUC_UNUSED, 7439s # const gchar *sender G_GNUC_UNUSED, 7439s # const gchar *object_path G_GNUC_UNUSED, 7439s # const gchar *interface_name, 7439s # const gchar *method_name, 7439s # GVariant *parameters, 7439s # GDBusMethodInvocation *invocation, 7439s # gpointer user_data) 7439s # { 7439s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 7439s # _ExtendedGDBusMethodInfo *info; 7439s # GVariantIter iter; 7439s # GVariant *child; 7439s # GValue *paramv; 7439s # gsize num_params; 7439s # guint num_extra; 7439s # gsize n; 7439s # guint signal_id; 7439s # GValue return_value = G_VALUE_INIT; 7439s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7439s # g_assert (info != NULL); 7439s # num_params = g_variant_n_children (parameters); 7439s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7439s # n = 0; 7439s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7439s # g_value_set_object (¶mv[n++], skeleton); 7439s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7439s # g_value_set_object (¶mv[n++], invocation); 7439s # if (info->pass_fdlist) 7439s # { 7439s # #ifdef G_OS_UNIX 7439s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7439s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7439s # #else 7439s # g_assert_not_reached (); 7439s # #endif 7439s # } 7439s # g_variant_iter_init (&iter, parameters); 7439s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7439s # { 7439s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7439s # if (arg_info->use_gvariant) 7439s # { 7439s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7439s # g_value_set_variant (¶mv[n], child); 7439s # n++; 7439s # } 7439s # else 7439s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7439s # g_variant_unref (child); 7439s # } 7439s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 7439s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7439s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7439s # if (!g_value_get_boolean (&return_value)) 7439s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7439s # g_value_unset (&return_value); 7439s # for (n = 0; n < num_params + num_extra; n++) 7439s # g_value_unset (¶mv[n]); 7439s # g_free (paramv); 7439s # } 7439s # 7439s # static GVariant * 7439s # _org_project_other_callable_iface_skeleton_handle_get_property ( 7439s # GDBusConnection *connection G_GNUC_UNUSED, 7439s # const gchar *sender G_GNUC_UNUSED, 7439s # const gchar *object_path G_GNUC_UNUSED, 7439s # const gchar *interface_name G_GNUC_UNUSED, 7439s # const gchar *property_name, 7439s # GError **error, 7439s # gpointer user_data) 7439s # { 7439s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 7439s # GValue value = G_VALUE_INIT; 7439s # GParamSpec *pspec; 7439s # _ExtendedGDBusPropertyInfo *info; 7439s # GVariant *ret; 7439s # ret = NULL; 7439s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 7439s # g_assert (info != NULL); 7439s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7439s # if (pspec == NULL) 7439s # { 7439s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7439s # } 7439s # else 7439s # { 7439s # g_value_init (&value, pspec->value_type); 7439s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7439s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7439s # g_value_unset (&value); 7439s # } 7439s # return ret; 7439s # } 7439s # 7439s # static gboolean 7439s # _org_project_other_callable_iface_skeleton_handle_set_property ( 7439s # GDBusConnection *connection G_GNUC_UNUSED, 7439s # const gchar *sender G_GNUC_UNUSED, 7439s # const gchar *object_path G_GNUC_UNUSED, 7439s # const gchar *interface_name G_GNUC_UNUSED, 7439s # const gchar *property_name, 7439s # GVariant *variant, 7439s # GError **error, 7439s # gpointer user_data) 7439s # { 7439s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 7439s # GValue value = G_VALUE_INIT; 7439s # GParamSpec *pspec; 7439s # _ExtendedGDBusPropertyInfo *info; 7439s # gboolean ret; 7439s # ret = FALSE; 7439s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 7439s # g_assert (info != NULL); 7439s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7439s # if (pspec == NULL) 7439s # { 7439s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7439s # } 7439s # else 7439s # { 7439s # if (info->use_gvariant) 7439s # g_value_set_variant (&value, variant); 7439s # else 7439s # g_dbus_gvariant_to_gvalue (variant, &value); 7439s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7439s # g_value_unset (&value); 7439s # ret = TRUE; 7439s # } 7439s # return ret; 7439s # } 7439s # 7439s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 7439s # { 7439s # _org_project_other_callable_iface_skeleton_handle_method_call, 7439s # _org_project_other_callable_iface_skeleton_handle_get_property, 7439s # _org_project_other_callable_iface_skeleton_handle_set_property, 7439s # {NULL} 7439s # }; 7439s # 7439s # static GDBusInterfaceInfo * 7439s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7439s # { 7439s # return org_project_other_callable_iface_interface_info (); 7439s # } 7439s # 7439s # static GDBusInterfaceVTable * 7439s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7439s # { 7439s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 7439s # } 7439s # 7439s # static GVariant * 7439s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7439s # { 7439s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 7439s # 7439s # GVariantBuilder builder; 7439s # guint n; 7439s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7439s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7439s # #else 7439s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7439s # #endif 7439s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 7439s # goto out; 7439s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7439s # { 7439s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 7439s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7439s # { 7439s # GVariant *value; 7439s # 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); 7439s # if (value != NULL) 7439s # { 7439s # g_variant_take_ref (value); 7439s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7439s # g_variant_unref (value); 7439s # } 7439s # } 7439s # } 7439s # out: 7439s # return g_variant_builder_end (&builder); 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7439s # { 7439s # } 7439s # 7439s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 7439s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7439s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7439s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 7439s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 7439s # 7439s # #else 7439s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7439s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 7439s # 7439s # #endif 7439s # static void 7439s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 7439s # { 7439s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 7439s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7439s # if (skeleton->priv->changed_properties_idle_source != NULL) 7439s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7439s # g_main_context_unref (skeleton->priv->context); 7439s # g_mutex_clear (&skeleton->priv->lock); 7439s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 7439s # { 7439s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7439s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 7439s # #else 7439s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 7439s # #endif 7439s # 7439s # g_mutex_init (&skeleton->priv->lock); 7439s # skeleton->priv->context = g_main_context_ref_thread_default (); 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 7439s # { 7439s # GObjectClass *gobject_class; 7439s # GDBusInterfaceSkeletonClass *skeleton_class; 7439s # 7439s # gobject_class = G_OBJECT_CLASS (klass); 7439s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 7439s # 7439s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7439s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 7439s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 7439s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 7439s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 7439s # 7439s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7439s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 7439s # #endif 7439s # } 7439s # 7439s # static void 7439s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 7439s # { 7439s # } 7439s # 7439s # /** 7439s # * org_project_other_callable_iface_skeleton_new: 7439s # * 7439s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 7439s # * 7439s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 7439s # */ 7439s # OrgProjectOtherCallableIface * 7439s # org_project_other_callable_iface_skeleton_new (void) 7439s # { 7439s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 7439s # } 7439s # Error: 7439s # Executing: glib/codegen.py.test 7440s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 7440s # gdbus-codegen: /usr/bin/gdbus-codegen 7440s # tmpdir: /tmp/tmpyee9ujqe 7440s # /tmp/tmpyee9ujqe/tmpvhme_uk_.xml: 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # 7440s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyee9ujqe/tmpvhme_uk_.xml', '--output', '-', '--body'] 7440s # Return code: 0 7440s # Output: 7440s # /* 7440s # * This file is generated by gdbus-codegen, do not modify it. 7440s # * 7440s # * The license of this code is the same as for the D-Bus interface description 7440s # * it was derived from. Note that it links to GLib, so must comply with the 7440s # * LGPL linking clauses. 7440s # */ 7440s # 7440s # #ifdef HAVE_CONFIG_H 7440s # # include "config.h" 7440s # #endif 7440s # 7440s # #include 7440s # #ifdef G_OS_UNIX 7440s # # include 7440s # #endif 7440s # 7440s # #ifdef G_ENABLE_DEBUG 7440s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7440s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7440s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7440s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7440s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7440s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7440s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7440s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7440s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7440s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7440s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7440s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7440s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7440s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7440s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7440s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7440s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7440s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7440s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7440s # #else /* !G_ENABLE_DEBUG */ 7440s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7440s # * Do not access GValues directly in your code. Instead, use the 7440s # * g_value_get_*() functions 7440s # */ 7440s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7440s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7440s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7440s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7440s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7440s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7440s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7440s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7440s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7440s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7440s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7440s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7440s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7440s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7440s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7440s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7440s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7440s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7440s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7440s # #endif /* !G_ENABLE_DEBUG */ 7440s # 7440s # typedef struct 7440s # { 7440s # GDBusArgInfo parent_struct; 7440s # gboolean use_gvariant; 7440s # } _ExtendedGDBusArgInfo; 7440s # 7440s # typedef struct 7440s # { 7440s # GDBusMethodInfo parent_struct; 7440s # const gchar *signal_name; 7440s # gboolean pass_fdlist; 7440s # } _ExtendedGDBusMethodInfo; 7440s # 7440s # typedef struct 7440s # { 7440s # GDBusSignalInfo parent_struct; 7440s # const gchar *signal_name; 7440s # } _ExtendedGDBusSignalInfo; 7440s # 7440s # typedef struct 7440s # { 7440s # GDBusPropertyInfo parent_struct; 7440s # const gchar *hyphen_name; 7440s # guint use_gvariant : 1; 7440s # guint emits_changed_signal : 1; 7440s # } _ExtendedGDBusPropertyInfo; 7440s # 7440s # typedef struct 7440s # { 7440s # GDBusInterfaceInfo parent_struct; 7440s # const gchar *hyphen_name; 7440s # } _ExtendedGDBusInterfaceInfo; 7440s # 7440s # typedef struct 7440s # { 7440s # const _ExtendedGDBusPropertyInfo *info; 7440s # guint prop_id; 7440s # GValue orig_value; /* the value before the change */ 7440s # } ChangedProperty; 7440s # 7440s # static void 7440s # _changed_property_free (ChangedProperty *data) 7440s # { 7440s # g_value_unset (&data->orig_value); 7440s # g_free (data); 7440s # } 7440s # 7440s # static gboolean 7440s # _g_strv_equal0 (gchar **a, gchar **b) 7440s # { 7440s # gboolean ret = FALSE; 7440s # guint n; 7440s # if (a == NULL && b == NULL) 7440s # { 7440s # ret = TRUE; 7440s # goto out; 7440s # } 7440s # if (a == NULL || b == NULL) 7440s # goto out; 7440s # if (g_strv_length (a) != g_strv_length (b)) 7440s # goto out; 7440s # for (n = 0; a[n] != NULL; n++) 7440s # if (g_strcmp0 (a[n], b[n]) != 0) 7440s # goto out; 7440s # ret = TRUE; 7440s # out: 7440s # return ret; 7440s # } 7440s # 7440s # static gboolean 7440s # _g_variant_equal0 (GVariant *a, GVariant *b) 7440s # { 7440s # gboolean ret = FALSE; 7440s # if (a == NULL && b == NULL) 7440s # { 7440s # ret = TRUE; 7440s # goto out; 7440s # } 7440s # if (a == NULL || b == NULL) 7440s # goto out; 7440s # ret = g_variant_equal (a, b); 7440s # out: 7440s # return ret; 7440s # } 7440s # 7440s # G_GNUC_UNUSED static gboolean 7440s # _g_value_equal (const GValue *a, const GValue *b) 7440s # { 7440s # gboolean ret = FALSE; 7440s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7440s # switch (G_VALUE_TYPE (a)) 7440s # { 7440s # case G_TYPE_BOOLEAN: 7440s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7440s # break; 7440s # case G_TYPE_UCHAR: 7440s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7440s # break; 7440s # case G_TYPE_INT: 7440s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7440s # break; 7440s # case G_TYPE_UINT: 7440s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7440s # break; 7440s # case G_TYPE_INT64: 7440s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7440s # break; 7440s # case G_TYPE_UINT64: 7440s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7440s # break; 7440s # case G_TYPE_DOUBLE: 7440s # { 7440s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7440s # gdouble da = g_value_get_double (a); 7440s # gdouble db = g_value_get_double (b); 7440s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7440s # } 7440s # break; 7440s # case G_TYPE_STRING: 7440s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7440s # break; 7440s # case G_TYPE_VARIANT: 7440s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7440s # break; 7440s # default: 7440s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7440s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7440s # else 7440s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7440s # break; 7440s # } 7440s # return ret; 7440s # } 7440s # 7440s # static void 7440s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7440s # GClosure *closure, 7440s # GValue *return_value, 7440s # unsigned int n_param_values, 7440s # const GValue *param_values, 7440s # void *invocation_hint G_GNUC_UNUSED, 7440s # void *marshal_data) 7440s # { 7440s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7440s # (void *data1, 7440s # GDBusMethodInvocation *arg_method_invocation, 7440s # void *data2); 7440s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7440s # GCClosure *cc = (GCClosure*) closure; 7440s # void *data1, *data2; 7440s # gboolean v_return; 7440s # 7440s # g_return_if_fail (return_value != NULL); 7440s # g_return_if_fail (n_param_values == 2); 7440s # 7440s # if (G_CCLOSURE_SWAP_DATA (closure)) 7440s # { 7440s # data1 = closure->data; 7440s # data2 = g_value_peek_pointer (param_values + 0); 7440s # } 7440s # else 7440s # { 7440s # data1 = g_value_peek_pointer (param_values + 0); 7440s # data2 = closure->data; 7440s # } 7440s # 7440s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7440s # (marshal_data ? marshal_data : cc->callback); 7440s # 7440s # v_return = 7440s # callback (data1, 7440s # g_marshal_value_peek_object (param_values + 1), 7440s # data2); 7440s # 7440s # g_value_set_boolean (return_value, v_return); 7440s # } 7440s # 7440s # /* ------------------------------------------------------------------------ 7440s # * Code for interface org.project.CallableIface 7440s # * ------------------------------------------------------------------------ 7440s # */ 7440s # 7440s # /** 7440s # * SECTION:OrgProjectCallableIface 7440s # * @title: OrgProjectCallableIface 7440s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 7440s # * 7440s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 7440s # */ 7440s # 7440s # /* ---- Introspection data for org.project.CallableIface ---- */ 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_b", 7440s # (gchar *) "b", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_y", 7440s # (gchar *) "y", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_n", 7440s # (gchar *) "n", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_q", 7440s # (gchar *) "q", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_i", 7440s # (gchar *) "i", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_u", 7440s # (gchar *) "u", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_x", 7440s # (gchar *) "x", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_t", 7440s # (gchar *) "t", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_d", 7440s # (gchar *) "d", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_s", 7440s # (gchar *) "s", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_o", 7440s # (gchar *) "o", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_g", 7440s # (gchar *) "g", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_h", 7440s # (gchar *) "h", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_ay", 7440s # (gchar *) "ay", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_as", 7440s # (gchar *) "as", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_ao", 7440s # (gchar *) "ao", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_aay", 7440s # (gchar *) "aay", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "an_asv", 7440s # (gchar *) "a{sv}", 7440s # NULL 7440s # }, 7440s # FALSE 7440s # }; 7440s # 7440s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 7440s # { 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 7440s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 7440s # NULL 7440s # }; 7440s # 7440s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "MethodWithManyArgs", 7440s # NULL, 7440s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 7440s # NULL 7440s # }, 7440s # "handle-method-with-many-args", 7440s # FALSE 7440s # }; 7440s # 7440s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 7440s # { 7440s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 7440s # NULL 7440s # }; 7440s # 7440s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 7440s # { 7440s # { 7440s # -1, 7440s # (gchar *) "org.project.CallableIface", 7440s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 7440s # NULL, 7440s # NULL, 7440s # NULL 7440s # }, 7440s # "org-project-callable-iface", 7440s # }; 7440s # 7440s # 7440s # /** 7440s # * org_project_callable_iface_interface_info: 7440s # * 7440s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 7440s # * 7440s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7440s # */ 7440s # GDBusInterfaceInfo * 7440s # org_project_callable_iface_interface_info (void) 7440s # { 7440s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_override_properties: 7440s # * @klass: The class structure for a #GObject derived class. 7440s # * @property_id_begin: The property id to assign to the first overridden property. 7440s # * 7440s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 7440s # * The properties are overridden in the order they are defined. 7440s # * 7440s # * Returns: The last property id. 7440s # */ 7440s # guint 7440s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7440s # { 7440s # return property_id_begin - 1; 7440s # } 7440s # 7440s # 7440s # inline static void 7440s # org_project_callable_iface_method_marshal_method_with_many_args ( 7440s # GClosure *closure, 7440s # GValue *return_value, 7440s # unsigned int n_param_values, 7440s # const GValue *param_values, 7440s # void *invocation_hint, 7440s # void *marshal_data) 7440s # { 7440s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7440s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7440s # } 7440s # 7440s # 7440s # /** 7440s # * OrgProjectCallableIface: 7440s # * 7440s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 7440s # */ 7440s # 7440s # /** 7440s # * OrgProjectCallableIfaceIface: 7440s # * @parent_iface: The parent interface. 7440s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 7440s # * 7440s # * Virtual table for the D-Bus interface org.project.CallableIface. 7440s # */ 7440s # 7440s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 7440s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 7440s # 7440s # static void 7440s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 7440s # { 7440s # /* GObject signals for incoming D-Bus method calls: */ 7440s # /** 7440s # * OrgProjectCallableIface::handle-method-with-many-args: 7440s # * @object: A #OrgProjectCallableIface. 7440s # * @invocation: A #GDBusMethodInvocation. 7440s # * 7440s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 7440s # * 7440s # * 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. 7440s # * 7440s # * 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. 7440s # */ 7440s # g_signal_new ("handle-method-with-many-args", 7440s # G_TYPE_FROM_INTERFACE (iface), 7440s # G_SIGNAL_RUN_LAST, 7440s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 7440s # g_signal_accumulator_true_handled, 7440s # NULL, 7440s # org_project_callable_iface_method_marshal_method_with_many_args, 7440s # G_TYPE_BOOLEAN, 7440s # 1, 7440s # G_TYPE_DBUS_METHOD_INVOCATION); 7440s # 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_call_method_with_many_args: 7440s # * @proxy: A #OrgProjectCallableIfaceProxy. 7440s # * @cancellable: (nullable): A #GCancellable or %NULL. 7440s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7440s # * @user_data: User data to pass to @callback. 7440s # * 7440s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 7440s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7440s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 7440s # * 7440s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 7440s # */ 7440s # void 7440s # org_project_callable_iface_call_method_with_many_args ( 7440s # OrgProjectCallableIface *proxy, 7440s # GCancellable *cancellable, 7440s # GAsyncReadyCallback callback, 7440s # gpointer user_data) 7440s # { 7440s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7440s # "MethodWithManyArgs", 7440s # g_variant_new ("()"), 7440s # G_DBUS_CALL_FLAGS_NONE, 7440s # -1, 7440s # cancellable, 7440s # callback, 7440s # user_data); 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_call_method_with_many_args_finish: 7440s # * @proxy: A #OrgProjectCallableIfaceProxy. 7440s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 7440s # * @error: Return location for error or %NULL. 7440s # * 7440s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 7440s # * 7440s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7440s # */ 7440s # gboolean 7440s # org_project_callable_iface_call_method_with_many_args_finish ( 7440s # OrgProjectCallableIface *proxy, 7440s # gboolean *out_an_b, 7440s # guchar *out_an_y, 7440s # gint16 *out_an_n, 7440s # guint16 *out_an_q, 7440s # gint *out_an_i, 7440s # guint *out_an_u, 7440s # gint64 *out_an_x, 7440s # guint64 *out_an_t, 7440s # gdouble *out_an_d, 7440s # gchar **out_an_s, 7440s # gchar **out_an_o, 7440s # gchar **out_an_g, 7440s # GVariant **out_an_h, 7440s # gchar **out_an_ay, 7440s # gchar ***out_an_as, 7440s # gchar ***out_an_ao, 7440s # gchar ***out_an_aay, 7440s # GVariant **out_an_asv, 7440s # GAsyncResult *res, 7440s # GError **error) 7440s # { 7440s # GVariant *_ret; 7440s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7440s # if (_ret == NULL) 7440s # goto _out; 7440s # g_variant_get (_ret, 7440s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7440s # out_an_b, 7440s # out_an_y, 7440s # out_an_n, 7440s # out_an_q, 7440s # out_an_i, 7440s # out_an_u, 7440s # out_an_x, 7440s # out_an_t, 7440s # out_an_d, 7440s # out_an_s, 7440s # out_an_o, 7440s # out_an_g, 7440s # out_an_h, 7440s # out_an_ay, 7440s # out_an_as, 7440s # out_an_ao, 7440s # out_an_aay, 7440s # out_an_asv); 7440s # g_variant_unref (_ret); 7440s # _out: 7440s # return _ret != NULL; 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_call_method_with_many_args_sync: 7440s # * @proxy: A #OrgProjectCallableIfaceProxy. 7440s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 7440s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 7440s # * @cancellable: (nullable): A #GCancellable or %NULL. 7440s # * @error: Return location for error or %NULL. 7440s # * 7440s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7440s # * 7440s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 7440s # * 7440s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7440s # */ 7440s # gboolean 7440s # org_project_callable_iface_call_method_with_many_args_sync ( 7440s # OrgProjectCallableIface *proxy, 7440s # gboolean *out_an_b, 7440s # guchar *out_an_y, 7440s # gint16 *out_an_n, 7440s # guint16 *out_an_q, 7440s # gint *out_an_i, 7440s # guint *out_an_u, 7440s # gint64 *out_an_x, 7440s # guint64 *out_an_t, 7440s # gdouble *out_an_d, 7440s # gchar **out_an_s, 7440s # gchar **out_an_o, 7440s # gchar **out_an_g, 7440s # GVariant **out_an_h, 7440s # gchar **out_an_ay, 7440s # gchar ***out_an_as, 7440s # gchar ***out_an_ao, 7440s # gchar ***out_an_aay, 7440s # GVariant **out_an_asv, 7440s # GCancellable *cancellable, 7440s # GError **error) 7440s # { 7440s # GVariant *_ret; 7440s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7440s # "MethodWithManyArgs", 7440s # g_variant_new ("()"), 7440s # G_DBUS_CALL_FLAGS_NONE, 7440s # -1, 7440s # cancellable, 7440s # error); 7440s # if (_ret == NULL) 7440s # goto _out; 7440s # g_variant_get (_ret, 7440s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7440s # out_an_b, 7440s # out_an_y, 7440s # out_an_n, 7440s # out_an_q, 7440s # out_an_i, 7440s # out_an_u, 7440s # out_an_x, 7440s # out_an_t, 7440s # out_an_d, 7440s # out_an_s, 7440s # out_an_o, 7440s # out_an_g, 7440s # out_an_h, 7440s # out_an_ay, 7440s # out_an_as, 7440s # out_an_ao, 7440s # out_an_aay, 7440s # out_an_asv); 7440s # g_variant_unref (_ret); 7440s # _out: 7440s # return _ret != NULL; 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_complete_method_with_many_args: 7440s # * @object: A #OrgProjectCallableIface. 7440s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7440s # * @an_b: Parameter to return. 7440s # * @an_y: Parameter to return. 7440s # * @an_n: Parameter to return. 7440s # * @an_q: Parameter to return. 7440s # * @an_i: Parameter to return. 7440s # * @an_u: Parameter to return. 7440s # * @an_x: Parameter to return. 7440s # * @an_t: Parameter to return. 7440s # * @an_d: Parameter to return. 7440s # * @an_s: Parameter to return. 7440s # * @an_o: Parameter to return. 7440s # * @an_g: Parameter to return. 7440s # * @an_h: Parameter to return. 7440s # * @an_ay: Parameter to return. 7440s # * @an_as: Parameter to return. 7440s # * @an_ao: Parameter to return. 7440s # * @an_aay: Parameter to return. 7440s # * @an_asv: Parameter to return. 7440s # * 7440s # * 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. 7440s # * 7440s # * This method will free @invocation, you cannot use it afterwards. 7440s # */ 7440s # void 7440s # org_project_callable_iface_complete_method_with_many_args ( 7440s # OrgProjectCallableIface *object G_GNUC_UNUSED, 7440s # GDBusMethodInvocation *invocation, 7440s # gboolean an_b, 7440s # guchar an_y, 7440s # gint16 an_n, 7440s # guint16 an_q, 7440s # gint an_i, 7440s # guint an_u, 7440s # gint64 an_x, 7440s # guint64 an_t, 7440s # gdouble an_d, 7440s # const gchar *an_s, 7440s # const gchar *an_o, 7440s # const gchar *an_g, 7440s # GVariant *an_h, 7440s # const gchar *an_ay, 7440s # const gchar *const *an_as, 7440s # const gchar *const *an_ao, 7440s # const gchar *const *an_aay, 7440s # GVariant *an_asv) 7440s # { 7440s # g_dbus_method_invocation_return_value (invocation, 7440s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7440s # an_b, 7440s # an_y, 7440s # an_n, 7440s # an_q, 7440s # an_i, 7440s # an_u, 7440s # an_x, 7440s # an_t, 7440s # an_d, 7440s # an_s, 7440s # an_o, 7440s # an_g, 7440s # an_h, 7440s # an_ay, 7440s # an_as, 7440s # an_ao, 7440s # an_aay, 7440s # an_asv)); 7440s # } 7440s # 7440s # /* ------------------------------------------------------------------------ */ 7440s # 7440s # /** 7440s # * OrgProjectCallableIfaceProxy: 7440s # * 7440s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 7440s # */ 7440s # 7440s # /** 7440s # * OrgProjectCallableIfaceProxyClass: 7440s # * @parent_class: The parent class. 7440s # * 7440s # * Class structure for #OrgProjectCallableIfaceProxy. 7440s # */ 7440s # 7440s # struct _OrgProjectCallableIfaceProxyPrivate 7440s # { 7440s # GData *qdata; 7440s # }; 7440s # 7440s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 7440s # 7440s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7440s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7440s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 7440s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 7440s # 7440s # #else 7440s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 7440s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 7440s # 7440s # #endif 7440s # static void 7440s # org_project_callable_iface_proxy_finalize (GObject *object) 7440s # { 7440s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 7440s # g_datalist_clear (&proxy->priv->qdata); 7440s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7440s # guint prop_id G_GNUC_UNUSED, 7440s # GValue *value G_GNUC_UNUSED, 7440s # GParamSpec *pspec G_GNUC_UNUSED) 7440s # { 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7440s # guint prop_id G_GNUC_UNUSED, 7440s # const GValue *value G_GNUC_UNUSED, 7440s # GParamSpec *pspec G_GNUC_UNUSED) 7440s # { 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 7440s # const gchar *sender_name G_GNUC_UNUSED, 7440s # const gchar *signal_name, 7440s # GVariant *parameters) 7440s # { 7440s # _ExtendedGDBusSignalInfo *info; 7440s # GVariantIter iter; 7440s # GVariant *child; 7440s # GValue *paramv; 7440s # gsize num_params; 7440s # gsize n; 7440s # guint signal_id; 7440s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 7440s # if (info == NULL) 7440s # return; 7440s # num_params = g_variant_n_children (parameters); 7440s # paramv = g_new0 (GValue, num_params + 1); 7440s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 7440s # g_value_set_object (¶mv[0], proxy); 7440s # g_variant_iter_init (&iter, parameters); 7440s # n = 1; 7440s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7440s # { 7440s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7440s # if (arg_info->use_gvariant) 7440s # { 7440s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7440s # g_value_set_variant (¶mv[n], child); 7440s # n++; 7440s # } 7440s # else 7440s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7440s # g_variant_unref (child); 7440s # } 7440s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 7440s # g_signal_emitv (paramv, signal_id, 0, NULL); 7440s # for (n = 0; n < num_params + 1; n++) 7440s # g_value_unset (¶mv[n]); 7440s # g_free (paramv); 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7440s # GVariant *changed_properties, 7440s # const gchar *const *invalidated_properties) 7440s # { 7440s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 7440s # guint n; 7440s # const gchar *key; 7440s # GVariantIter *iter; 7440s # _ExtendedGDBusPropertyInfo *info; 7440s # g_variant_get (changed_properties, "a{sv}", &iter); 7440s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7440s # { 7440s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 7440s # g_datalist_remove_data (&proxy->priv->qdata, key); 7440s # if (info != NULL) 7440s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7440s # } 7440s # g_variant_iter_free (iter); 7440s # for (n = 0; invalidated_properties[n] != NULL; n++) 7440s # { 7440s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 7440s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7440s # if (info != NULL) 7440s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7440s # } 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 7440s # { 7440s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7440s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 7440s # #else 7440s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 7440s # #endif 7440s # 7440s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 7440s # { 7440s # GObjectClass *gobject_class; 7440s # GDBusProxyClass *proxy_class; 7440s # 7440s # gobject_class = G_OBJECT_CLASS (klass); 7440s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 7440s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 7440s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 7440s # 7440s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7440s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 7440s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 7440s # 7440s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7440s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 7440s # #endif 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 7440s # { 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_proxy_new: 7440s # * @connection: A #GDBusConnection. 7440s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7440s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7440s # * @object_path: An object path. 7440s # * @cancellable: (nullable): A #GCancellable or %NULL. 7440s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7440s # * @user_data: User data to pass to @callback. 7440s # * 7440s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 7440s # * 7440s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7440s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 7440s # * 7440s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7440s # */ 7440s # void 7440s # org_project_callable_iface_proxy_new ( 7440s # GDBusConnection *connection, 7440s # GDBusProxyFlags flags, 7440s # const gchar *name, 7440s # const gchar *object_path, 7440s # GCancellable *cancellable, 7440s # GAsyncReadyCallback callback, 7440s # gpointer user_data) 7440s # { 7440s # 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); 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_proxy_new_finish: 7440s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 7440s # * @error: Return location for error or %NULL 7440s # * 7440s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 7440s # * 7440s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7440s # */ 7440s # OrgProjectCallableIface * 7440s # org_project_callable_iface_proxy_new_finish ( 7440s # GAsyncResult *res, 7440s # GError **error) 7440s # { 7440s # GObject *ret; 7440s # GObject *source_object; 7440s # source_object = g_async_result_get_source_object (res); 7440s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7440s # g_object_unref (source_object); 7440s # if (ret != NULL) 7440s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7440s # else 7440s # return NULL; 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_proxy_new_sync: 7440s # * @connection: A #GDBusConnection. 7440s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7440s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7440s # * @object_path: An object path. 7440s # * @cancellable: (nullable): A #GCancellable or %NULL. 7440s # * @error: Return location for error or %NULL 7440s # * 7440s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 7440s # * 7440s # * The calling thread is blocked until a reply is received. 7440s # * 7440s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 7440s # * 7440s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7440s # */ 7440s # OrgProjectCallableIface * 7440s # org_project_callable_iface_proxy_new_sync ( 7440s # GDBusConnection *connection, 7440s # GDBusProxyFlags flags, 7440s # const gchar *name, 7440s # const gchar *object_path, 7440s # GCancellable *cancellable, 7440s # GError **error) 7440s # { 7440s # GInitable *ret; 7440s # 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); 7440s # if (ret != NULL) 7440s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7440s # else 7440s # return NULL; 7440s # } 7440s # 7440s # 7440s # /** 7440s # * org_project_callable_iface_proxy_new_for_bus: 7440s # * @bus_type: A #GBusType. 7440s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7440s # * @name: A bus name (well-known or unique). 7440s # * @object_path: An object path. 7440s # * @cancellable: (nullable): A #GCancellable or %NULL. 7440s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7440s # * @user_data: User data to pass to @callback. 7440s # * 7440s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7440s # * 7440s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7440s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 7440s # * 7440s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7440s # */ 7440s # void 7440s # org_project_callable_iface_proxy_new_for_bus ( 7440s # GBusType bus_type, 7440s # GDBusProxyFlags flags, 7440s # const gchar *name, 7440s # const gchar *object_path, 7440s # GCancellable *cancellable, 7440s # GAsyncReadyCallback callback, 7440s # gpointer user_data) 7440s # { 7440s # 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); 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_proxy_new_for_bus_finish: 7440s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 7440s # * @error: Return location for error or %NULL 7440s # * 7440s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 7440s # * 7440s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7440s # */ 7440s # OrgProjectCallableIface * 7440s # org_project_callable_iface_proxy_new_for_bus_finish ( 7440s # GAsyncResult *res, 7440s # GError **error) 7440s # { 7440s # GObject *ret; 7440s # GObject *source_object; 7440s # source_object = g_async_result_get_source_object (res); 7440s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7440s # g_object_unref (source_object); 7440s # if (ret != NULL) 7440s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7440s # else 7440s # return NULL; 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_proxy_new_for_bus_sync: 7440s # * @bus_type: A #GBusType. 7440s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7440s # * @name: A bus name (well-known or unique). 7440s # * @object_path: An object path. 7440s # * @cancellable: (nullable): A #GCancellable or %NULL. 7440s # * @error: Return location for error or %NULL 7440s # * 7440s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7440s # * 7440s # * The calling thread is blocked until a reply is received. 7440s # * 7440s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7440s # * 7440s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 7440s # */ 7440s # OrgProjectCallableIface * 7440s # org_project_callable_iface_proxy_new_for_bus_sync ( 7440s # GBusType bus_type, 7440s # GDBusProxyFlags flags, 7440s # const gchar *name, 7440s # const gchar *object_path, 7440s # GCancellable *cancellable, 7440s # GError **error) 7440s # { 7440s # GInitable *ret; 7440s # 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); 7440s # if (ret != NULL) 7440s # return ORG_PROJECT_CALLABLE_IFACE (ret); 7440s # else 7440s # return NULL; 7440s # } 7440s # 7440s # 7440s # /* ------------------------------------------------------------------------ */ 7440s # 7440s # /** 7440s # * OrgProjectCallableIfaceSkeleton: 7440s # * 7440s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7440s # */ 7440s # 7440s # /** 7440s # * OrgProjectCallableIfaceSkeletonClass: 7440s # * @parent_class: The parent class. 7440s # * 7440s # * Class structure for #OrgProjectCallableIfaceSkeleton. 7440s # */ 7440s # 7440s # struct _OrgProjectCallableIfaceSkeletonPrivate 7440s # { 7440s # GValue *properties; 7440s # GList *changed_properties; 7440s # GSource *changed_properties_idle_source; 7440s # GMainContext *context; 7440s # GMutex lock; 7440s # }; 7440s # 7440s # static void 7440s # _org_project_callable_iface_skeleton_handle_method_call ( 7440s # GDBusConnection *connection G_GNUC_UNUSED, 7440s # const gchar *sender G_GNUC_UNUSED, 7440s # const gchar *object_path G_GNUC_UNUSED, 7440s # const gchar *interface_name, 7440s # const gchar *method_name, 7440s # GVariant *parameters, 7440s # GDBusMethodInvocation *invocation, 7440s # gpointer user_data) 7440s # { 7440s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7440s # _ExtendedGDBusMethodInfo *info; 7440s # GVariantIter iter; 7440s # GVariant *child; 7440s # GValue *paramv; 7440s # gsize num_params; 7440s # guint num_extra; 7440s # gsize n; 7440s # guint signal_id; 7440s # GValue return_value = G_VALUE_INIT; 7440s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7440s # g_assert (info != NULL); 7440s # num_params = g_variant_n_children (parameters); 7440s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7440s # n = 0; 7440s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 7440s # g_value_set_object (¶mv[n++], skeleton); 7440s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7440s # g_value_set_object (¶mv[n++], invocation); 7440s # if (info->pass_fdlist) 7440s # { 7440s # #ifdef G_OS_UNIX 7440s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7440s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7440s # #else 7440s # g_assert_not_reached (); 7440s # #endif 7440s # } 7440s # g_variant_iter_init (&iter, parameters); 7440s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7440s # { 7440s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7440s # if (arg_info->use_gvariant) 7440s # { 7440s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7440s # g_value_set_variant (¶mv[n], child); 7440s # n++; 7440s # } 7440s # else 7440s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7440s # g_variant_unref (child); 7440s # } 7440s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 7440s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7440s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7440s # if (!g_value_get_boolean (&return_value)) 7440s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7440s # g_value_unset (&return_value); 7440s # for (n = 0; n < num_params + num_extra; n++) 7440s # g_value_unset (¶mv[n]); 7440s # g_free (paramv); 7440s # } 7440s # 7440s # static GVariant * 7440s # _org_project_callable_iface_skeleton_handle_get_property ( 7440s # GDBusConnection *connection G_GNUC_UNUSED, 7440s # const gchar *sender G_GNUC_UNUSED, 7440s # const gchar *object_path G_GNUC_UNUSED, 7440s # const gchar *interface_name G_GNUC_UNUSED, 7440s # const gchar *property_name, 7440s # GError **error, 7440s # gpointer user_data) 7440s # { 7440s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7440s # GValue value = G_VALUE_INIT; 7440s # GParamSpec *pspec; 7440s # _ExtendedGDBusPropertyInfo *info; 7440s # GVariant *ret; 7440s # ret = NULL; 7440s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 7440s # g_assert (info != NULL); 7440s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7440s # if (pspec == NULL) 7440s # { 7440s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7440s # } 7440s # else 7440s # { 7440s # g_value_init (&value, pspec->value_type); 7440s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7440s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7440s # g_value_unset (&value); 7440s # } 7440s # return ret; 7440s # } 7440s # 7440s # static gboolean 7440s # _org_project_callable_iface_skeleton_handle_set_property ( 7440s # GDBusConnection *connection G_GNUC_UNUSED, 7440s # const gchar *sender G_GNUC_UNUSED, 7440s # const gchar *object_path G_GNUC_UNUSED, 7440s # const gchar *interface_name G_GNUC_UNUSED, 7440s # const gchar *property_name, 7440s # GVariant *variant, 7440s # GError **error, 7440s # gpointer user_data) 7440s # { 7440s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 7440s # GValue value = G_VALUE_INIT; 7440s # GParamSpec *pspec; 7440s # _ExtendedGDBusPropertyInfo *info; 7440s # gboolean ret; 7440s # ret = FALSE; 7440s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 7440s # g_assert (info != NULL); 7440s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7440s # if (pspec == NULL) 7440s # { 7440s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7440s # } 7440s # else 7440s # { 7440s # if (info->use_gvariant) 7440s # g_value_set_variant (&value, variant); 7440s # else 7440s # g_dbus_gvariant_to_gvalue (variant, &value); 7440s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7440s # g_value_unset (&value); 7440s # ret = TRUE; 7440s # } 7440s # return ret; 7440s # } 7440s # 7440s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 7440s # { 7440s # _org_project_callable_iface_skeleton_handle_method_call, 7440s # _org_project_callable_iface_skeleton_handle_get_property, 7440s # _org_project_callable_iface_skeleton_handle_set_property, 7440s # {NULL} 7440s # }; 7440s # 7440s # static GDBusInterfaceInfo * 7440s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7440s # { 7440s # return org_project_callable_iface_interface_info (); 7440s # } 7440s # 7440s # static GDBusInterfaceVTable * 7440s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7440s # { 7440s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 7440s # } 7440s # 7440s # static GVariant * 7440s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7440s # { 7440s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 7440s # 7440s # GVariantBuilder builder; 7440s # guint n; 7440s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7440s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7440s # #else 7440s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7440s # #endif 7440s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 7440s # goto out; 7440s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7440s # { 7440s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 7440s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7440s # { 7440s # GVariant *value; 7440s # 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); 7440s # if (value != NULL) 7440s # { 7440s # g_variant_take_ref (value); 7440s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7440s # g_variant_unref (value); 7440s # } 7440s # } 7440s # } 7440s # out: 7440s # return g_variant_builder_end (&builder); 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7440s # { 7440s # } 7440s # 7440s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 7440s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7440s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7440s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 7440s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 7440s # 7440s # #else 7440s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7440s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 7440s # 7440s # #endif 7440s # static void 7440s # org_project_callable_iface_skeleton_finalize (GObject *object) 7440s # { 7440s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 7440s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7440s # if (skeleton->priv->changed_properties_idle_source != NULL) 7440s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7440s # g_main_context_unref (skeleton->priv->context); 7440s # g_mutex_clear (&skeleton->priv->lock); 7440s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 7440s # { 7440s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7440s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 7440s # #else 7440s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 7440s # #endif 7440s # 7440s # g_mutex_init (&skeleton->priv->lock); 7440s # skeleton->priv->context = g_main_context_ref_thread_default (); 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 7440s # { 7440s # GObjectClass *gobject_class; 7440s # GDBusInterfaceSkeletonClass *skeleton_class; 7440s # 7440s # gobject_class = G_OBJECT_CLASS (klass); 7440s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 7440s # 7440s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7440s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 7440s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 7440s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 7440s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 7440s # 7440s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7440s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 7440s # #endif 7440s # } 7440s # 7440s # static void 7440s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 7440s # { 7440s # } 7440s # 7440s # /** 7440s # * org_project_callable_iface_skeleton_new: 7440s # * 7440s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 7440s # * 7440s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 7440s # */ 7440s # OrgProjectCallableIface * 7440s # org_project_callable_iface_skeleton_new (void) 7440s # { 7440s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 7440s # } 7440s # Error: 7441s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 7441s # gdbus-codegen: /usr/bin/gdbus-codegen 7441s # tmpdir: /tmp/tmprz4vpgfd 7441s # /tmp/tmprz4vpgfd/tmpshl5bvvg.xml: 7441s # 7441s # 7441s # 7441s # 7441s # 7441s # 7441s # 7441s # 7441s # 7441s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprz4vpgfd/tmpshl5bvvg.xml', '--output', '-', '--body'] 7441s # Return code: 0 7441s # Output: 7441s # /* 7441s # * This file is generated by gdbus-codegen, do not modify it. 7441s # * 7441s # * The license of this code is the same as for the D-Bus interface description 7441s # * it was derived from. Note that it links to GLib, so must comply with the 7441s # * LGPL linking clauses. 7441s # */ 7441s # 7441s # #ifdef HAVE_CONFIG_H 7441s # # include "config.h" 7441s # #endif 7441s # 7441s # #include 7441s # #ifdef G_OS_UNIX 7441s # # include 7441s # #endif 7441s # 7441s # #ifdef G_ENABLE_DEBUG 7441s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7441s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7441s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7441s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7441s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7441s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7441s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7441s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7441s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7441s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7441s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7441s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7441s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7441s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7441s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7441s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7441s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7441s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7441s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7441s # #else /* !G_ENABLE_DEBUG */ 7441s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7441s # * Do not access GValues directly in your code. Instead, use the 7441s # * g_value_get_*() functions 7441s # */ 7441s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7441s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7441s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7441s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7441s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7441s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7441s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7441s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7441s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7441s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7441s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7441s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7441s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7441s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7441s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7441s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7441s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7441s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7441s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7441s # #endif /* !G_ENABLE_DEBUG */ 7441s # 7441s # typedef struct 7441s # { 7441s # GDBusArgInfo parent_struct; 7441s # gboolean use_gvariant; 7441s # } _ExtendedGDBusArgInfo; 7441s # 7441s # typedef struct 7441s # { 7441s # GDBusMethodInfo parent_struct; 7441s # const gchar *signal_name; 7441s # gboolean pass_fdlist; 7441s # } _ExtendedGDBusMethodInfo; 7441s # 7441s # typedef struct 7441s # { 7441s # GDBusSignalInfo parent_struct; 7441s # const gchar *signal_name; 7441s # } _ExtendedGDBusSignalInfo; 7441s # 7441s # typedef struct 7441s # { 7441s # GDBusPropertyInfo parent_struct; 7441s # const gchar *hyphen_name; 7441s # guint use_gvariant : 1; 7441s # guint emits_changed_signal : 1; 7441s # } _ExtendedGDBusPropertyInfo; 7441s # 7441s # typedef struct 7441s # { 7441s # GDBusInterfaceInfo parent_struct; 7441s # const gchar *hyphen_name; 7441s # } _ExtendedGDBusInterfaceInfo; 7441s # 7441s # typedef struct 7441s # { 7441s # const _ExtendedGDBusPropertyInfo *info; 7441s # guint prop_id; 7441s # GValue orig_value; /* the value before the change */ 7441s # } ChangedProperty; 7441s # 7441s # static void 7441s # _changed_property_free (ChangedProperty *data) 7441s # { 7441s # g_value_unset (&data->orig_value); 7441s # g_free (data); 7441s # } 7441s # 7441s # static gboolean 7441s # _g_strv_equal0 (gchar **a, gchar **b) 7441s # { 7441s # gboolean ret = FALSE; 7441s # guint n; 7441s # if (a == NULL && b == NULL) 7441s # { 7441s # ret = TRUE; 7441s # goto out; 7441s # } 7441s # if (a == NULL || b == NULL) 7441s # goto out; 7441s # if (g_strv_length (a) != g_strv_length (b)) 7441s # goto out; 7441s # for (n = 0; a[n] != NULL; n++) 7441s # if (g_strcmp0 (a[n], b[n]) != 0) 7441s # goto out; 7441s # ret = TRUE; 7441s # out: 7441s # return ret; 7441s # } 7441s # 7441s # static gboolean 7441s # _g_variant_equal0 (GVariant *a, GVariant *b) 7441s # { 7441s # gboolean ret = FALSE; 7441s # if (a == NULL && b == NULL) 7441s # { 7441s # ret = TRUE; 7441s # goto out; 7441s # } 7441s # if (a == NULL || b == NULL) 7441s # goto out; 7441s # ret = g_variant_equal (a, b); 7441s # out: 7441s # return ret; 7441s # } 7441s # 7441s # G_GNUC_UNUSED static gboolean 7441s # _g_value_equal (const GValue *a, const GValue *b) 7441s # { 7441s # gboolean ret = FALSE; 7441s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7441s # switch (G_VALUE_TYPE (a)) 7441s # { 7441s # case G_TYPE_BOOLEAN: 7441s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7441s # break; 7441s # case G_TYPE_UCHAR: 7441s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7441s # break; 7441s # case G_TYPE_INT: 7441s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7441s # break; 7441s # case G_TYPE_UINT: 7441s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7441s # break; 7441s # case G_TYPE_INT64: 7441s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7441s # break; 7441s # case G_TYPE_UINT64: 7441s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7441s # break; 7441s # case G_TYPE_DOUBLE: 7441s # { 7441s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7441s # gdouble da = g_value_get_double (a); 7441s # gdouble db = g_value_get_double (b); 7441s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7441s # } 7441s # break; 7441s # case G_TYPE_STRING: 7441s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7441s # break; 7441s # case G_TYPE_VARIANT: 7441s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7441s # break; 7441s # default: 7441s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7441s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7441s # else 7441s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7441s # break; 7441s # } 7441s # return ret; 7441s # } 7441s # 7441s # static void 7441s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 7441s # GClosure *closure, 7441s # GValue *return_value, 7441s # unsigned int n_param_values, 7441s # const GValue *param_values, 7441s # void *invocation_hint G_GNUC_UNUSED, 7441s # void *marshal_data) 7441s # { 7441s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 7441s # (void *data1, 7441s # GDBusMethodInvocation *arg_method_invocation, 7441s # GUnixFDList *arg_fd_list, 7441s # const gchar *arg_greeting, 7441s # void *data2); 7441s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 7441s # GCClosure *cc = (GCClosure*) closure; 7441s # void *data1, *data2; 7441s # gboolean v_return; 7441s # 7441s # g_return_if_fail (return_value != NULL); 7441s # g_return_if_fail (n_param_values == 4); 7441s # 7441s # if (G_CCLOSURE_SWAP_DATA (closure)) 7441s # { 7441s # data1 = closure->data; 7441s # data2 = g_value_peek_pointer (param_values + 0); 7441s # } 7441s # else 7441s # { 7441s # data1 = g_value_peek_pointer (param_values + 0); 7441s # data2 = closure->data; 7441s # } 7441s # 7441s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 7441s # (marshal_data ? marshal_data : cc->callback); 7441s # 7441s # v_return = 7441s # callback (data1, 7441s # g_marshal_value_peek_object (param_values + 1), 7441s # g_marshal_value_peek_object (param_values + 2), 7441s # g_marshal_value_peek_string (param_values + 3), 7441s # data2); 7441s # 7441s # g_value_set_boolean (return_value, v_return); 7441s # } 7441s # 7441s # /* ------------------------------------------------------------------------ 7441s # * Code for interface test.FDPassing 7441s # * ------------------------------------------------------------------------ 7441s # */ 7441s # 7441s # /** 7441s # * SECTION:TestFDPassing 7441s # * @title: TestFDPassing 7441s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 7441s # * 7441s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 7441s # */ 7441s # 7441s # /* ---- Introspection data for test.FDPassing ---- */ 7441s # 7441s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 7441s # { 7441s # { 7441s # -1, 7441s # (gchar *) "greeting", 7441s # (gchar *) "s", 7441s # NULL 7441s # }, 7441s # FALSE 7441s # }; 7441s # 7441s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 7441s # { 7441s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 7441s # NULL 7441s # }; 7441s # 7441s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 7441s # { 7441s # { 7441s # -1, 7441s # (gchar *) "response", 7441s # (gchar *) "s", 7441s # NULL 7441s # }, 7441s # FALSE 7441s # }; 7441s # 7441s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 7441s # { 7441s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 7441s # NULL 7441s # }; 7441s # 7441s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 7441s # { 7441s # { 7441s # -1, 7441s # (gchar *) "HelloFD", 7441s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 7441s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 7441s # NULL 7441s # }, 7441s # "handle-hello-fd", 7441s # TRUE 7441s # }; 7441s # 7441s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 7441s # { 7441s # &_test_fdpassing_method_info_hello_fd.parent_struct, 7441s # NULL 7441s # }; 7441s # 7441s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 7441s # { 7441s # { 7441s # -1, 7441s # (gchar *) "test.FDPassing", 7441s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 7441s # NULL, 7441s # NULL, 7441s # NULL 7441s # }, 7441s # "test-fdpassing", 7441s # }; 7441s # 7441s # 7441s # /** 7441s # * test_fdpassing_interface_info: 7441s # * 7441s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 7441s # * 7441s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7441s # */ 7441s # GDBusInterfaceInfo * 7441s # test_fdpassing_interface_info (void) 7441s # { 7441s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_override_properties: 7441s # * @klass: The class structure for a #GObject derived class. 7441s # * @property_id_begin: The property id to assign to the first overridden property. 7441s # * 7441s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 7441s # * The properties are overridden in the order they are defined. 7441s # * 7441s # * Returns: The last property id. 7441s # */ 7441s # guint 7441s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7441s # { 7441s # return property_id_begin - 1; 7441s # } 7441s # 7441s # 7441s # inline static void 7441s # test_fdpassing_method_marshal_hello_fd ( 7441s # GClosure *closure, 7441s # GValue *return_value, 7441s # unsigned int n_param_values, 7441s # const GValue *param_values, 7441s # void *invocation_hint, 7441s # void *marshal_data) 7441s # { 7441s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 7441s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7441s # } 7441s # 7441s # 7441s # /** 7441s # * TestFDPassing: 7441s # * 7441s # * Abstract interface type for the D-Bus interface test.FDPassing. 7441s # */ 7441s # 7441s # /** 7441s # * TestFDPassingIface: 7441s # * @parent_iface: The parent interface. 7441s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 7441s # * 7441s # * Virtual table for the D-Bus interface test.FDPassing. 7441s # */ 7441s # 7441s # typedef TestFDPassingIface TestFDPassingInterface; 7441s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 7441s # 7441s # static void 7441s # test_fdpassing_default_init (TestFDPassingIface *iface) 7441s # { 7441s # /* GObject signals for incoming D-Bus method calls: */ 7441s # /** 7441s # * TestFDPassing::handle-hello-fd: 7441s # * @object: A #TestFDPassing. 7441s # * @invocation: A #GDBusMethodInvocation. 7441s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 7441s # * @arg_greeting: Argument passed by remote caller. 7441s # * 7441s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 7441s # * 7441s # * 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. 7441s # * 7441s # * 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. 7441s # */ 7441s # g_signal_new ("handle-hello-fd", 7441s # G_TYPE_FROM_INTERFACE (iface), 7441s # G_SIGNAL_RUN_LAST, 7441s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 7441s # g_signal_accumulator_true_handled, 7441s # NULL, 7441s # test_fdpassing_method_marshal_hello_fd, 7441s # G_TYPE_BOOLEAN, 7441s # 3, 7441s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 7441s # 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_call_hello_fd: 7441s # * @proxy: A #TestFDPassingProxy. 7441s # * @arg_greeting: Argument to pass with the method invocation. 7441s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 7441s # * @cancellable: (nullable): A #GCancellable or %NULL. 7441s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7441s # * @user_data: User data to pass to @callback. 7441s # * 7441s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 7441s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7441s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 7441s # * 7441s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 7441s # */ 7441s # void 7441s # test_fdpassing_call_hello_fd ( 7441s # TestFDPassing *proxy, 7441s # const gchar *arg_greeting, 7441s # GUnixFDList *fd_list, 7441s # GCancellable *cancellable, 7441s # GAsyncReadyCallback callback, 7441s # gpointer user_data) 7441s # { 7441s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 7441s # "HelloFD", 7441s # g_variant_new ("(s)", 7441s # arg_greeting), 7441s # G_DBUS_CALL_FLAGS_NONE, 7441s # -1, 7441s # fd_list, 7441s # cancellable, 7441s # callback, 7441s # user_data); 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_call_hello_fd_finish: 7441s # * @proxy: A #TestFDPassingProxy. 7441s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 7441s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 7441s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 7441s # * @error: Return location for error or %NULL. 7441s # * 7441s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 7441s # * 7441s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7441s # */ 7441s # gboolean 7441s # test_fdpassing_call_hello_fd_finish ( 7441s # TestFDPassing *proxy, 7441s # gchar **out_response, 7441s # GUnixFDList **out_fd_list, 7441s # GAsyncResult *res, 7441s # GError **error) 7441s # { 7441s # GVariant *_ret; 7441s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 7441s # if (_ret == NULL) 7441s # goto _out; 7441s # g_variant_get (_ret, 7441s # "(s)", 7441s # out_response); 7441s # g_variant_unref (_ret); 7441s # _out: 7441s # return _ret != NULL; 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_call_hello_fd_sync: 7441s # * @proxy: A #TestFDPassingProxy. 7441s # * @arg_greeting: Argument to pass with the method invocation. 7441s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 7441s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 7441s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 7441s # * @cancellable: (nullable): A #GCancellable or %NULL. 7441s # * @error: Return location for error or %NULL. 7441s # * 7441s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7441s # * 7441s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 7441s # * 7441s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7441s # */ 7441s # gboolean 7441s # test_fdpassing_call_hello_fd_sync ( 7441s # TestFDPassing *proxy, 7441s # const gchar *arg_greeting, 7441s # GUnixFDList *fd_list, 7441s # gchar **out_response, 7441s # GUnixFDList **out_fd_list, 7441s # GCancellable *cancellable, 7441s # GError **error) 7441s # { 7441s # GVariant *_ret; 7441s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 7441s # "HelloFD", 7441s # g_variant_new ("(s)", 7441s # arg_greeting), 7441s # G_DBUS_CALL_FLAGS_NONE, 7441s # -1, 7441s # fd_list, 7441s # out_fd_list, 7441s # cancellable, 7441s # error); 7441s # if (_ret == NULL) 7441s # goto _out; 7441s # g_variant_get (_ret, 7441s # "(s)", 7441s # out_response); 7441s # g_variant_unref (_ret); 7441s # _out: 7441s # return _ret != NULL; 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_complete_hello_fd: 7441s # * @object: A #TestFDPassing. 7441s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7441s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 7441s # * @response: Parameter to return. 7441s # * 7441s # * 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. 7441s # * 7441s # * This method will free @invocation, you cannot use it afterwards. 7441s # */ 7441s # void 7441s # test_fdpassing_complete_hello_fd ( 7441s # TestFDPassing *object G_GNUC_UNUSED, 7441s # GDBusMethodInvocation *invocation, 7441s # GUnixFDList *fd_list, 7441s # const gchar *response) 7441s # { 7441s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 7441s # g_variant_new ("(s)", 7441s # response), 7441s # fd_list); 7441s # } 7441s # 7441s # /* ------------------------------------------------------------------------ */ 7441s # 7441s # /** 7441s # * TestFDPassingProxy: 7441s # * 7441s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 7441s # */ 7441s # 7441s # /** 7441s # * TestFDPassingProxyClass: 7441s # * @parent_class: The parent class. 7441s # * 7441s # * Class structure for #TestFDPassingProxy. 7441s # */ 7441s # 7441s # struct _TestFDPassingProxyPrivate 7441s # { 7441s # GData *qdata; 7441s # }; 7441s # 7441s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 7441s # 7441s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7441s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 7441s # G_ADD_PRIVATE (TestFDPassingProxy) 7441s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 7441s # 7441s # #else 7441s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 7441s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 7441s # 7441s # #endif 7441s # static void 7441s # test_fdpassing_proxy_finalize (GObject *object) 7441s # { 7441s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 7441s # g_datalist_clear (&proxy->priv->qdata); 7441s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 7441s # guint prop_id G_GNUC_UNUSED, 7441s # GValue *value G_GNUC_UNUSED, 7441s # GParamSpec *pspec G_GNUC_UNUSED) 7441s # { 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 7441s # guint prop_id G_GNUC_UNUSED, 7441s # const GValue *value G_GNUC_UNUSED, 7441s # GParamSpec *pspec G_GNUC_UNUSED) 7441s # { 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 7441s # const gchar *sender_name G_GNUC_UNUSED, 7441s # const gchar *signal_name, 7441s # GVariant *parameters) 7441s # { 7441s # _ExtendedGDBusSignalInfo *info; 7441s # GVariantIter iter; 7441s # GVariant *child; 7441s # GValue *paramv; 7441s # gsize num_params; 7441s # gsize n; 7441s # guint signal_id; 7441s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 7441s # if (info == NULL) 7441s # return; 7441s # num_params = g_variant_n_children (parameters); 7441s # paramv = g_new0 (GValue, num_params + 1); 7441s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 7441s # g_value_set_object (¶mv[0], proxy); 7441s # g_variant_iter_init (&iter, parameters); 7441s # n = 1; 7441s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7441s # { 7441s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7441s # if (arg_info->use_gvariant) 7441s # { 7441s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7441s # g_value_set_variant (¶mv[n], child); 7441s # n++; 7441s # } 7441s # else 7441s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7441s # g_variant_unref (child); 7441s # } 7441s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 7441s # g_signal_emitv (paramv, signal_id, 0, NULL); 7441s # for (n = 0; n < num_params + 1; n++) 7441s # g_value_unset (¶mv[n]); 7441s # g_free (paramv); 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 7441s # GVariant *changed_properties, 7441s # const gchar *const *invalidated_properties) 7441s # { 7441s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 7441s # guint n; 7441s # const gchar *key; 7441s # GVariantIter *iter; 7441s # _ExtendedGDBusPropertyInfo *info; 7441s # g_variant_get (changed_properties, "a{sv}", &iter); 7441s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7441s # { 7441s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 7441s # g_datalist_remove_data (&proxy->priv->qdata, key); 7441s # if (info != NULL) 7441s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7441s # } 7441s # g_variant_iter_free (iter); 7441s # for (n = 0; invalidated_properties[n] != NULL; n++) 7441s # { 7441s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 7441s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7441s # if (info != NULL) 7441s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7441s # } 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 7441s # { 7441s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7441s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 7441s # #else 7441s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 7441s # #endif 7441s # 7441s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 7441s # { 7441s # GObjectClass *gobject_class; 7441s # GDBusProxyClass *proxy_class; 7441s # 7441s # gobject_class = G_OBJECT_CLASS (klass); 7441s # gobject_class->finalize = test_fdpassing_proxy_finalize; 7441s # gobject_class->get_property = test_fdpassing_proxy_get_property; 7441s # gobject_class->set_property = test_fdpassing_proxy_set_property; 7441s # 7441s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7441s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 7441s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 7441s # 7441s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7441s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 7441s # #endif 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 7441s # { 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_proxy_new: 7441s # * @connection: A #GDBusConnection. 7441s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7441s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7441s # * @object_path: An object path. 7441s # * @cancellable: (nullable): A #GCancellable or %NULL. 7441s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7441s # * @user_data: User data to pass to @callback. 7441s # * 7441s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 7441s # * 7441s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7441s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 7441s # * 7441s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 7441s # */ 7441s # void 7441s # test_fdpassing_proxy_new ( 7441s # GDBusConnection *connection, 7441s # GDBusProxyFlags flags, 7441s # const gchar *name, 7441s # const gchar *object_path, 7441s # GCancellable *cancellable, 7441s # GAsyncReadyCallback callback, 7441s # gpointer user_data) 7441s # { 7441s # 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); 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_proxy_new_finish: 7441s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 7441s # * @error: Return location for error or %NULL 7441s # * 7441s # * Finishes an operation started with test_fdpassing_proxy_new(). 7441s # * 7441s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 7441s # */ 7441s # TestFDPassing * 7441s # test_fdpassing_proxy_new_finish ( 7441s # GAsyncResult *res, 7441s # GError **error) 7441s # { 7441s # GObject *ret; 7441s # GObject *source_object; 7441s # source_object = g_async_result_get_source_object (res); 7441s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7441s # g_object_unref (source_object); 7441s # if (ret != NULL) 7441s # return TEST_FDPASSING (ret); 7441s # else 7441s # return NULL; 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_proxy_new_sync: 7441s # * @connection: A #GDBusConnection. 7441s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7441s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7441s # * @object_path: An object path. 7441s # * @cancellable: (nullable): A #GCancellable or %NULL. 7441s # * @error: Return location for error or %NULL 7441s # * 7441s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 7441s # * 7441s # * The calling thread is blocked until a reply is received. 7441s # * 7441s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 7441s # * 7441s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 7441s # */ 7441s # TestFDPassing * 7441s # test_fdpassing_proxy_new_sync ( 7441s # GDBusConnection *connection, 7441s # GDBusProxyFlags flags, 7441s # const gchar *name, 7441s # const gchar *object_path, 7441s # GCancellable *cancellable, 7441s # GError **error) 7441s # { 7441s # GInitable *ret; 7441s # 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); 7441s # if (ret != NULL) 7441s # return TEST_FDPASSING (ret); 7441s # else 7441s # return NULL; 7441s # } 7441s # 7441s # 7441s # /** 7441s # * test_fdpassing_proxy_new_for_bus: 7441s # * @bus_type: A #GBusType. 7441s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7441s # * @name: A bus name (well-known or unique). 7441s # * @object_path: An object path. 7441s # * @cancellable: (nullable): A #GCancellable or %NULL. 7441s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7441s # * @user_data: User data to pass to @callback. 7441s # * 7441s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7441s # * 7441s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7441s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 7441s # * 7441s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7441s # */ 7441s # void 7441s # test_fdpassing_proxy_new_for_bus ( 7441s # GBusType bus_type, 7441s # GDBusProxyFlags flags, 7441s # const gchar *name, 7441s # const gchar *object_path, 7441s # GCancellable *cancellable, 7441s # GAsyncReadyCallback callback, 7441s # gpointer user_data) 7441s # { 7441s # 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); 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_proxy_new_for_bus_finish: 7441s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 7441s # * @error: Return location for error or %NULL 7441s # * 7441s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 7441s # * 7441s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 7441s # */ 7441s # TestFDPassing * 7441s # test_fdpassing_proxy_new_for_bus_finish ( 7441s # GAsyncResult *res, 7441s # GError **error) 7441s # { 7441s # GObject *ret; 7441s # GObject *source_object; 7441s # source_object = g_async_result_get_source_object (res); 7441s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7441s # g_object_unref (source_object); 7441s # if (ret != NULL) 7441s # return TEST_FDPASSING (ret); 7441s # else 7441s # return NULL; 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_proxy_new_for_bus_sync: 7441s # * @bus_type: A #GBusType. 7441s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7441s # * @name: A bus name (well-known or unique). 7441s # * @object_path: An object path. 7441s # * @cancellable: (nullable): A #GCancellable or %NULL. 7441s # * @error: Return location for error or %NULL 7441s # * 7441s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7441s # * 7441s # * The calling thread is blocked until a reply is received. 7441s # * 7441s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 7441s # * 7441s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 7441s # */ 7441s # TestFDPassing * 7441s # test_fdpassing_proxy_new_for_bus_sync ( 7441s # GBusType bus_type, 7441s # GDBusProxyFlags flags, 7441s # const gchar *name, 7441s # const gchar *object_path, 7441s # GCancellable *cancellable, 7441s # GError **error) 7441s # { 7441s # GInitable *ret; 7441s # 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); 7441s # if (ret != NULL) 7441s # return TEST_FDPASSING (ret); 7441s # else 7441s # return NULL; 7441s # } 7441s # 7441s # 7441s # /* ------------------------------------------------------------------------ */ 7441s # 7441s # /** 7441s # * TestFDPassingSkeleton: 7441s # * 7441s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 7441s # */ 7441s # 7441s # /** 7441s # * TestFDPassingSkeletonClass: 7441s # * @parent_class: The parent class. 7441s # * 7441s # * Class structure for #TestFDPassingSkeleton. 7441s # */ 7441s # 7441s # struct _TestFDPassingSkeletonPrivate 7441s # { 7441s # GValue *properties; 7441s # GList *changed_properties; 7441s # GSource *changed_properties_idle_source; 7441s # GMainContext *context; 7441s # GMutex lock; 7441s # }; 7441s # 7441s # static void 7441s # _test_fdpassing_skeleton_handle_method_call ( 7441s # GDBusConnection *connection G_GNUC_UNUSED, 7441s # const gchar *sender G_GNUC_UNUSED, 7441s # const gchar *object_path G_GNUC_UNUSED, 7441s # const gchar *interface_name, 7441s # const gchar *method_name, 7441s # GVariant *parameters, 7441s # GDBusMethodInvocation *invocation, 7441s # gpointer user_data) 7441s # { 7441s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 7441s # _ExtendedGDBusMethodInfo *info; 7441s # GVariantIter iter; 7441s # GVariant *child; 7441s # GValue *paramv; 7441s # gsize num_params; 7441s # guint num_extra; 7441s # gsize n; 7441s # guint signal_id; 7441s # GValue return_value = G_VALUE_INIT; 7441s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7441s # g_assert (info != NULL); 7441s # num_params = g_variant_n_children (parameters); 7441s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7441s # n = 0; 7441s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 7441s # g_value_set_object (¶mv[n++], skeleton); 7441s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7441s # g_value_set_object (¶mv[n++], invocation); 7441s # if (info->pass_fdlist) 7441s # { 7441s # #ifdef G_OS_UNIX 7441s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7441s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7441s # #else 7441s # g_assert_not_reached (); 7441s # #endif 7441s # } 7441s # g_variant_iter_init (&iter, parameters); 7441s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7441s # { 7441s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7441s # if (arg_info->use_gvariant) 7441s # { 7441s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7441s # g_value_set_variant (¶mv[n], child); 7441s # n++; 7441s # } 7441s # else 7441s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7441s # g_variant_unref (child); 7441s # } 7441s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 7441s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7441s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7441s # if (!g_value_get_boolean (&return_value)) 7441s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7441s # g_value_unset (&return_value); 7441s # for (n = 0; n < num_params + num_extra; n++) 7441s # g_value_unset (¶mv[n]); 7441s # g_free (paramv); 7441s # } 7441s # 7441s # static GVariant * 7441s # _test_fdpassing_skeleton_handle_get_property ( 7441s # GDBusConnection *connection G_GNUC_UNUSED, 7441s # const gchar *sender G_GNUC_UNUSED, 7441s # const gchar *object_path G_GNUC_UNUSED, 7441s # const gchar *interface_name G_GNUC_UNUSED, 7441s # const gchar *property_name, 7441s # GError **error, 7441s # gpointer user_data) 7441s # { 7441s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 7441s # GValue value = G_VALUE_INIT; 7441s # GParamSpec *pspec; 7441s # _ExtendedGDBusPropertyInfo *info; 7441s # GVariant *ret; 7441s # ret = NULL; 7441s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 7441s # g_assert (info != NULL); 7441s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7441s # if (pspec == NULL) 7441s # { 7441s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7441s # } 7441s # else 7441s # { 7441s # g_value_init (&value, pspec->value_type); 7441s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7441s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7441s # g_value_unset (&value); 7441s # } 7441s # return ret; 7441s # } 7441s # 7441s # static gboolean 7441s # _test_fdpassing_skeleton_handle_set_property ( 7441s # GDBusConnection *connection G_GNUC_UNUSED, 7441s # const gchar *sender G_GNUC_UNUSED, 7441s # const gchar *object_path G_GNUC_UNUSED, 7441s # const gchar *interface_name G_GNUC_UNUSED, 7441s # const gchar *property_name, 7441s # GVariant *variant, 7441s # GError **error, 7441s # gpointer user_data) 7441s # { 7441s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 7441s # GValue value = G_VALUE_INIT; 7441s # GParamSpec *pspec; 7441s # _ExtendedGDBusPropertyInfo *info; 7441s # gboolean ret; 7441s # ret = FALSE; 7441s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 7441s # g_assert (info != NULL); 7441s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7441s # if (pspec == NULL) 7441s # { 7441s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7441s # } 7441s # else 7441s # { 7441s # if (info->use_gvariant) 7441s # g_value_set_variant (&value, variant); 7441s # else 7441s # g_dbus_gvariant_to_gvalue (variant, &value); 7441s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7441s # g_value_unset (&value); 7441s # ret = TRUE; 7441s # } 7441s # return ret; 7441s # } 7441s # 7441s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 7441s # { 7441s # _test_fdpassing_skeleton_handle_method_call, 7441s # _test_fdpassing_skeleton_handle_get_property, 7441s # _test_fdpassing_skeleton_handle_set_property, 7441s # {NULL} 7441s # }; 7441s # 7441s # static GDBusInterfaceInfo * 7441s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7441s # { 7441s # return test_fdpassing_interface_info (); 7441s # } 7441s # 7441s # static GDBusInterfaceVTable * 7441s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7441s # { 7441s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 7441s # } 7441s # 7441s # static GVariant * 7441s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7441s # { 7441s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 7441s # 7441s # GVariantBuilder builder; 7441s # guint n; 7441s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7441s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7441s # #else 7441s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7441s # #endif 7441s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 7441s # goto out; 7441s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 7441s # { 7441s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 7441s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7441s # { 7441s # GVariant *value; 7441s # 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); 7441s # if (value != NULL) 7441s # { 7441s # g_variant_take_ref (value); 7441s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7441s # g_variant_unref (value); 7441s # } 7441s # } 7441s # } 7441s # out: 7441s # return g_variant_builder_end (&builder); 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7441s # { 7441s # } 7441s # 7441s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 7441s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7441s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7441s # G_ADD_PRIVATE (TestFDPassingSkeleton) 7441s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 7441s # 7441s # #else 7441s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7441s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 7441s # 7441s # #endif 7441s # static void 7441s # test_fdpassing_skeleton_finalize (GObject *object) 7441s # { 7441s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 7441s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7441s # if (skeleton->priv->changed_properties_idle_source != NULL) 7441s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7441s # g_main_context_unref (skeleton->priv->context); 7441s # g_mutex_clear (&skeleton->priv->lock); 7441s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 7441s # { 7441s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7441s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 7441s # #else 7441s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 7441s # #endif 7441s # 7441s # g_mutex_init (&skeleton->priv->lock); 7441s # skeleton->priv->context = g_main_context_ref_thread_default (); 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 7441s # { 7441s # GObjectClass *gobject_class; 7441s # GDBusInterfaceSkeletonClass *skeleton_class; 7441s # 7441s # gobject_class = G_OBJECT_CLASS (klass); 7441s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 7441s # 7441s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7441s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 7441s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 7441s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 7441s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 7441s # 7441s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7441s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 7441s # #endif 7441s # } 7441s # 7441s # static void 7441s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 7441s # { 7441s # } 7441s # 7441s # /** 7441s # * test_fdpassing_skeleton_new: 7441s # * 7441s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 7441s # * 7441s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 7441s # */ 7441s # TestFDPassing * 7441s # test_fdpassing_skeleton_new (void) 7441s # { 7441s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 7441s # } 7441s # Error: 7442s ok 15 __main__.TestCodegen.test_generate_rst 7442s # gdbus-codegen: /usr/bin/gdbus-codegen 7442s # tmpdir: /tmp/tmp_l2uoksr 7442s # /tmp/tmp_l2uoksr/tmp39tkjja1.xml: 7442s # 7442s # 7442s # 7442s # 7442s # 7442s # 7442s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_l2uoksr/tmp39tkjja1.xml', '--generate-rst', 'test'] 7442s # Return code: 0 7442s # Output: 7442s # 7442s # Error: 7443s ok 16 __main__.TestCodegen.test_generate_rst_method 7443s # gdbus-codegen: /usr/bin/gdbus-codegen 7443s # tmpdir: /tmp/tmp1imz1nxe 7443s # /tmp/tmp1imz1nxe/tmpeb83xk3v.xml: 7443s # 7443s # 7443s # 7443s # 7443s # 7443s # 7443s # 7443s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1imz1nxe/tmpeb83xk3v.xml', '--generate-rst', 'test'] 7443s # Return code: 0 7443s # Output: 7443s # 7443s # Error: 7444s # Executing: glib/codegen.py.test 7444s ok 17 __main__.TestCodegen.test_generate_rst_property 7444s # gdbus-codegen: /usr/bin/gdbus-codegen 7444s # tmpdir: /tmp/tmp3375tyf9 7444s # /tmp/tmp3375tyf9/tmpy_v7vocx.xml: 7444s # 7444s # 7444s # 7444s # 7444s # 7444s # 7444s # 7444s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3375tyf9/tmpy_v7vocx.xml', '--generate-rst', 'test'] 7444s # Return code: 0 7444s # Output: 7444s # 7444s # Error: 7446s ok 18 __main__.TestCodegen.test_generate_rst_signal 7446s # gdbus-codegen: /usr/bin/gdbus-codegen 7446s # tmpdir: /tmp/tmpnswsw5r6 7446s # /tmp/tmpnswsw5r6/tmpseprfcas.xml: 7446s # 7446s # 7446s # 7446s # 7446s # 7446s # 7446s # 7446s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpnswsw5r6/tmpseprfcas.xml', '--generate-rst', 'test'] 7446s # Return code: 0 7446s # Output: 7446s # 7446s # Error: 7447s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 7447s # gdbus-codegen: /usr/bin/gdbus-codegen 7447s # tmpdir: /tmp/tmpbc7c2rqc 7447s # /tmp/tmpbc7c2rqc/tmpsfkwhrsu.xml: 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # 7447s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpbc7c2rqc/tmpsfkwhrsu.xml', '--output', '-', '--body'] 7447s # Return code: 0 7447s # Output: 7447s # /* 7447s # * This file is generated by gdbus-codegen, do not modify it. 7447s # * 7447s # * The license of this code is the same as for the D-Bus interface description 7447s # * it was derived from. Note that it links to GLib, so must comply with the 7447s # * LGPL linking clauses. 7447s # */ 7447s # 7447s # #ifdef HAVE_CONFIG_H 7447s # # include "config.h" 7447s # #endif 7447s # 7447s # #include 7447s # #ifdef G_OS_UNIX 7447s # # include 7447s # #endif 7447s # 7447s # #ifdef G_ENABLE_DEBUG 7447s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7447s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7447s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7447s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7447s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7447s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7447s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7447s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7447s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7447s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7447s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7447s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7447s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7447s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7447s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7447s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7447s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7447s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7447s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7447s # #else /* !G_ENABLE_DEBUG */ 7447s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7447s # * Do not access GValues directly in your code. Instead, use the 7447s # * g_value_get_*() functions 7447s # */ 7447s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7447s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7447s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7447s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7447s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7447s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7447s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7447s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7447s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7447s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7447s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7447s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7447s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7447s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7447s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7447s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7447s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7447s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7447s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7447s # #endif /* !G_ENABLE_DEBUG */ 7447s # 7447s # typedef struct 7447s # { 7447s # GDBusArgInfo parent_struct; 7447s # gboolean use_gvariant; 7447s # } _ExtendedGDBusArgInfo; 7447s # 7447s # typedef struct 7447s # { 7447s # GDBusMethodInfo parent_struct; 7447s # const gchar *signal_name; 7447s # gboolean pass_fdlist; 7447s # } _ExtendedGDBusMethodInfo; 7447s # 7447s # typedef struct 7447s # { 7447s # GDBusSignalInfo parent_struct; 7447s # const gchar *signal_name; 7447s # } _ExtendedGDBusSignalInfo; 7447s # 7447s # typedef struct 7447s # { 7447s # GDBusPropertyInfo parent_struct; 7447s # const gchar *hyphen_name; 7447s # guint use_gvariant : 1; 7447s # guint emits_changed_signal : 1; 7447s # } _ExtendedGDBusPropertyInfo; 7447s # 7447s # typedef struct 7447s # { 7447s # GDBusInterfaceInfo parent_struct; 7447s # const gchar *hyphen_name; 7447s # } _ExtendedGDBusInterfaceInfo; 7447s # 7447s # typedef struct 7447s # { 7447s # const _ExtendedGDBusPropertyInfo *info; 7447s # guint prop_id; 7447s # GValue orig_value; /* the value before the change */ 7447s # } ChangedProperty; 7447s # 7447s # static void 7447s # _changed_property_free (ChangedProperty *data) 7447s # { 7447s # g_value_unset (&data->orig_value); 7447s # g_free (data); 7447s # } 7447s # 7447s # static gboolean 7447s # _g_strv_equal0 (gchar **a, gchar **b) 7447s # { 7447s # gboolean ret = FALSE; 7447s # guint n; 7447s # if (a == NULL && b == NULL) 7447s # { 7447s # ret = TRUE; 7447s # goto out; 7447s # } 7447s # if (a == NULL || b == NULL) 7447s # goto out; 7447s # if (g_strv_length (a) != g_strv_length (b)) 7447s # goto out; 7447s # for (n = 0; a[n] != NULL; n++) 7447s # if (g_strcmp0 (a[n], b[n]) != 0) 7447s # goto out; 7447s # ret = TRUE; 7447s # out: 7447s # return ret; 7447s # } 7447s # 7447s # static gboolean 7447s # _g_variant_equal0 (GVariant *a, GVariant *b) 7447s # { 7447s # gboolean ret = FALSE; 7447s # if (a == NULL && b == NULL) 7447s # { 7447s # ret = TRUE; 7447s # goto out; 7447s # } 7447s # if (a == NULL || b == NULL) 7447s # goto out; 7447s # ret = g_variant_equal (a, b); 7447s # out: 7447s # return ret; 7447s # } 7447s # 7447s # G_GNUC_UNUSED static gboolean 7447s # _g_value_equal (const GValue *a, const GValue *b) 7447s # { 7447s # gboolean ret = FALSE; 7447s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7447s # switch (G_VALUE_TYPE (a)) 7447s # { 7447s # case G_TYPE_BOOLEAN: 7447s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7447s # break; 7447s # case G_TYPE_UCHAR: 7447s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7447s # break; 7447s # case G_TYPE_INT: 7447s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7447s # break; 7447s # case G_TYPE_UINT: 7447s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7447s # break; 7447s # case G_TYPE_INT64: 7447s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7447s # break; 7447s # case G_TYPE_UINT64: 7447s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7447s # break; 7447s # case G_TYPE_DOUBLE: 7447s # { 7447s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7447s # gdouble da = g_value_get_double (a); 7447s # gdouble db = g_value_get_double (b); 7447s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7447s # } 7447s # break; 7447s # case G_TYPE_STRING: 7447s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7447s # break; 7447s # case G_TYPE_VARIANT: 7447s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7447s # break; 7447s # default: 7447s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7447s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7447s # else 7447s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7447s # break; 7447s # } 7447s # return ret; 7447s # } 7447s # 7447s # static void 7447s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 7447s # GClosure *closure, 7447s # GValue *return_value G_GNUC_UNUSED, 7447s # unsigned int n_param_values, 7447s # const GValue *param_values, 7447s # void *invocation_hint G_GNUC_UNUSED, 7447s # void *marshal_data) 7447s # { 7447s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 7447s # (void *data1, 7447s # gboolean arg_an_b, 7447s # guchar arg_an_y, 7447s # gint16 arg_an_n, 7447s # guint16 arg_an_q, 7447s # gint arg_an_i, 7447s # guint arg_an_u, 7447s # gint64 arg_an_x, 7447s # guint64 arg_an_t, 7447s # gdouble arg_an_d, 7447s # const gchar *arg_an_s, 7447s # const gchar *arg_an_o, 7447s # const gchar *arg_an_g, 7447s # GVariant *arg_an_h, 7447s # const gchar *arg_an_ay, 7447s # const gchar *const *arg_an_as, 7447s # const gchar *const *arg_an_ao, 7447s # const gchar *const *arg_an_aay, 7447s # GVariant *arg_an_asv, 7447s # void *data2); 7447s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 7447s # GCClosure *cc = (GCClosure*) closure; 7447s # void *data1, *data2; 7447s # 7447s # g_return_if_fail (n_param_values == 19); 7447s # 7447s # if (G_CCLOSURE_SWAP_DATA (closure)) 7447s # { 7447s # data1 = closure->data; 7447s # data2 = g_value_peek_pointer (param_values + 0); 7447s # } 7447s # else 7447s # { 7447s # data1 = g_value_peek_pointer (param_values + 0); 7447s # data2 = closure->data; 7447s # } 7447s # 7447s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 7447s # (marshal_data ? marshal_data : cc->callback); 7447s # 7447s # callback (data1, 7447s # g_marshal_value_peek_boolean (param_values + 1), 7447s # g_marshal_value_peek_uchar (param_values + 2), 7447s # g_marshal_value_peek_int (param_values + 3), 7447s # g_marshal_value_peek_uint (param_values + 4), 7447s # g_marshal_value_peek_int (param_values + 5), 7447s # g_marshal_value_peek_uint (param_values + 6), 7447s # g_marshal_value_peek_int64 (param_values + 7), 7447s # g_marshal_value_peek_uint64 (param_values + 8), 7447s # g_marshal_value_peek_double (param_values + 9), 7447s # g_marshal_value_peek_string (param_values + 10), 7447s # g_marshal_value_peek_string (param_values + 11), 7447s # g_marshal_value_peek_string (param_values + 12), 7447s # g_marshal_value_peek_variant (param_values + 13), 7447s # g_marshal_value_peek_string (param_values + 14), 7447s # g_marshal_value_peek_boxed (param_values + 15), 7447s # g_marshal_value_peek_boxed (param_values + 16), 7447s # g_marshal_value_peek_boxed (param_values + 17), 7447s # g_marshal_value_peek_variant (param_values + 18), 7447s # data2); 7447s # } 7447s # 7447s # /* ------------------------------------------------------------------------ 7447s # * Code for interface org.project.SignalingIface 7447s # * ------------------------------------------------------------------------ 7447s # */ 7447s # 7447s # /** 7447s # * SECTION:OrgProjectSignalingIface 7447s # * @title: OrgProjectSignalingIface 7447s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7447s # * 7447s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7447s # */ 7447s # 7447s # enum 7447s # { 7447s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 7447s # }; 7447s # 7447s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 7447s # 7447s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_b", 7447s # (gchar *) "b", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_y", 7447s # (gchar *) "y", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_n", 7447s # (gchar *) "n", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_q", 7447s # (gchar *) "q", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_i", 7447s # (gchar *) "i", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_u", 7447s # (gchar *) "u", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_x", 7447s # (gchar *) "x", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_t", 7447s # (gchar *) "t", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_d", 7447s # (gchar *) "d", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_s", 7447s # (gchar *) "s", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_o", 7447s # (gchar *) "o", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_g", 7447s # (gchar *) "g", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_h", 7447s # (gchar *) "h", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_ay", 7447s # (gchar *) "ay", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_as", 7447s # (gchar *) "as", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_ao", 7447s # (gchar *) "ao", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_aay", 7447s # (gchar *) "aay", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "an_asv", 7447s # (gchar *) "a{sv}", 7447s # NULL 7447s # }, 7447s # FALSE 7447s # }; 7447s # 7447s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 7447s # { 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 7447s # NULL 7447s # }; 7447s # 7447s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "SignalWithManyArgs", 7447s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 7447s # NULL 7447s # }, 7447s # "signal-with-many-args" 7447s # }; 7447s # 7447s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7447s # { 7447s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 7447s # NULL 7447s # }; 7447s # 7447s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7447s # { 7447s # { 7447s # -1, 7447s # (gchar *) "org.project.SignalingIface", 7447s # NULL, 7447s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7447s # NULL, 7447s # NULL 7447s # }, 7447s # "org-project-signaling-iface", 7447s # }; 7447s # 7447s # 7447s # /** 7447s # * org_project_signaling_iface_interface_info: 7447s # * 7447s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7447s # * 7447s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7447s # */ 7447s # GDBusInterfaceInfo * 7447s # org_project_signaling_iface_interface_info (void) 7447s # { 7447s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_override_properties: 7447s # * @klass: The class structure for a #GObject derived class. 7447s # * @property_id_begin: The property id to assign to the first overridden property. 7447s # * 7447s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7447s # * The properties are overridden in the order they are defined. 7447s # * 7447s # * Returns: The last property id. 7447s # */ 7447s # guint 7447s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7447s # { 7447s # return property_id_begin - 1; 7447s # } 7447s # 7447s # 7447s # inline static void 7447s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 7447s # GClosure *closure, 7447s # GValue *return_value, 7447s # unsigned int n_param_values, 7447s # const GValue *param_values, 7447s # void *invocation_hint, 7447s # void *marshal_data) 7447s # { 7447s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 7447s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7447s # } 7447s # 7447s # 7447s # /** 7447s # * OrgProjectSignalingIface: 7447s # * 7447s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7447s # */ 7447s # 7447s # /** 7447s # * OrgProjectSignalingIfaceIface: 7447s # * @parent_iface: The parent interface. 7447s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 7447s # * 7447s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7447s # */ 7447s # 7447s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7447s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7447s # 7447s # static void 7447s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7447s # { 7447s # /* GObject signals for received D-Bus signals: */ 7447s # /** 7447s # * OrgProjectSignalingIface::signal-with-many-args: 7447s # * @object: A #OrgProjectSignalingIface. 7447s # * @arg_an_b: Argument. 7447s # * @arg_an_y: Argument. 7447s # * @arg_an_n: Argument. 7447s # * @arg_an_q: Argument. 7447s # * @arg_an_i: Argument. 7447s # * @arg_an_u: Argument. 7447s # * @arg_an_x: Argument. 7447s # * @arg_an_t: Argument. 7447s # * @arg_an_d: Argument. 7447s # * @arg_an_s: Argument. 7447s # * @arg_an_o: Argument. 7447s # * @arg_an_g: Argument. 7447s # * @arg_an_h: Argument. 7447s # * @arg_an_ay: Argument. 7447s # * @arg_an_as: Argument. 7447s # * @arg_an_ao: Argument. 7447s # * @arg_an_aay: Argument. 7447s # * @arg_an_asv: Argument. 7447s # * 7447s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 7447s # * 7447s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7447s # */ 7447s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 7447s # g_signal_new ("signal-with-many-args", 7447s # G_TYPE_FROM_INTERFACE (iface), 7447s # G_SIGNAL_RUN_LAST, 7447s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 7447s # NULL, 7447s # NULL, 7447s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 7447s # G_TYPE_NONE, 7447s # 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); 7447s # 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_emit_signal_with_many_args: 7447s # * @object: A #OrgProjectSignalingIface. 7447s # * @arg_an_b: Argument to pass with the signal. 7447s # * @arg_an_y: Argument to pass with the signal. 7447s # * @arg_an_n: Argument to pass with the signal. 7447s # * @arg_an_q: Argument to pass with the signal. 7447s # * @arg_an_i: Argument to pass with the signal. 7447s # * @arg_an_u: Argument to pass with the signal. 7447s # * @arg_an_x: Argument to pass with the signal. 7447s # * @arg_an_t: Argument to pass with the signal. 7447s # * @arg_an_d: Argument to pass with the signal. 7447s # * @arg_an_s: Argument to pass with the signal. 7447s # * @arg_an_o: Argument to pass with the signal. 7447s # * @arg_an_g: Argument to pass with the signal. 7447s # * @arg_an_h: Argument to pass with the signal. 7447s # * @arg_an_ay: Argument to pass with the signal. 7447s # * @arg_an_as: Argument to pass with the signal. 7447s # * @arg_an_ao: Argument to pass with the signal. 7447s # * @arg_an_aay: Argument to pass with the signal. 7447s # * @arg_an_asv: Argument to pass with the signal. 7447s # * 7447s # * Emits the "SignalWithManyArgs" D-Bus signal. 7447s # */ 7447s # void 7447s # org_project_signaling_iface_emit_signal_with_many_args ( 7447s # OrgProjectSignalingIface *object, 7447s # gboolean arg_an_b, 7447s # guchar arg_an_y, 7447s # gint16 arg_an_n, 7447s # guint16 arg_an_q, 7447s # gint arg_an_i, 7447s # guint arg_an_u, 7447s # gint64 arg_an_x, 7447s # guint64 arg_an_t, 7447s # gdouble arg_an_d, 7447s # const gchar *arg_an_s, 7447s # const gchar *arg_an_o, 7447s # const gchar *arg_an_g, 7447s # GVariant *arg_an_h, 7447s # const gchar *arg_an_ay, 7447s # const gchar *const *arg_an_as, 7447s # const gchar *const *arg_an_ao, 7447s # const gchar *const *arg_an_aay, 7447s # GVariant *arg_an_asv) 7447s # { 7447s # 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); 7447s # } 7447s # 7447s # /* ------------------------------------------------------------------------ */ 7447s # 7447s # /** 7447s # * OrgProjectSignalingIfaceProxy: 7447s # * 7447s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7447s # */ 7447s # 7447s # /** 7447s # * OrgProjectSignalingIfaceProxyClass: 7447s # * @parent_class: The parent class. 7447s # * 7447s # * Class structure for #OrgProjectSignalingIfaceProxy. 7447s # */ 7447s # 7447s # struct _OrgProjectSignalingIfaceProxyPrivate 7447s # { 7447s # GData *qdata; 7447s # }; 7447s # 7447s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7447s # 7447s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7447s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7447s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7447s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7447s # 7447s # #else 7447s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7447s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7447s # 7447s # #endif 7447s # static void 7447s # org_project_signaling_iface_proxy_finalize (GObject *object) 7447s # { 7447s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7447s # g_datalist_clear (&proxy->priv->qdata); 7447s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7447s # guint prop_id G_GNUC_UNUSED, 7447s # GValue *value G_GNUC_UNUSED, 7447s # GParamSpec *pspec G_GNUC_UNUSED) 7447s # { 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7447s # guint prop_id G_GNUC_UNUSED, 7447s # const GValue *value G_GNUC_UNUSED, 7447s # GParamSpec *pspec G_GNUC_UNUSED) 7447s # { 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7447s # const gchar *sender_name G_GNUC_UNUSED, 7447s # const gchar *signal_name, 7447s # GVariant *parameters) 7447s # { 7447s # _ExtendedGDBusSignalInfo *info; 7447s # GVariantIter iter; 7447s # GVariant *child; 7447s # GValue *paramv; 7447s # gsize num_params; 7447s # gsize n; 7447s # guint signal_id; 7447s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7447s # if (info == NULL) 7447s # return; 7447s # num_params = g_variant_n_children (parameters); 7447s # paramv = g_new0 (GValue, num_params + 1); 7447s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7447s # g_value_set_object (¶mv[0], proxy); 7447s # g_variant_iter_init (&iter, parameters); 7447s # n = 1; 7447s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7447s # { 7447s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7447s # if (arg_info->use_gvariant) 7447s # { 7447s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7447s # g_value_set_variant (¶mv[n], child); 7447s # n++; 7447s # } 7447s # else 7447s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7447s # g_variant_unref (child); 7447s # } 7447s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7447s # g_signal_emitv (paramv, signal_id, 0, NULL); 7447s # for (n = 0; n < num_params + 1; n++) 7447s # g_value_unset (¶mv[n]); 7447s # g_free (paramv); 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7447s # GVariant *changed_properties, 7447s # const gchar *const *invalidated_properties) 7447s # { 7447s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7447s # guint n; 7447s # const gchar *key; 7447s # GVariantIter *iter; 7447s # _ExtendedGDBusPropertyInfo *info; 7447s # g_variant_get (changed_properties, "a{sv}", &iter); 7447s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7447s # { 7447s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7447s # g_datalist_remove_data (&proxy->priv->qdata, key); 7447s # if (info != NULL) 7447s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7447s # } 7447s # g_variant_iter_free (iter); 7447s # for (n = 0; invalidated_properties[n] != NULL; n++) 7447s # { 7447s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7447s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7447s # if (info != NULL) 7447s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7447s # } 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7447s # { 7447s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7447s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7447s # #else 7447s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7447s # #endif 7447s # 7447s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7447s # { 7447s # GObjectClass *gobject_class; 7447s # GDBusProxyClass *proxy_class; 7447s # 7447s # gobject_class = G_OBJECT_CLASS (klass); 7447s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7447s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7447s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7447s # 7447s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7447s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7447s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7447s # 7447s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7447s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7447s # #endif 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7447s # { 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_proxy_new: 7447s # * @connection: A #GDBusConnection. 7447s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7447s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7447s # * @object_path: An object path. 7447s # * @cancellable: (nullable): A #GCancellable or %NULL. 7447s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7447s # * @user_data: User data to pass to @callback. 7447s # * 7447s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7447s # * 7447s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7447s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7447s # * 7447s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7447s # */ 7447s # void 7447s # org_project_signaling_iface_proxy_new ( 7447s # GDBusConnection *connection, 7447s # GDBusProxyFlags flags, 7447s # const gchar *name, 7447s # const gchar *object_path, 7447s # GCancellable *cancellable, 7447s # GAsyncReadyCallback callback, 7447s # gpointer user_data) 7447s # { 7447s # 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); 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_proxy_new_finish: 7447s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7447s # * @error: Return location for error or %NULL 7447s # * 7447s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7447s # * 7447s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7447s # */ 7447s # OrgProjectSignalingIface * 7447s # org_project_signaling_iface_proxy_new_finish ( 7447s # GAsyncResult *res, 7447s # GError **error) 7447s # { 7447s # GObject *ret; 7447s # GObject *source_object; 7447s # source_object = g_async_result_get_source_object (res); 7447s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7447s # g_object_unref (source_object); 7447s # if (ret != NULL) 7447s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7447s # else 7447s # return NULL; 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_proxy_new_sync: 7447s # * @connection: A #GDBusConnection. 7447s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7447s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7447s # * @object_path: An object path. 7447s # * @cancellable: (nullable): A #GCancellable or %NULL. 7447s # * @error: Return location for error or %NULL 7447s # * 7447s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7447s # * 7447s # * The calling thread is blocked until a reply is received. 7447s # * 7447s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7447s # * 7447s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7447s # */ 7447s # OrgProjectSignalingIface * 7447s # org_project_signaling_iface_proxy_new_sync ( 7447s # GDBusConnection *connection, 7447s # GDBusProxyFlags flags, 7447s # const gchar *name, 7447s # const gchar *object_path, 7447s # GCancellable *cancellable, 7447s # GError **error) 7447s # { 7447s # GInitable *ret; 7447s # 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); 7447s # if (ret != NULL) 7447s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7447s # else 7447s # return NULL; 7447s # } 7447s # 7447s # 7447s # /** 7447s # * org_project_signaling_iface_proxy_new_for_bus: 7447s # * @bus_type: A #GBusType. 7447s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7447s # * @name: A bus name (well-known or unique). 7447s # * @object_path: An object path. 7447s # * @cancellable: (nullable): A #GCancellable or %NULL. 7447s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7447s # * @user_data: User data to pass to @callback. 7447s # * 7447s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7447s # * 7447s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7447s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7447s # * 7447s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7447s # */ 7447s # void 7447s # org_project_signaling_iface_proxy_new_for_bus ( 7447s # GBusType bus_type, 7447s # GDBusProxyFlags flags, 7447s # const gchar *name, 7447s # const gchar *object_path, 7447s # GCancellable *cancellable, 7447s # GAsyncReadyCallback callback, 7447s # gpointer user_data) 7447s # { 7447s # 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); 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7447s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7447s # * @error: Return location for error or %NULL 7447s # * 7447s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7447s # * 7447s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7447s # */ 7447s # OrgProjectSignalingIface * 7447s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7447s # GAsyncResult *res, 7447s # GError **error) 7447s # { 7447s # GObject *ret; 7447s # GObject *source_object; 7447s # source_object = g_async_result_get_source_object (res); 7447s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7447s # g_object_unref (source_object); 7447s # if (ret != NULL) 7447s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7447s # else 7447s # return NULL; 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7447s # * @bus_type: A #GBusType. 7447s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7447s # * @name: A bus name (well-known or unique). 7447s # * @object_path: An object path. 7447s # * @cancellable: (nullable): A #GCancellable or %NULL. 7447s # * @error: Return location for error or %NULL 7447s # * 7447s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7447s # * 7447s # * The calling thread is blocked until a reply is received. 7447s # * 7447s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7447s # * 7447s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7447s # */ 7447s # OrgProjectSignalingIface * 7447s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7447s # GBusType bus_type, 7447s # GDBusProxyFlags flags, 7447s # const gchar *name, 7447s # const gchar *object_path, 7447s # GCancellable *cancellable, 7447s # GError **error) 7447s # { 7447s # GInitable *ret; 7447s # 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); 7447s # if (ret != NULL) 7447s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7447s # else 7447s # return NULL; 7447s # } 7447s # 7447s # 7447s # /* ------------------------------------------------------------------------ */ 7447s # 7447s # /** 7447s # * OrgProjectSignalingIfaceSkeleton: 7447s # * 7447s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7447s # */ 7447s # 7447s # /** 7447s # * OrgProjectSignalingIfaceSkeletonClass: 7447s # * @parent_class: The parent class. 7447s # * 7447s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7447s # */ 7447s # 7447s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7447s # { 7447s # GValue *properties; 7447s # GList *changed_properties; 7447s # GSource *changed_properties_idle_source; 7447s # GMainContext *context; 7447s # GMutex lock; 7447s # }; 7447s # 7447s # static void 7447s # _org_project_signaling_iface_skeleton_handle_method_call ( 7447s # GDBusConnection *connection G_GNUC_UNUSED, 7447s # const gchar *sender G_GNUC_UNUSED, 7447s # const gchar *object_path G_GNUC_UNUSED, 7447s # const gchar *interface_name, 7447s # const gchar *method_name, 7447s # GVariant *parameters, 7447s # GDBusMethodInvocation *invocation, 7447s # gpointer user_data) 7447s # { 7447s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7447s # _ExtendedGDBusMethodInfo *info; 7447s # GVariantIter iter; 7447s # GVariant *child; 7447s # GValue *paramv; 7447s # gsize num_params; 7447s # guint num_extra; 7447s # gsize n; 7447s # guint signal_id; 7447s # GValue return_value = G_VALUE_INIT; 7447s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7447s # g_assert (info != NULL); 7447s # num_params = g_variant_n_children (parameters); 7447s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7447s # n = 0; 7447s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7447s # g_value_set_object (¶mv[n++], skeleton); 7447s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7447s # g_value_set_object (¶mv[n++], invocation); 7447s # if (info->pass_fdlist) 7447s # { 7447s # #ifdef G_OS_UNIX 7447s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7447s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7447s # #else 7447s # g_assert_not_reached (); 7447s # #endif 7447s # } 7447s # g_variant_iter_init (&iter, parameters); 7447s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7447s # { 7447s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7447s # if (arg_info->use_gvariant) 7447s # { 7447s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7447s # g_value_set_variant (¶mv[n], child); 7447s # n++; 7447s # } 7447s # else 7447s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7447s # g_variant_unref (child); 7447s # } 7447s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7447s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7447s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7447s # if (!g_value_get_boolean (&return_value)) 7447s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7447s # g_value_unset (&return_value); 7447s # for (n = 0; n < num_params + num_extra; n++) 7447s # g_value_unset (¶mv[n]); 7447s # g_free (paramv); 7447s # } 7447s # 7447s # static GVariant * 7447s # _org_project_signaling_iface_skeleton_handle_get_property ( 7447s # GDBusConnection *connection G_GNUC_UNUSED, 7447s # const gchar *sender G_GNUC_UNUSED, 7447s # const gchar *object_path G_GNUC_UNUSED, 7447s # const gchar *interface_name G_GNUC_UNUSED, 7447s # const gchar *property_name, 7447s # GError **error, 7447s # gpointer user_data) 7447s # { 7447s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7447s # GValue value = G_VALUE_INIT; 7447s # GParamSpec *pspec; 7447s # _ExtendedGDBusPropertyInfo *info; 7447s # GVariant *ret; 7447s # ret = NULL; 7447s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7447s # g_assert (info != NULL); 7447s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7447s # if (pspec == NULL) 7447s # { 7447s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7447s # } 7447s # else 7447s # { 7447s # g_value_init (&value, pspec->value_type); 7447s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7447s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7447s # g_value_unset (&value); 7447s # } 7447s # return ret; 7447s # } 7447s # 7447s # static gboolean 7447s # _org_project_signaling_iface_skeleton_handle_set_property ( 7447s # GDBusConnection *connection G_GNUC_UNUSED, 7447s # const gchar *sender G_GNUC_UNUSED, 7447s # const gchar *object_path G_GNUC_UNUSED, 7447s # const gchar *interface_name G_GNUC_UNUSED, 7447s # const gchar *property_name, 7447s # GVariant *variant, 7447s # GError **error, 7447s # gpointer user_data) 7447s # { 7447s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7447s # GValue value = G_VALUE_INIT; 7447s # GParamSpec *pspec; 7447s # _ExtendedGDBusPropertyInfo *info; 7447s # gboolean ret; 7447s # ret = FALSE; 7447s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7447s # g_assert (info != NULL); 7447s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7447s # if (pspec == NULL) 7447s # { 7447s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7447s # } 7447s # else 7447s # { 7447s # if (info->use_gvariant) 7447s # g_value_set_variant (&value, variant); 7447s # else 7447s # g_dbus_gvariant_to_gvalue (variant, &value); 7447s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7447s # g_value_unset (&value); 7447s # ret = TRUE; 7447s # } 7447s # return ret; 7447s # } 7447s # 7447s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7447s # { 7447s # _org_project_signaling_iface_skeleton_handle_method_call, 7447s # _org_project_signaling_iface_skeleton_handle_get_property, 7447s # _org_project_signaling_iface_skeleton_handle_set_property, 7447s # {NULL} 7447s # }; 7447s # 7447s # static GDBusInterfaceInfo * 7447s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7447s # { 7447s # return org_project_signaling_iface_interface_info (); 7447s # } 7447s # 7447s # static GDBusInterfaceVTable * 7447s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7447s # { 7447s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7447s # } 7447s # 7447s # static GVariant * 7447s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7447s # { 7447s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7447s # 7447s # GVariantBuilder builder; 7447s # guint n; 7447s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7447s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7447s # #else 7447s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7447s # #endif 7447s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7447s # goto out; 7447s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7447s # { 7447s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7447s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7447s # { 7447s # GVariant *value; 7447s # 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); 7447s # if (value != NULL) 7447s # { 7447s # g_variant_take_ref (value); 7447s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7447s # g_variant_unref (value); 7447s # } 7447s # } 7447s # } 7447s # out: 7447s # return g_variant_builder_end (&builder); 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7447s # { 7447s # } 7447s # 7447s # static void 7447s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 7447s # OrgProjectSignalingIface *object, 7447s # gboolean arg_an_b, 7447s # guchar arg_an_y, 7447s # gint16 arg_an_n, 7447s # guint16 arg_an_q, 7447s # gint arg_an_i, 7447s # guint arg_an_u, 7447s # gint64 arg_an_x, 7447s # guint64 arg_an_t, 7447s # gdouble arg_an_d, 7447s # const gchar *arg_an_s, 7447s # const gchar *arg_an_o, 7447s # const gchar *arg_an_g, 7447s # GVariant *arg_an_h, 7447s # const gchar *arg_an_ay, 7447s # const gchar *const *arg_an_as, 7447s # const gchar *const *arg_an_ao, 7447s # const gchar *const *arg_an_aay, 7447s # GVariant *arg_an_asv) 7447s # { 7447s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7447s # 7447s # GList *connections, *l; 7447s # GVariant *signal_variant; 7447s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7447s # 7447s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7447s # arg_an_b, 7447s # arg_an_y, 7447s # arg_an_n, 7447s # arg_an_q, 7447s # arg_an_i, 7447s # arg_an_u, 7447s # arg_an_x, 7447s # arg_an_t, 7447s # arg_an_d, 7447s # arg_an_s, 7447s # arg_an_o, 7447s # arg_an_g, 7447s # arg_an_h, 7447s # arg_an_ay, 7447s # arg_an_as, 7447s # arg_an_ao, 7447s # arg_an_aay, 7447s # arg_an_asv)); 7447s # for (l = connections; l != NULL; l = l->next) 7447s # { 7447s # GDBusConnection *connection = l->data; 7447s # g_dbus_connection_emit_signal (connection, 7447s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 7447s # signal_variant, NULL); 7447s # } 7447s # g_variant_unref (signal_variant); 7447s # g_list_free_full (connections, g_object_unref); 7447s # } 7447s # 7447s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7447s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7447s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7447s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7447s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7447s # 7447s # #else 7447s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7447s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7447s # 7447s # #endif 7447s # static void 7447s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7447s # { 7447s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7447s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7447s # if (skeleton->priv->changed_properties_idle_source != NULL) 7447s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7447s # g_main_context_unref (skeleton->priv->context); 7447s # g_mutex_clear (&skeleton->priv->lock); 7447s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7447s # { 7447s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7447s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7447s # #else 7447s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7447s # #endif 7447s # 7447s # g_mutex_init (&skeleton->priv->lock); 7447s # skeleton->priv->context = g_main_context_ref_thread_default (); 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7447s # { 7447s # GObjectClass *gobject_class; 7447s # GDBusInterfaceSkeletonClass *skeleton_class; 7447s # 7447s # gobject_class = G_OBJECT_CLASS (klass); 7447s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7447s # 7447s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7447s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7447s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7447s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7447s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7447s # 7447s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7447s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7447s # #endif 7447s # } 7447s # 7447s # static void 7447s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7447s # { 7447s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 7447s # } 7447s # 7447s # /** 7447s # * org_project_signaling_iface_skeleton_new: 7447s # * 7447s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7447s # * 7447s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7447s # */ 7447s # OrgProjectSignalingIface * 7447s # org_project_signaling_iface_skeleton_new (void) 7447s # { 7447s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7447s # } 7447s # Error: 7449s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 7449s # gdbus-codegen: /usr/bin/gdbus-codegen 7449s # tmpdir: /tmp/tmpwi3rhn3k 7449s # /tmp/tmpwi3rhn3k/tmp5az8jaon.xml: 7449s # 7449s # 7449s # 7449s # 7449s # 7449s # 7449s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwi3rhn3k/tmp5az8jaon.xml', '--output', '-', '--body'] 7449s # Return code: 0 7449s # Output: 7449s # /* 7449s # * This file is generated by gdbus-codegen, do not modify it. 7449s # * 7449s # * The license of this code is the same as for the D-Bus interface description 7449s # * it was derived from. Note that it links to GLib, so must comply with the 7449s # * LGPL linking clauses. 7449s # */ 7449s # 7449s # #ifdef HAVE_CONFIG_H 7449s # # include "config.h" 7449s # #endif 7449s # 7449s # #include 7449s # #ifdef G_OS_UNIX 7449s # # include 7449s # #endif 7449s # 7449s # #ifdef G_ENABLE_DEBUG 7449s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7449s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7449s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7449s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7449s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7449s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7449s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7449s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7449s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7449s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7449s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7449s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7449s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7449s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7449s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7449s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7449s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7449s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7449s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7449s # #else /* !G_ENABLE_DEBUG */ 7449s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7449s # * Do not access GValues directly in your code. Instead, use the 7449s # * g_value_get_*() functions 7449s # */ 7449s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7449s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7449s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7449s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7449s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7449s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7449s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7449s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7449s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7449s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7449s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7449s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7449s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7449s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7449s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7449s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7449s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7449s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7449s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7449s # #endif /* !G_ENABLE_DEBUG */ 7449s # 7449s # typedef struct 7449s # { 7449s # GDBusArgInfo parent_struct; 7449s # gboolean use_gvariant; 7449s # } _ExtendedGDBusArgInfo; 7449s # 7449s # typedef struct 7449s # { 7449s # GDBusMethodInfo parent_struct; 7449s # const gchar *signal_name; 7449s # gboolean pass_fdlist; 7449s # } _ExtendedGDBusMethodInfo; 7449s # 7449s # typedef struct 7449s # { 7449s # GDBusSignalInfo parent_struct; 7449s # const gchar *signal_name; 7449s # } _ExtendedGDBusSignalInfo; 7449s # 7449s # typedef struct 7449s # { 7449s # GDBusPropertyInfo parent_struct; 7449s # const gchar *hyphen_name; 7449s # guint use_gvariant : 1; 7449s # guint emits_changed_signal : 1; 7449s # } _ExtendedGDBusPropertyInfo; 7449s # 7449s # typedef struct 7449s # { 7449s # GDBusInterfaceInfo parent_struct; 7449s # const gchar *hyphen_name; 7449s # } _ExtendedGDBusInterfaceInfo; 7449s # 7449s # typedef struct 7449s # { 7449s # const _ExtendedGDBusPropertyInfo *info; 7449s # guint prop_id; 7449s # GValue orig_value; /* the value before the change */ 7449s # } ChangedProperty; 7449s # 7449s # static void 7449s # _changed_property_free (ChangedProperty *data) 7449s # { 7449s # g_value_unset (&data->orig_value); 7449s # g_free (data); 7449s # } 7449s # 7449s # static gboolean 7449s # _g_strv_equal0 (gchar **a, gchar **b) 7449s # { 7449s # gboolean ret = FALSE; 7449s # guint n; 7449s # if (a == NULL && b == NULL) 7449s # { 7449s # ret = TRUE; 7449s # goto out; 7449s # } 7449s # if (a == NULL || b == NULL) 7449s # goto out; 7449s # if (g_strv_length (a) != g_strv_length (b)) 7449s # goto out; 7449s # for (n = 0; a[n] != NULL; n++) 7449s # if (g_strcmp0 (a[n], b[n]) != 0) 7449s # goto out; 7449s # ret = TRUE; 7449s # out: 7449s # return ret; 7449s # } 7449s # 7449s # static gboolean 7449s # _g_variant_equal0 (GVariant *a, GVariant *b) 7449s # { 7449s # gboolean ret = FALSE; 7449s # if (a == NULL && b == NULL) 7449s # { 7449s # ret = TRUE; 7449s # goto out; 7449s # } 7449s # if (a == NULL || b == NULL) 7449s # goto out; 7449s # ret = g_variant_equal (a, b); 7449s # out: 7449s # return ret; 7449s # } 7449s # 7449s # G_GNUC_UNUSED static gboolean 7449s # _g_value_equal (const GValue *a, const GValue *b) 7449s # { 7449s # gboolean ret = FALSE; 7449s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7449s # switch (G_VALUE_TYPE (a)) 7449s # { 7449s # case G_TYPE_BOOLEAN: 7449s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7449s # break; 7449s # case G_TYPE_UCHAR: 7449s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7449s # break; 7449s # case G_TYPE_INT: 7449s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7449s # break; 7449s # case G_TYPE_UINT: 7449s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7449s # break; 7449s # case G_TYPE_INT64: 7449s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7449s # break; 7449s # case G_TYPE_UINT64: 7449s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7449s # break; 7449s # case G_TYPE_DOUBLE: 7449s # { 7449s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7449s # gdouble da = g_value_get_double (a); 7449s # gdouble db = g_value_get_double (b); 7449s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7449s # } 7449s # break; 7449s # case G_TYPE_STRING: 7449s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7449s # break; 7449s # case G_TYPE_VARIANT: 7449s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7449s # break; 7449s # default: 7449s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7449s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7449s # else 7449s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7449s # break; 7449s # } 7449s # return ret; 7449s # } 7449s # 7449s # static void 7449s # _g_dbus_codegen_marshal_VOID__INT64 ( 7449s # GClosure *closure, 7449s # GValue *return_value G_GNUC_UNUSED, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint G_GNUC_UNUSED, 7449s # void *marshal_data) 7449s # { 7449s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 7449s # (void *data1, 7449s # gint64 arg_an_x, 7449s # void *data2); 7449s # _GDbusCodegenMarshalVoid_Int64Func callback; 7449s # GCClosure *cc = (GCClosure*) closure; 7449s # void *data1, *data2; 7449s # 7449s # g_return_if_fail (n_param_values == 2); 7449s # 7449s # if (G_CCLOSURE_SWAP_DATA (closure)) 7449s # { 7449s # data1 = closure->data; 7449s # data2 = g_value_peek_pointer (param_values + 0); 7449s # } 7449s # else 7449s # { 7449s # data1 = g_value_peek_pointer (param_values + 0); 7449s # data2 = closure->data; 7449s # } 7449s # 7449s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 7449s # (marshal_data ? marshal_data : cc->callback); 7449s # 7449s # callback (data1, 7449s # g_marshal_value_peek_int64 (param_values + 1), 7449s # data2); 7449s # } 7449s # 7449s # static void 7449s # _g_dbus_codegen_marshal_VOID__UINT64 ( 7449s # GClosure *closure, 7449s # GValue *return_value G_GNUC_UNUSED, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint G_GNUC_UNUSED, 7449s # void *marshal_data) 7449s # { 7449s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 7449s # (void *data1, 7449s # guint64 arg_an_t, 7449s # void *data2); 7449s # _GDbusCodegenMarshalVoid_Uint64Func callback; 7449s # GCClosure *cc = (GCClosure*) closure; 7449s # void *data1, *data2; 7449s # 7449s # g_return_if_fail (n_param_values == 2); 7449s # 7449s # if (G_CCLOSURE_SWAP_DATA (closure)) 7449s # { 7449s # data1 = closure->data; 7449s # data2 = g_value_peek_pointer (param_values + 0); 7449s # } 7449s # else 7449s # { 7449s # data1 = g_value_peek_pointer (param_values + 0); 7449s # data2 = closure->data; 7449s # } 7449s # 7449s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 7449s # (marshal_data ? marshal_data : cc->callback); 7449s # 7449s # callback (data1, 7449s # g_marshal_value_peek_uint64 (param_values + 1), 7449s # data2); 7449s # } 7449s # 7449s # /* ------------------------------------------------------------------------ 7449s # * Code for interface org.project.SignalingIface 7449s # * ------------------------------------------------------------------------ 7449s # */ 7449s # 7449s # /** 7449s # * SECTION:OrgProjectSignalingIface 7449s # * @title: OrgProjectSignalingIface 7449s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7449s # * 7449s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7449s # */ 7449s # 7449s # enum 7449s # { 7449s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 7449s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 7449s # }; 7449s # 7449s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 7449s # 7449s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "NoArgSignal", 7449s # NULL, 7449s # NULL 7449s # }, 7449s # "no-arg-signal" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_b", 7449s # (gchar *) "b", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalB", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-b" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_y", 7449s # (gchar *) "y", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalY", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-y" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_n", 7449s # (gchar *) "n", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalN", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-n" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_q", 7449s # (gchar *) "q", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalQ", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-q" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_i", 7449s # (gchar *) "i", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalI", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-i" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_u", 7449s # (gchar *) "u", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalU", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-u" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_x", 7449s # (gchar *) "x", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalX", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-x" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_t", 7449s # (gchar *) "t", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalT", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-t" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_d", 7449s # (gchar *) "d", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalD", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-d" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_s", 7449s # (gchar *) "s", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalS", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-s" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_o", 7449s # (gchar *) "o", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalO", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-o" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_g", 7449s # (gchar *) "g", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalG", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-g" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_h", 7449s # (gchar *) "h", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalH", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-h" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_ay", 7449s # (gchar *) "ay", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalAY", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-ay" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_as", 7449s # (gchar *) "as", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalAS", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-as" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_ao", 7449s # (gchar *) "ao", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalAO", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-ao" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_aay", 7449s # (gchar *) "aay", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalAAY", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-aay" 7449s # }; 7449s # 7449s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "an_asv", 7449s # (gchar *) "a{sv}", 7449s # NULL 7449s # }, 7449s # FALSE 7449s # }; 7449s # 7449s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "SingleArgSignalASV", 7449s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 7449s # NULL 7449s # }, 7449s # "single-arg-signal-asv" 7449s # }; 7449s # 7449s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7449s # { 7449s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 7449s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 7449s # NULL 7449s # }; 7449s # 7449s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7449s # { 7449s # { 7449s # -1, 7449s # (gchar *) "org.project.SignalingIface", 7449s # NULL, 7449s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7449s # NULL, 7449s # NULL 7449s # }, 7449s # "org-project-signaling-iface", 7449s # }; 7449s # 7449s # 7449s # /** 7449s # * org_project_signaling_iface_interface_info: 7449s # * 7449s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7449s # * 7449s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7449s # */ 7449s # GDBusInterfaceInfo * 7449s # org_project_signaling_iface_interface_info (void) 7449s # { 7449s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_override_properties: 7449s # * @klass: The class structure for a #GObject derived class. 7449s # * @property_id_begin: The property id to assign to the first overridden property. 7449s # * 7449s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7449s # * The properties are overridden in the order they are defined. 7449s # * 7449s # * Returns: The last property id. 7449s # */ 7449s # guint 7449s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7449s # { 7449s # return property_id_begin - 1; 7449s # } 7449s # 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__VOID (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__BOOLEAN (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__UCHAR (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__INT (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__UINT (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__INT (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__UINT (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__DOUBLE (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__STRING (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__STRING (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__STRING (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__VARIANT (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__STRING (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__BOXED (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__BOXED (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__BOXED (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # inline static void 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 7449s # GClosure *closure, 7449s # GValue *return_value, 7449s # unsigned int n_param_values, 7449s # const GValue *param_values, 7449s # void *invocation_hint, 7449s # void *marshal_data) 7449s # { 7449s # g_cclosure_marshal_VOID__VARIANT (closure, 7449s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7449s # } 7449s # 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface: 7449s # * 7449s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7449s # */ 7449s # 7449s # /** 7449s # * OrgProjectSignalingIfaceIface: 7449s # * @parent_iface: The parent interface. 7449s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 7449s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 7449s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 7449s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 7449s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 7449s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 7449s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 7449s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 7449s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 7449s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 7449s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 7449s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 7449s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 7449s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 7449s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 7449s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 7449s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 7449s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 7449s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 7449s # * 7449s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7449s # */ 7449s # 7449s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7449s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7449s # 7449s # static void 7449s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7449s # { 7449s # /* GObject signals for received D-Bus signals: */ 7449s # /** 7449s # * OrgProjectSignalingIface::no-arg-signal: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 7449s # g_signal_new ("no-arg-signal", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_no_arg_signal, 7449s # G_TYPE_NONE, 7449s # 0); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-b: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_b: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 7449s # g_signal_new ("single-arg-signal-b", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_BOOLEAN); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-y: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_y: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 7449s # g_signal_new ("single-arg-signal-y", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_UCHAR); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-n: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_n: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 7449s # g_signal_new ("single-arg-signal-n", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_INT); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-q: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_q: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 7449s # g_signal_new ("single-arg-signal-q", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_UINT); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-i: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_i: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 7449s # g_signal_new ("single-arg-signal-i", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_INT); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-u: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_u: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 7449s # g_signal_new ("single-arg-signal-u", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_UINT); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-x: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_x: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 7449s # g_signal_new ("single-arg-signal-x", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_INT64); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-t: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_t: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 7449s # g_signal_new ("single-arg-signal-t", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_UINT64); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-d: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_d: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 7449s # g_signal_new ("single-arg-signal-d", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_DOUBLE); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-s: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_s: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 7449s # g_signal_new ("single-arg-signal-s", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_STRING); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-o: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_o: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 7449s # g_signal_new ("single-arg-signal-o", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_STRING); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-g: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_g: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 7449s # g_signal_new ("single-arg-signal-g", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_STRING); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-h: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_h: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 7449s # g_signal_new ("single-arg-signal-h", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_VARIANT); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-ay: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_ay: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 7449s # g_signal_new ("single-arg-signal-ay", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_STRING); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-as: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_as: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 7449s # g_signal_new ("single-arg-signal-as", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_STRV); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-ao: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_ao: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 7449s # g_signal_new ("single-arg-signal-ao", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_STRV); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-aay: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_aay: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 7449s # g_signal_new ("single-arg-signal-aay", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_STRV); 7449s # 7449s # /** 7449s # * OrgProjectSignalingIface::single-arg-signal-asv: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_asv: Argument. 7449s # * 7449s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 7449s # * 7449s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7449s # */ 7449s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 7449s # g_signal_new ("single-arg-signal-asv", 7449s # G_TYPE_FROM_INTERFACE (iface), 7449s # G_SIGNAL_RUN_LAST, 7449s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 7449s # NULL, 7449s # NULL, 7449s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 7449s # G_TYPE_NONE, 7449s # 1, G_TYPE_VARIANT); 7449s # 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_no_arg_signal: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * 7449s # * Emits the "NoArgSignal" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_no_arg_signal ( 7449s # OrgProjectSignalingIface *object) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_b: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_b: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalB" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_b ( 7449s # OrgProjectSignalingIface *object, 7449s # gboolean arg_an_b) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_y: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_y: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalY" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_y ( 7449s # OrgProjectSignalingIface *object, 7449s # guchar arg_an_y) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_n: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_n: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalN" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_n ( 7449s # OrgProjectSignalingIface *object, 7449s # gint16 arg_an_n) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_q: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_q: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalQ" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_q ( 7449s # OrgProjectSignalingIface *object, 7449s # guint16 arg_an_q) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_i: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_i: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalI" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_i ( 7449s # OrgProjectSignalingIface *object, 7449s # gint arg_an_i) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_u: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_u: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalU" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_u ( 7449s # OrgProjectSignalingIface *object, 7449s # guint arg_an_u) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_x: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_x: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalX" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_x ( 7449s # OrgProjectSignalingIface *object, 7449s # gint64 arg_an_x) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_t: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_t: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalT" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_t ( 7449s # OrgProjectSignalingIface *object, 7449s # guint64 arg_an_t) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_d: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_d: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalD" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_d ( 7449s # OrgProjectSignalingIface *object, 7449s # gdouble arg_an_d) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_s: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_s: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalS" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_s ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_s) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_o: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_o: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalO" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_o ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_o) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_g: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_g: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalG" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_g ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_g) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_h: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_h: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalH" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_h ( 7449s # OrgProjectSignalingIface *object, 7449s # GVariant *arg_an_h) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_ay: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_ay: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalAY" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_ay ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_ay) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_as: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_as: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalAS" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_as ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *const *arg_an_as) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_ao: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_ao: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalAO" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_ao ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *const *arg_an_ao) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_aay: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_aay: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalAAY" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_aay ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *const *arg_an_aay) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_emit_single_arg_signal_asv: 7449s # * @object: A #OrgProjectSignalingIface. 7449s # * @arg_an_asv: Argument to pass with the signal. 7449s # * 7449s # * Emits the "SingleArgSignalASV" D-Bus signal. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_emit_single_arg_signal_asv ( 7449s # OrgProjectSignalingIface *object, 7449s # GVariant *arg_an_asv) 7449s # { 7449s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 7449s # } 7449s # 7449s # /* ------------------------------------------------------------------------ */ 7449s # 7449s # /** 7449s # * OrgProjectSignalingIfaceProxy: 7449s # * 7449s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7449s # */ 7449s # 7449s # /** 7449s # * OrgProjectSignalingIfaceProxyClass: 7449s # * @parent_class: The parent class. 7449s # * 7449s # * Class structure for #OrgProjectSignalingIfaceProxy. 7449s # */ 7449s # 7449s # struct _OrgProjectSignalingIfaceProxyPrivate 7449s # { 7449s # GData *qdata; 7449s # }; 7449s # 7449s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7449s # 7449s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7449s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7449s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7449s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7449s # 7449s # #else 7449s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7449s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7449s # 7449s # #endif 7449s # static void 7449s # org_project_signaling_iface_proxy_finalize (GObject *object) 7449s # { 7449s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7449s # g_datalist_clear (&proxy->priv->qdata); 7449s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7449s # guint prop_id G_GNUC_UNUSED, 7449s # GValue *value G_GNUC_UNUSED, 7449s # GParamSpec *pspec G_GNUC_UNUSED) 7449s # { 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7449s # guint prop_id G_GNUC_UNUSED, 7449s # const GValue *value G_GNUC_UNUSED, 7449s # GParamSpec *pspec G_GNUC_UNUSED) 7449s # { 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7449s # const gchar *sender_name G_GNUC_UNUSED, 7449s # const gchar *signal_name, 7449s # GVariant *parameters) 7449s # { 7449s # _ExtendedGDBusSignalInfo *info; 7449s # GVariantIter iter; 7449s # GVariant *child; 7449s # GValue *paramv; 7449s # gsize num_params; 7449s # gsize n; 7449s # guint signal_id; 7449s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7449s # if (info == NULL) 7449s # return; 7449s # num_params = g_variant_n_children (parameters); 7449s # paramv = g_new0 (GValue, num_params + 1); 7449s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7449s # g_value_set_object (¶mv[0], proxy); 7449s # g_variant_iter_init (&iter, parameters); 7449s # n = 1; 7449s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7449s # { 7449s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7449s # if (arg_info->use_gvariant) 7449s # { 7449s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7449s # g_value_set_variant (¶mv[n], child); 7449s # n++; 7449s # } 7449s # else 7449s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7449s # g_variant_unref (child); 7449s # } 7449s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7449s # g_signal_emitv (paramv, signal_id, 0, NULL); 7449s # for (n = 0; n < num_params + 1; n++) 7449s # g_value_unset (¶mv[n]); 7449s # g_free (paramv); 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7449s # GVariant *changed_properties, 7449s # const gchar *const *invalidated_properties) 7449s # { 7449s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7449s # guint n; 7449s # const gchar *key; 7449s # GVariantIter *iter; 7449s # _ExtendedGDBusPropertyInfo *info; 7449s # g_variant_get (changed_properties, "a{sv}", &iter); 7449s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7449s # { 7449s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7449s # g_datalist_remove_data (&proxy->priv->qdata, key); 7449s # if (info != NULL) 7449s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7449s # } 7449s # g_variant_iter_free (iter); 7449s # for (n = 0; invalidated_properties[n] != NULL; n++) 7449s # { 7449s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7449s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7449s # if (info != NULL) 7449s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7449s # } 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7449s # { 7449s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7449s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7449s # #else 7449s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7449s # #endif 7449s # 7449s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7449s # { 7449s # GObjectClass *gobject_class; 7449s # GDBusProxyClass *proxy_class; 7449s # 7449s # gobject_class = G_OBJECT_CLASS (klass); 7449s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7449s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7449s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7449s # 7449s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7449s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7449s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7449s # 7449s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7449s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7449s # #endif 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7449s # { 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_proxy_new: 7449s # * @connection: A #GDBusConnection. 7449s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7449s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7449s # * @object_path: An object path. 7449s # * @cancellable: (nullable): A #GCancellable or %NULL. 7449s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7449s # * @user_data: User data to pass to @callback. 7449s # * 7449s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7449s # * 7449s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7449s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7449s # * 7449s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_proxy_new ( 7449s # GDBusConnection *connection, 7449s # GDBusProxyFlags flags, 7449s # const gchar *name, 7449s # const gchar *object_path, 7449s # GCancellable *cancellable, 7449s # GAsyncReadyCallback callback, 7449s # gpointer user_data) 7449s # { 7449s # 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); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_proxy_new_finish: 7449s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7449s # * @error: Return location for error or %NULL 7449s # * 7449s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7449s # * 7449s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7449s # */ 7449s # OrgProjectSignalingIface * 7449s # org_project_signaling_iface_proxy_new_finish ( 7449s # GAsyncResult *res, 7449s # GError **error) 7449s # { 7449s # GObject *ret; 7449s # GObject *source_object; 7449s # source_object = g_async_result_get_source_object (res); 7449s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7449s # g_object_unref (source_object); 7449s # if (ret != NULL) 7449s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7449s # else 7449s # return NULL; 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_proxy_new_sync: 7449s # * @connection: A #GDBusConnection. 7449s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7449s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7449s # * @object_path: An object path. 7449s # * @cancellable: (nullable): A #GCancellable or %NULL. 7449s # * @error: Return location for error or %NULL 7449s # * 7449s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7449s # * 7449s # * The calling thread is blocked until a reply is received. 7449s # * 7449s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7449s # * 7449s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7449s # */ 7449s # OrgProjectSignalingIface * 7449s # org_project_signaling_iface_proxy_new_sync ( 7449s # GDBusConnection *connection, 7449s # GDBusProxyFlags flags, 7449s # const gchar *name, 7449s # const gchar *object_path, 7449s # GCancellable *cancellable, 7449s # GError **error) 7449s # { 7449s # GInitable *ret; 7449s # 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); 7449s # if (ret != NULL) 7449s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7449s # else 7449s # return NULL; 7449s # } 7449s # 7449s # 7449s # /** 7449s # * org_project_signaling_iface_proxy_new_for_bus: 7449s # * @bus_type: A #GBusType. 7449s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7449s # * @name: A bus name (well-known or unique). 7449s # * @object_path: An object path. 7449s # * @cancellable: (nullable): A #GCancellable or %NULL. 7449s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7449s # * @user_data: User data to pass to @callback. 7449s # * 7449s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7449s # * 7449s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7449s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7449s # * 7449s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7449s # */ 7449s # void 7449s # org_project_signaling_iface_proxy_new_for_bus ( 7449s # GBusType bus_type, 7449s # GDBusProxyFlags flags, 7449s # const gchar *name, 7449s # const gchar *object_path, 7449s # GCancellable *cancellable, 7449s # GAsyncReadyCallback callback, 7449s # gpointer user_data) 7449s # { 7449s # 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); 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7449s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7449s # * @error: Return location for error or %NULL 7449s # * 7449s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7449s # * 7449s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7449s # */ 7449s # OrgProjectSignalingIface * 7449s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7449s # GAsyncResult *res, 7449s # GError **error) 7449s # { 7449s # GObject *ret; 7449s # GObject *source_object; 7449s # source_object = g_async_result_get_source_object (res); 7449s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7449s # g_object_unref (source_object); 7449s # if (ret != NULL) 7449s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7449s # else 7449s # return NULL; 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7449s # * @bus_type: A #GBusType. 7449s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7449s # * @name: A bus name (well-known or unique). 7449s # * @object_path: An object path. 7449s # * @cancellable: (nullable): A #GCancellable or %NULL. 7449s # * @error: Return location for error or %NULL 7449s # * 7449s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7449s # * 7449s # * The calling thread is blocked until a reply is received. 7449s # * 7449s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7449s # * 7449s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7449s # */ 7449s # OrgProjectSignalingIface * 7449s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7449s # GBusType bus_type, 7449s # GDBusProxyFlags flags, 7449s # const gchar *name, 7449s # const gchar *object_path, 7449s # GCancellable *cancellable, 7449s # GError **error) 7449s # { 7449s # GInitable *ret; 7449s # 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); 7449s # if (ret != NULL) 7449s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7449s # else 7449s # return NULL; 7449s # } 7449s # 7449s # 7449s # /* ------------------------------------------------------------------------ */ 7449s # 7449s # /** 7449s # * OrgProjectSignalingIfaceSkeleton: 7449s # * 7449s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7449s # */ 7449s # 7449s # /** 7449s # * OrgProjectSignalingIfaceSkeletonClass: 7449s # * @parent_class: The parent class. 7449s # * 7449s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7449s # */ 7449s # 7449s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7449s # { 7449s # GValue *properties; 7449s # GList *changed_properties; 7449s # GSource *changed_properties_idle_source; 7449s # GMainContext *context; 7449s # GMutex lock; 7449s # }; 7449s # 7449s # static void 7449s # _org_project_signaling_iface_skeleton_handle_method_call ( 7449s # GDBusConnection *connection G_GNUC_UNUSED, 7449s # const gchar *sender G_GNUC_UNUSED, 7449s # const gchar *object_path G_GNUC_UNUSED, 7449s # const gchar *interface_name, 7449s # const gchar *method_name, 7449s # GVariant *parameters, 7449s # GDBusMethodInvocation *invocation, 7449s # gpointer user_data) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7449s # _ExtendedGDBusMethodInfo *info; 7449s # GVariantIter iter; 7449s # GVariant *child; 7449s # GValue *paramv; 7449s # gsize num_params; 7449s # guint num_extra; 7449s # gsize n; 7449s # guint signal_id; 7449s # GValue return_value = G_VALUE_INIT; 7449s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7449s # g_assert (info != NULL); 7449s # num_params = g_variant_n_children (parameters); 7449s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7449s # n = 0; 7449s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7449s # g_value_set_object (¶mv[n++], skeleton); 7449s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7449s # g_value_set_object (¶mv[n++], invocation); 7449s # if (info->pass_fdlist) 7449s # { 7449s # #ifdef G_OS_UNIX 7449s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7449s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7449s # #else 7449s # g_assert_not_reached (); 7449s # #endif 7449s # } 7449s # g_variant_iter_init (&iter, parameters); 7449s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7449s # { 7449s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7449s # if (arg_info->use_gvariant) 7449s # { 7449s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7449s # g_value_set_variant (¶mv[n], child); 7449s # n++; 7449s # } 7449s # else 7449s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7449s # g_variant_unref (child); 7449s # } 7449s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7449s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7449s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7449s # if (!g_value_get_boolean (&return_value)) 7449s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7449s # g_value_unset (&return_value); 7449s # for (n = 0; n < num_params + num_extra; n++) 7449s # g_value_unset (¶mv[n]); 7449s # g_free (paramv); 7449s # } 7449s # 7449s # static GVariant * 7449s # _org_project_signaling_iface_skeleton_handle_get_property ( 7449s # GDBusConnection *connection G_GNUC_UNUSED, 7449s # const gchar *sender G_GNUC_UNUSED, 7449s # const gchar *object_path G_GNUC_UNUSED, 7449s # const gchar *interface_name G_GNUC_UNUSED, 7449s # const gchar *property_name, 7449s # GError **error, 7449s # gpointer user_data) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7449s # GValue value = G_VALUE_INIT; 7449s # GParamSpec *pspec; 7449s # _ExtendedGDBusPropertyInfo *info; 7449s # GVariant *ret; 7449s # ret = NULL; 7449s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7449s # g_assert (info != NULL); 7449s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7449s # if (pspec == NULL) 7449s # { 7449s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7449s # } 7449s # else 7449s # { 7449s # g_value_init (&value, pspec->value_type); 7449s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7449s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7449s # g_value_unset (&value); 7449s # } 7449s # return ret; 7449s # } 7449s # 7449s # static gboolean 7449s # _org_project_signaling_iface_skeleton_handle_set_property ( 7449s # GDBusConnection *connection G_GNUC_UNUSED, 7449s # const gchar *sender G_GNUC_UNUSED, 7449s # const gchar *object_path G_GNUC_UNUSED, 7449s # const gchar *interface_name G_GNUC_UNUSED, 7449s # const gchar *property_name, 7449s # GVariant *variant, 7449s # GError **error, 7449s # gpointer user_data) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7449s # GValue value = G_VALUE_INIT; 7449s # GParamSpec *pspec; 7449s # _ExtendedGDBusPropertyInfo *info; 7449s # gboolean ret; 7449s # ret = FALSE; 7449s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7449s # g_assert (info != NULL); 7449s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7449s # if (pspec == NULL) 7449s # { 7449s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7449s # } 7449s # else 7449s # { 7449s # if (info->use_gvariant) 7449s # g_value_set_variant (&value, variant); 7449s # else 7449s # g_dbus_gvariant_to_gvalue (variant, &value); 7449s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7449s # g_value_unset (&value); 7449s # ret = TRUE; 7449s # } 7449s # return ret; 7449s # } 7449s # 7449s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7449s # { 7449s # _org_project_signaling_iface_skeleton_handle_method_call, 7449s # _org_project_signaling_iface_skeleton_handle_get_property, 7449s # _org_project_signaling_iface_skeleton_handle_set_property, 7449s # {NULL} 7449s # }; 7449s # 7449s # static GDBusInterfaceInfo * 7449s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7449s # { 7449s # return org_project_signaling_iface_interface_info (); 7449s # } 7449s # 7449s # static GDBusInterfaceVTable * 7449s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7449s # { 7449s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7449s # } 7449s # 7449s # static GVariant * 7449s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7449s # 7449s # GVariantBuilder builder; 7449s # guint n; 7449s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7449s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7449s # #else 7449s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7449s # #endif 7449s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7449s # goto out; 7449s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7449s # { 7449s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7449s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7449s # { 7449s # GVariant *value; 7449s # 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); 7449s # if (value != NULL) 7449s # { 7449s # g_variant_take_ref (value); 7449s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7449s # g_variant_unref (value); 7449s # } 7449s # } 7449s # } 7449s # out: 7449s # return g_variant_builder_end (&builder); 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7449s # { 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_no_arg_signal ( 7449s # OrgProjectSignalingIface *object) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 7449s # OrgProjectSignalingIface *object, 7449s # gboolean arg_an_b) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 7449s # arg_an_b)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 7449s # OrgProjectSignalingIface *object, 7449s # guchar arg_an_y) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 7449s # arg_an_y)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 7449s # OrgProjectSignalingIface *object, 7449s # gint16 arg_an_n) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 7449s # arg_an_n)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 7449s # OrgProjectSignalingIface *object, 7449s # guint16 arg_an_q) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 7449s # arg_an_q)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 7449s # OrgProjectSignalingIface *object, 7449s # gint arg_an_i) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 7449s # arg_an_i)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 7449s # OrgProjectSignalingIface *object, 7449s # guint arg_an_u) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 7449s # arg_an_u)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 7449s # OrgProjectSignalingIface *object, 7449s # gint64 arg_an_x) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 7449s # arg_an_x)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 7449s # OrgProjectSignalingIface *object, 7449s # guint64 arg_an_t) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 7449s # arg_an_t)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 7449s # OrgProjectSignalingIface *object, 7449s # gdouble arg_an_d) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 7449s # arg_an_d)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_s) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 7449s # arg_an_s)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_o) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 7449s # arg_an_o)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_g) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 7449s # arg_an_g)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 7449s # OrgProjectSignalingIface *object, 7449s # GVariant *arg_an_h) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 7449s # arg_an_h)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *arg_an_ay) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 7449s # arg_an_ay)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *const *arg_an_as) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 7449s # arg_an_as)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *const *arg_an_ao) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 7449s # arg_an_ao)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 7449s # OrgProjectSignalingIface *object, 7449s # const gchar *const *arg_an_aay) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 7449s # arg_an_aay)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void 7449s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 7449s # OrgProjectSignalingIface *object, 7449s # GVariant *arg_an_asv) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # 7449s # GList *connections, *l; 7449s # GVariant *signal_variant; 7449s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7449s # 7449s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 7449s # arg_an_asv)); 7449s # for (l = connections; l != NULL; l = l->next) 7449s # { 7449s # GDBusConnection *connection = l->data; 7449s # g_dbus_connection_emit_signal (connection, 7449s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 7449s # signal_variant, NULL); 7449s # } 7449s # g_variant_unref (signal_variant); 7449s # g_list_free_full (connections, g_object_unref); 7449s # } 7449s # 7449s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7449s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7449s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7449s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7449s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7449s # 7449s # #else 7449s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7449s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7449s # 7449s # #endif 7449s # static void 7449s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7449s # { 7449s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7449s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7449s # if (skeleton->priv->changed_properties_idle_source != NULL) 7449s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7449s # g_main_context_unref (skeleton->priv->context); 7449s # g_mutex_clear (&skeleton->priv->lock); 7449s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7449s # { 7449s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7449s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7449s # #else 7449s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7449s # #endif 7449s # 7449s # g_mutex_init (&skeleton->priv->lock); 7449s # skeleton->priv->context = g_main_context_ref_thread_default (); 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7449s # { 7449s # GObjectClass *gobject_class; 7449s # GDBusInterfaceSkeletonClass *skeleton_class; 7449s # 7449s # gobject_class = G_OBJECT_CLASS (klass); 7449s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7449s # 7449s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7449s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7449s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7449s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7449s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7449s # 7449s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7449s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7449s # #endif 7449s # } 7449s # 7449s # static void 7449s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7449s # { 7449s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 7449s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 7449s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 7449s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 7449s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 7449s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 7449s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 7449s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 7449s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 7449s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 7449s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 7449s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 7449s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 7449s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 7449s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 7449s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 7449s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 7449s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 7449s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 7449s # } 7449s # 7449s # /** 7449s # * org_project_signaling_iface_skeleton_new: 7449s # * 7449s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7449s # * 7449s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7449s # */ 7449s # OrgProjectSignalingIface * 7449s # org_project_signaling_iface_skeleton_new (void) 7449s # { 7449s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7449s # } 7449s # Error: 7449s # Executing: glib/codegen.py.test 7450s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 7450s # gdbus-codegen: /usr/bin/gdbus-codegen 7450s # tmpdir: /tmp/tmpjyr2mqjd 7450s # /tmp/tmpjyr2mqjd/tmpqeav6u7t.xml: 7450s # 7450s # 7450s # 7450s # 7450s # 7450s # 7450s # 7450s # 7450s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjyr2mqjd/tmpqeav6u7t.xml', '--output', '-', '--body'] 7450s # Return code: 0 7450s # Output: 7450s # /* 7450s # * This file is generated by gdbus-codegen, do not modify it. 7450s # * 7450s # * The license of this code is the same as for the D-Bus interface description 7450s # * it was derived from. Note that it links to GLib, so must comply with the 7450s # * LGPL linking clauses. 7450s # */ 7450s # 7450s # #ifdef HAVE_CONFIG_H 7450s # # include "config.h" 7450s # #endif 7450s # 7450s # #include 7450s # #ifdef G_OS_UNIX 7450s # # include 7450s # #endif 7450s # 7450s # #ifdef G_ENABLE_DEBUG 7450s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7450s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7450s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7450s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7450s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7450s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7450s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7450s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7450s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7450s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7450s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7450s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7450s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7450s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7450s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7450s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7450s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7450s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7450s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7450s # #else /* !G_ENABLE_DEBUG */ 7450s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7450s # * Do not access GValues directly in your code. Instead, use the 7450s # * g_value_get_*() functions 7450s # */ 7450s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7450s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7450s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7450s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7450s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7450s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7450s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7450s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7450s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7450s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7450s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7450s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7450s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7450s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7450s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7450s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7450s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7450s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7450s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7450s # #endif /* !G_ENABLE_DEBUG */ 7450s # 7450s # typedef struct 7450s # { 7450s # GDBusArgInfo parent_struct; 7450s # gboolean use_gvariant; 7450s # } _ExtendedGDBusArgInfo; 7450s # 7450s # typedef struct 7450s # { 7450s # GDBusMethodInfo parent_struct; 7450s # const gchar *signal_name; 7450s # gboolean pass_fdlist; 7450s # } _ExtendedGDBusMethodInfo; 7450s # 7450s # typedef struct 7450s # { 7450s # GDBusSignalInfo parent_struct; 7450s # const gchar *signal_name; 7450s # } _ExtendedGDBusSignalInfo; 7450s # 7450s # typedef struct 7450s # { 7450s # GDBusPropertyInfo parent_struct; 7450s # const gchar *hyphen_name; 7450s # guint use_gvariant : 1; 7450s # guint emits_changed_signal : 1; 7450s # } _ExtendedGDBusPropertyInfo; 7450s # 7450s # typedef struct 7450s # { 7450s # GDBusInterfaceInfo parent_struct; 7450s # const gchar *hyphen_name; 7450s # } _ExtendedGDBusInterfaceInfo; 7450s # 7450s # typedef struct 7450s # { 7450s # const _ExtendedGDBusPropertyInfo *info; 7450s # guint prop_id; 7450s # GValue orig_value; /* the value before the change */ 7450s # } ChangedProperty; 7450s # 7450s # static void 7450s # _changed_property_free (ChangedProperty *data) 7450s # { 7450s # g_value_unset (&data->orig_value); 7450s # g_free (data); 7450s # } 7450s # 7450s # static gboolean 7450s # _g_strv_equal0 (gchar **a, gchar **b) 7450s # { 7450s # gboolean ret = FALSE; 7450s # guint n; 7450s # if (a == NULL && b == NULL) 7450s # { 7450s # ret = TRUE; 7450s # goto out; 7450s # } 7450s # if (a == NULL || b == NULL) 7450s # goto out; 7450s # if (g_strv_length (a) != g_strv_length (b)) 7450s # goto out; 7450s # for (n = 0; a[n] != NULL; n++) 7450s # if (g_strcmp0 (a[n], b[n]) != 0) 7450s # goto out; 7450s # ret = TRUE; 7450s # out: 7450s # return ret; 7450s # } 7450s # 7450s # static gboolean 7450s # _g_variant_equal0 (GVariant *a, GVariant *b) 7450s # { 7450s # gboolean ret = FALSE; 7450s # if (a == NULL && b == NULL) 7450s # { 7450s # ret = TRUE; 7450s # goto out; 7450s # } 7450s # if (a == NULL || b == NULL) 7450s # goto out; 7450s # ret = g_variant_equal (a, b); 7450s # out: 7450s # return ret; 7450s # } 7450s # 7450s # G_GNUC_UNUSED static gboolean 7450s # _g_value_equal (const GValue *a, const GValue *b) 7450s # { 7450s # gboolean ret = FALSE; 7450s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7450s # switch (G_VALUE_TYPE (a)) 7450s # { 7450s # case G_TYPE_BOOLEAN: 7450s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7450s # break; 7450s # case G_TYPE_UCHAR: 7450s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7450s # break; 7450s # case G_TYPE_INT: 7450s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7450s # break; 7450s # case G_TYPE_UINT: 7450s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7450s # break; 7450s # case G_TYPE_INT64: 7450s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7450s # break; 7450s # case G_TYPE_UINT64: 7450s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7450s # break; 7450s # case G_TYPE_DOUBLE: 7450s # { 7450s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7450s # gdouble da = g_value_get_double (a); 7450s # gdouble db = g_value_get_double (b); 7450s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7450s # } 7450s # break; 7450s # case G_TYPE_STRING: 7450s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7450s # break; 7450s # case G_TYPE_VARIANT: 7450s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7450s # break; 7450s # default: 7450s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7450s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7450s # else 7450s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7450s # break; 7450s # } 7450s # return ret; 7450s # } 7450s # 7450s # /* ------------------------------------------------------------------------ 7450s # * Code for interface org.project.UsefulInterface 7450s # * ------------------------------------------------------------------------ 7450s # */ 7450s # 7450s # /** 7450s # * SECTION:OrgProjectUsefulInterface 7450s # * @title: OrgProjectUsefulInterface 7450s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 7450s # * 7450s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 7450s # */ 7450s # 7450s # enum 7450s # { 7450s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 7450s # }; 7450s # 7450s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 7450s # 7450s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 7450s # 7450s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 7450s # { 7450s # { 7450s # -1, 7450s # (gchar *) "SimpleSignal", 7450s # NULL, 7450s # NULL 7450s # }, 7450s # "simple-signal" 7450s # }; 7450s # 7450s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 7450s # { 7450s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 7450s # NULL 7450s # }; 7450s # 7450s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 7450s # { 7450s # { 7450s # -1, 7450s # (gchar *) "org.project.UsefulInterface", 7450s # NULL, 7450s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 7450s # NULL, 7450s # NULL 7450s # }, 7450s # "org-project-useful-interface", 7450s # }; 7450s # 7450s # 7450s # /** 7450s # * org_project_useful_interface_interface_info: 7450s # * 7450s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 7450s # * 7450s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7450s # */ 7450s # GDBusInterfaceInfo * 7450s # org_project_useful_interface_interface_info (void) 7450s # { 7450s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_override_properties: 7450s # * @klass: The class structure for a #GObject derived class. 7450s # * @property_id_begin: The property id to assign to the first overridden property. 7450s # * 7450s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 7450s # * The properties are overridden in the order they are defined. 7450s # * 7450s # * Returns: The last property id. 7450s # */ 7450s # guint 7450s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7450s # { 7450s # return property_id_begin - 1; 7450s # } 7450s # 7450s # 7450s # inline static void 7450s # org_project_useful_interface_signal_marshal_simple_signal ( 7450s # GClosure *closure, 7450s # GValue *return_value, 7450s # unsigned int n_param_values, 7450s # const GValue *param_values, 7450s # void *invocation_hint, 7450s # void *marshal_data) 7450s # { 7450s # g_cclosure_marshal_VOID__VOID (closure, 7450s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7450s # } 7450s # 7450s # 7450s # /** 7450s # * OrgProjectUsefulInterface: 7450s # * 7450s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 7450s # */ 7450s # 7450s # /** 7450s # * OrgProjectUsefulInterfaceIface: 7450s # * @parent_iface: The parent interface. 7450s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 7450s # * 7450s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 7450s # */ 7450s # 7450s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 7450s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 7450s # 7450s # static void 7450s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 7450s # { 7450s # /* GObject signals for received D-Bus signals: */ 7450s # /** 7450s # * OrgProjectUsefulInterface::simple-signal: 7450s # * @object: A #OrgProjectUsefulInterface. 7450s # * 7450s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7450s # * 7450s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7450s # */ 7450s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 7450s # g_signal_new ("simple-signal", 7450s # G_TYPE_FROM_INTERFACE (iface), 7450s # G_SIGNAL_RUN_LAST, 7450s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 7450s # NULL, 7450s # NULL, 7450s # org_project_useful_interface_signal_marshal_simple_signal, 7450s # G_TYPE_NONE, 7450s # 0); 7450s # 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_emit_simple_signal: 7450s # * @object: A #OrgProjectUsefulInterface. 7450s # * 7450s # * Emits the "SimpleSignal" D-Bus signal. 7450s # */ 7450s # void 7450s # org_project_useful_interface_emit_simple_signal ( 7450s # OrgProjectUsefulInterface *object) 7450s # { 7450s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 7450s # } 7450s # 7450s # /* ------------------------------------------------------------------------ */ 7450s # 7450s # /** 7450s # * OrgProjectUsefulInterfaceProxy: 7450s # * 7450s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 7450s # */ 7450s # 7450s # /** 7450s # * OrgProjectUsefulInterfaceProxyClass: 7450s # * @parent_class: The parent class. 7450s # * 7450s # * Class structure for #OrgProjectUsefulInterfaceProxy. 7450s # */ 7450s # 7450s # struct _OrgProjectUsefulInterfaceProxyPrivate 7450s # { 7450s # GData *qdata; 7450s # }; 7450s # 7450s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 7450s # 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7450s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7450s # 7450s # #else 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 7450s # 7450s # #endif 7450s # static void 7450s # org_project_useful_interface_proxy_finalize (GObject *object) 7450s # { 7450s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 7450s # g_datalist_clear (&proxy->priv->qdata); 7450s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7450s # guint prop_id G_GNUC_UNUSED, 7450s # GValue *value G_GNUC_UNUSED, 7450s # GParamSpec *pspec G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7450s # guint prop_id G_GNUC_UNUSED, 7450s # const GValue *value G_GNUC_UNUSED, 7450s # GParamSpec *pspec G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 7450s # const gchar *sender_name G_GNUC_UNUSED, 7450s # const gchar *signal_name, 7450s # GVariant *parameters) 7450s # { 7450s # _ExtendedGDBusSignalInfo *info; 7450s # GVariantIter iter; 7450s # GVariant *child; 7450s # GValue *paramv; 7450s # gsize num_params; 7450s # gsize n; 7450s # guint signal_id; 7450s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 7450s # if (info == NULL) 7450s # return; 7450s # num_params = g_variant_n_children (parameters); 7450s # paramv = g_new0 (GValue, num_params + 1); 7450s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7450s # g_value_set_object (¶mv[0], proxy); 7450s # g_variant_iter_init (&iter, parameters); 7450s # n = 1; 7450s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7450s # { 7450s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7450s # if (arg_info->use_gvariant) 7450s # { 7450s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7450s # g_value_set_variant (¶mv[n], child); 7450s # n++; 7450s # } 7450s # else 7450s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7450s # g_variant_unref (child); 7450s # } 7450s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7450s # g_signal_emitv (paramv, signal_id, 0, NULL); 7450s # for (n = 0; n < num_params + 1; n++) 7450s # g_value_unset (¶mv[n]); 7450s # g_free (paramv); 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 7450s # GVariant *changed_properties, 7450s # const gchar *const *invalidated_properties) 7450s # { 7450s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 7450s # guint n; 7450s # const gchar *key; 7450s # GVariantIter *iter; 7450s # _ExtendedGDBusPropertyInfo *info; 7450s # g_variant_get (changed_properties, "a{sv}", &iter); 7450s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7450s # { 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 7450s # g_datalist_remove_data (&proxy->priv->qdata, key); 7450s # if (info != NULL) 7450s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7450s # } 7450s # g_variant_iter_free (iter); 7450s # for (n = 0; invalidated_properties[n] != NULL; n++) 7450s # { 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 7450s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7450s # if (info != NULL) 7450s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7450s # } 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 7450s # { 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 7450s # #else 7450s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 7450s # #endif 7450s # 7450s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 7450s # { 7450s # GObjectClass *gobject_class; 7450s # GDBusProxyClass *proxy_class; 7450s # 7450s # gobject_class = G_OBJECT_CLASS (klass); 7450s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 7450s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 7450s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 7450s # 7450s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7450s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 7450s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 7450s # 7450s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7450s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 7450s # #endif 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_proxy_new: 7450s # * @connection: A #GDBusConnection. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7450s # * @user_data: User data to pass to @callback. 7450s # * 7450s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 7450s # * 7450s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7450s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 7450s # * 7450s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7450s # */ 7450s # void 7450s # org_project_useful_interface_proxy_new ( 7450s # GDBusConnection *connection, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GAsyncReadyCallback callback, 7450s # gpointer user_data) 7450s # { 7450s # g_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); 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_proxy_new_finish: 7450s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectUsefulInterface * 7450s # org_project_useful_interface_proxy_new_finish ( 7450s # GAsyncResult *res, 7450s # GError **error) 7450s # { 7450s # GObject *ret; 7450s # GObject *source_object; 7450s # source_object = g_async_result_get_source_object (res); 7450s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7450s # g_object_unref (source_object); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_proxy_new_sync: 7450s # * @connection: A #GDBusConnection. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 7450s # * 7450s # * The calling thread is blocked until a reply is received. 7450s # * 7450s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectUsefulInterface * 7450s # org_project_useful_interface_proxy_new_sync ( 7450s # GDBusConnection *connection, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GError **error) 7450s # { 7450s # GInitable *ret; 7450s # 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); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # 7450s # /** 7450s # * org_project_useful_interface_proxy_new_for_bus: 7450s # * @bus_type: A #GBusType. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: A bus name (well-known or unique). 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7450s # * @user_data: User data to pass to @callback. 7450s # * 7450s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7450s # * 7450s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7450s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 7450s # * 7450s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7450s # */ 7450s # void 7450s # org_project_useful_interface_proxy_new_for_bus ( 7450s # GBusType bus_type, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GAsyncReadyCallback callback, 7450s # gpointer user_data) 7450s # { 7450s # g_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); 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_proxy_new_for_bus_finish: 7450s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectUsefulInterface * 7450s # org_project_useful_interface_proxy_new_for_bus_finish ( 7450s # GAsyncResult *res, 7450s # GError **error) 7450s # { 7450s # GObject *ret; 7450s # GObject *source_object; 7450s # source_object = g_async_result_get_source_object (res); 7450s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7450s # g_object_unref (source_object); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_proxy_new_for_bus_sync: 7450s # * @bus_type: A #GBusType. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: A bus name (well-known or unique). 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7450s # * 7450s # * The calling thread is blocked until a reply is received. 7450s # * 7450s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectUsefulInterface * 7450s # org_project_useful_interface_proxy_new_for_bus_sync ( 7450s # GBusType bus_type, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GError **error) 7450s # { 7450s # GInitable *ret; 7450s # 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); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # 7450s # /* ------------------------------------------------------------------------ */ 7450s # 7450s # /** 7450s # * OrgProjectUsefulInterfaceSkeleton: 7450s # * 7450s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7450s # */ 7450s # 7450s # /** 7450s # * OrgProjectUsefulInterfaceSkeletonClass: 7450s # * @parent_class: The parent class. 7450s # * 7450s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 7450s # */ 7450s # 7450s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 7450s # { 7450s # GValue *properties; 7450s # GList *changed_properties; 7450s # GSource *changed_properties_idle_source; 7450s # GMainContext *context; 7450s # GMutex lock; 7450s # }; 7450s # 7450s # static void 7450s # _org_project_useful_interface_skeleton_handle_method_call ( 7450s # GDBusConnection *connection G_GNUC_UNUSED, 7450s # const gchar *sender G_GNUC_UNUSED, 7450s # const gchar *object_path G_GNUC_UNUSED, 7450s # const gchar *interface_name, 7450s # const gchar *method_name, 7450s # GVariant *parameters, 7450s # GDBusMethodInvocation *invocation, 7450s # gpointer user_data) 7450s # { 7450s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7450s # _ExtendedGDBusMethodInfo *info; 7450s # GVariantIter iter; 7450s # GVariant *child; 7450s # GValue *paramv; 7450s # gsize num_params; 7450s # guint num_extra; 7450s # gsize n; 7450s # guint signal_id; 7450s # GValue return_value = G_VALUE_INIT; 7450s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7450s # g_assert (info != NULL); 7450s # num_params = g_variant_n_children (parameters); 7450s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7450s # n = 0; 7450s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7450s # g_value_set_object (¶mv[n++], skeleton); 7450s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7450s # g_value_set_object (¶mv[n++], invocation); 7450s # if (info->pass_fdlist) 7450s # { 7450s # #ifdef G_OS_UNIX 7450s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7450s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7450s # #else 7450s # g_assert_not_reached (); 7450s # #endif 7450s # } 7450s # g_variant_iter_init (&iter, parameters); 7450s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7450s # { 7450s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7450s # if (arg_info->use_gvariant) 7450s # { 7450s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7450s # g_value_set_variant (¶mv[n], child); 7450s # n++; 7450s # } 7450s # else 7450s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7450s # g_variant_unref (child); 7450s # } 7450s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 7450s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7450s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7450s # if (!g_value_get_boolean (&return_value)) 7450s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7450s # g_value_unset (&return_value); 7450s # for (n = 0; n < num_params + num_extra; n++) 7450s # g_value_unset (¶mv[n]); 7450s # g_free (paramv); 7450s # } 7450s # 7450s # static GVariant * 7450s # _org_project_useful_interface_skeleton_handle_get_property ( 7450s # GDBusConnection *connection G_GNUC_UNUSED, 7450s # const gchar *sender G_GNUC_UNUSED, 7450s # const gchar *object_path G_GNUC_UNUSED, 7450s # const gchar *interface_name G_GNUC_UNUSED, 7450s # const gchar *property_name, 7450s # GError **error, 7450s # gpointer user_data) 7450s # { 7450s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7450s # GValue value = G_VALUE_INIT; 7450s # GParamSpec *pspec; 7450s # _ExtendedGDBusPropertyInfo *info; 7450s # GVariant *ret; 7450s # ret = NULL; 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7450s # g_assert (info != NULL); 7450s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7450s # if (pspec == NULL) 7450s # { 7450s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7450s # } 7450s # else 7450s # { 7450s # g_value_init (&value, pspec->value_type); 7450s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7450s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7450s # g_value_unset (&value); 7450s # } 7450s # return ret; 7450s # } 7450s # 7450s # static gboolean 7450s # _org_project_useful_interface_skeleton_handle_set_property ( 7450s # GDBusConnection *connection G_GNUC_UNUSED, 7450s # const gchar *sender G_GNUC_UNUSED, 7450s # const gchar *object_path G_GNUC_UNUSED, 7450s # const gchar *interface_name G_GNUC_UNUSED, 7450s # const gchar *property_name, 7450s # GVariant *variant, 7450s # GError **error, 7450s # gpointer user_data) 7450s # { 7450s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 7450s # GValue value = G_VALUE_INIT; 7450s # GParamSpec *pspec; 7450s # _ExtendedGDBusPropertyInfo *info; 7450s # gboolean ret; 7450s # ret = FALSE; 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 7450s # g_assert (info != NULL); 7450s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7450s # if (pspec == NULL) 7450s # { 7450s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7450s # } 7450s # else 7450s # { 7450s # if (info->use_gvariant) 7450s # g_value_set_variant (&value, variant); 7450s # else 7450s # g_dbus_gvariant_to_gvalue (variant, &value); 7450s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7450s # g_value_unset (&value); 7450s # ret = TRUE; 7450s # } 7450s # return ret; 7450s # } 7450s # 7450s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 7450s # { 7450s # _org_project_useful_interface_skeleton_handle_method_call, 7450s # _org_project_useful_interface_skeleton_handle_get_property, 7450s # _org_project_useful_interface_skeleton_handle_set_property, 7450s # {NULL} 7450s # }; 7450s # 7450s # static GDBusInterfaceInfo * 7450s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7450s # { 7450s # return org_project_useful_interface_interface_info (); 7450s # } 7450s # 7450s # static GDBusInterfaceVTable * 7450s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7450s # { 7450s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 7450s # } 7450s # 7450s # static GVariant * 7450s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7450s # { 7450s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 7450s # 7450s # GVariantBuilder builder; 7450s # guint n; 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7450s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7450s # #else 7450s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7450s # #endif 7450s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 7450s # goto out; 7450s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 7450s # { 7450s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 7450s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7450s # { 7450s # GVariant *value; 7450s # 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); 7450s # if (value != NULL) 7450s # { 7450s # g_variant_take_ref (value); 7450s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7450s # g_variant_unref (value); 7450s # } 7450s # } 7450s # } 7450s # out: 7450s # return g_variant_builder_end (&builder); 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # static void 7450s # _org_project_useful_interface_on_signal_simple_signal ( 7450s # OrgProjectUsefulInterface *object) 7450s # { 7450s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7450s # 7450s # GList *connections, *l; 7450s # GVariant *signal_variant; 7450s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7450s # 7450s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7450s # for (l = connections; l != NULL; l = l->next) 7450s # { 7450s # GDBusConnection *connection = l->data; 7450s # g_dbus_connection_emit_signal (connection, 7450s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 7450s # signal_variant, NULL); 7450s # } 7450s # g_variant_unref (signal_variant); 7450s # g_list_free_full (connections, g_object_unref); 7450s # } 7450s # 7450s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7450s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7450s # 7450s # #else 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 7450s # 7450s # #endif 7450s # static void 7450s # org_project_useful_interface_skeleton_finalize (GObject *object) 7450s # { 7450s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 7450s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7450s # if (skeleton->priv->changed_properties_idle_source != NULL) 7450s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7450s # g_main_context_unref (skeleton->priv->context); 7450s # g_mutex_clear (&skeleton->priv->lock); 7450s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 7450s # { 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 7450s # #else 7450s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 7450s # #endif 7450s # 7450s # g_mutex_init (&skeleton->priv->lock); 7450s # skeleton->priv->context = g_main_context_ref_thread_default (); 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 7450s # { 7450s # GObjectClass *gobject_class; 7450s # GDBusInterfaceSkeletonClass *skeleton_class; 7450s # 7450s # gobject_class = G_OBJECT_CLASS (klass); 7450s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 7450s # 7450s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7450s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 7450s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 7450s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 7450s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 7450s # 7450s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7450s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 7450s # #endif 7450s # } 7450s # 7450s # static void 7450s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 7450s # { 7450s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 7450s # } 7450s # 7450s # /** 7450s # * org_project_useful_interface_skeleton_new: 7450s # * 7450s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 7450s # */ 7450s # OrgProjectUsefulInterface * 7450s # org_project_useful_interface_skeleton_new (void) 7450s # { 7450s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 7450s # } 7450s # 7450s # /* ------------------------------------------------------------------------ 7450s # * Code for interface org.project.OtherIface 7450s # * ------------------------------------------------------------------------ 7450s # */ 7450s # 7450s # /** 7450s # * SECTION:OrgProjectOtherIface 7450s # * @title: OrgProjectOtherIface 7450s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 7450s # * 7450s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 7450s # */ 7450s # 7450s # enum 7450s # { 7450s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 7450s # }; 7450s # 7450s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 7450s # 7450s # /* ---- Introspection data for org.project.OtherIface ---- */ 7450s # 7450s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 7450s # { 7450s # { 7450s # -1, 7450s # (gchar *) "SimpleSignal", 7450s # NULL, 7450s # NULL 7450s # }, 7450s # "simple-signal" 7450s # }; 7450s # 7450s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 7450s # { 7450s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 7450s # NULL 7450s # }; 7450s # 7450s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 7450s # { 7450s # { 7450s # -1, 7450s # (gchar *) "org.project.OtherIface", 7450s # NULL, 7450s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 7450s # NULL, 7450s # NULL 7450s # }, 7450s # "org-project-other-iface", 7450s # }; 7450s # 7450s # 7450s # /** 7450s # * org_project_other_iface_interface_info: 7450s # * 7450s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 7450s # * 7450s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7450s # */ 7450s # GDBusInterfaceInfo * 7450s # org_project_other_iface_interface_info (void) 7450s # { 7450s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_override_properties: 7450s # * @klass: The class structure for a #GObject derived class. 7450s # * @property_id_begin: The property id to assign to the first overridden property. 7450s # * 7450s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 7450s # * The properties are overridden in the order they are defined. 7450s # * 7450s # * Returns: The last property id. 7450s # */ 7450s # guint 7450s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7450s # { 7450s # return property_id_begin - 1; 7450s # } 7450s # 7450s # 7450s # inline static void 7450s # org_project_other_iface_signal_marshal_simple_signal ( 7450s # GClosure *closure, 7450s # GValue *return_value, 7450s # unsigned int n_param_values, 7450s # const GValue *param_values, 7450s # void *invocation_hint, 7450s # void *marshal_data) 7450s # { 7450s # g_cclosure_marshal_VOID__VOID (closure, 7450s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7450s # } 7450s # 7450s # 7450s # /** 7450s # * OrgProjectOtherIface: 7450s # * 7450s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 7450s # */ 7450s # 7450s # /** 7450s # * OrgProjectOtherIfaceIface: 7450s # * @parent_iface: The parent interface. 7450s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 7450s # * 7450s # * Virtual table for the D-Bus interface org.project.OtherIface. 7450s # */ 7450s # 7450s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 7450s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 7450s # 7450s # static void 7450s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 7450s # { 7450s # /* GObject signals for received D-Bus signals: */ 7450s # /** 7450s # * OrgProjectOtherIface::simple-signal: 7450s # * @object: A #OrgProjectOtherIface. 7450s # * 7450s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7450s # * 7450s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7450s # */ 7450s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 7450s # g_signal_new ("simple-signal", 7450s # G_TYPE_FROM_INTERFACE (iface), 7450s # G_SIGNAL_RUN_LAST, 7450s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 7450s # NULL, 7450s # NULL, 7450s # org_project_other_iface_signal_marshal_simple_signal, 7450s # G_TYPE_NONE, 7450s # 0); 7450s # 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_emit_simple_signal: 7450s # * @object: A #OrgProjectOtherIface. 7450s # * 7450s # * Emits the "SimpleSignal" D-Bus signal. 7450s # */ 7450s # void 7450s # org_project_other_iface_emit_simple_signal ( 7450s # OrgProjectOtherIface *object) 7450s # { 7450s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 7450s # } 7450s # 7450s # /* ------------------------------------------------------------------------ */ 7450s # 7450s # /** 7450s # * OrgProjectOtherIfaceProxy: 7450s # * 7450s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 7450s # */ 7450s # 7450s # /** 7450s # * OrgProjectOtherIfaceProxyClass: 7450s # * @parent_class: The parent class. 7450s # * 7450s # * Class structure for #OrgProjectOtherIfaceProxy. 7450s # */ 7450s # 7450s # struct _OrgProjectOtherIfaceProxyPrivate 7450s # { 7450s # GData *qdata; 7450s # }; 7450s # 7450s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 7450s # 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 7450s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 7450s # 7450s # #else 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 7450s # 7450s # #endif 7450s # static void 7450s # org_project_other_iface_proxy_finalize (GObject *object) 7450s # { 7450s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 7450s # g_datalist_clear (&proxy->priv->qdata); 7450s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7450s # guint prop_id G_GNUC_UNUSED, 7450s # GValue *value G_GNUC_UNUSED, 7450s # GParamSpec *pspec G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7450s # guint prop_id G_GNUC_UNUSED, 7450s # const GValue *value G_GNUC_UNUSED, 7450s # GParamSpec *pspec G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 7450s # const gchar *sender_name G_GNUC_UNUSED, 7450s # const gchar *signal_name, 7450s # GVariant *parameters) 7450s # { 7450s # _ExtendedGDBusSignalInfo *info; 7450s # GVariantIter iter; 7450s # GVariant *child; 7450s # GValue *paramv; 7450s # gsize num_params; 7450s # gsize n; 7450s # guint signal_id; 7450s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 7450s # if (info == NULL) 7450s # return; 7450s # num_params = g_variant_n_children (parameters); 7450s # paramv = g_new0 (GValue, num_params + 1); 7450s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 7450s # g_value_set_object (¶mv[0], proxy); 7450s # g_variant_iter_init (&iter, parameters); 7450s # n = 1; 7450s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7450s # { 7450s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7450s # if (arg_info->use_gvariant) 7450s # { 7450s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7450s # g_value_set_variant (¶mv[n], child); 7450s # n++; 7450s # } 7450s # else 7450s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7450s # g_variant_unref (child); 7450s # } 7450s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 7450s # g_signal_emitv (paramv, signal_id, 0, NULL); 7450s # for (n = 0; n < num_params + 1; n++) 7450s # g_value_unset (¶mv[n]); 7450s # g_free (paramv); 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7450s # GVariant *changed_properties, 7450s # const gchar *const *invalidated_properties) 7450s # { 7450s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 7450s # guint n; 7450s # const gchar *key; 7450s # GVariantIter *iter; 7450s # _ExtendedGDBusPropertyInfo *info; 7450s # g_variant_get (changed_properties, "a{sv}", &iter); 7450s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7450s # { 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 7450s # g_datalist_remove_data (&proxy->priv->qdata, key); 7450s # if (info != NULL) 7450s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7450s # } 7450s # g_variant_iter_free (iter); 7450s # for (n = 0; invalidated_properties[n] != NULL; n++) 7450s # { 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 7450s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7450s # if (info != NULL) 7450s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7450s # } 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 7450s # { 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 7450s # #else 7450s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 7450s # #endif 7450s # 7450s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 7450s # { 7450s # GObjectClass *gobject_class; 7450s # GDBusProxyClass *proxy_class; 7450s # 7450s # gobject_class = G_OBJECT_CLASS (klass); 7450s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 7450s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 7450s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 7450s # 7450s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7450s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 7450s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 7450s # 7450s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7450s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 7450s # #endif 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_proxy_new: 7450s # * @connection: A #GDBusConnection. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7450s # * @user_data: User data to pass to @callback. 7450s # * 7450s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 7450s # * 7450s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7450s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 7450s # * 7450s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7450s # */ 7450s # void 7450s # org_project_other_iface_proxy_new ( 7450s # GDBusConnection *connection, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GAsyncReadyCallback callback, 7450s # gpointer user_data) 7450s # { 7450s # 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); 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_proxy_new_finish: 7450s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Finishes an operation started with org_project_other_iface_proxy_new(). 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectOtherIface * 7450s # org_project_other_iface_proxy_new_finish ( 7450s # GAsyncResult *res, 7450s # GError **error) 7450s # { 7450s # GObject *ret; 7450s # GObject *source_object; 7450s # source_object = g_async_result_get_source_object (res); 7450s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7450s # g_object_unref (source_object); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_OTHER_IFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_proxy_new_sync: 7450s # * @connection: A #GDBusConnection. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 7450s # * 7450s # * The calling thread is blocked until a reply is received. 7450s # * 7450s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectOtherIface * 7450s # org_project_other_iface_proxy_new_sync ( 7450s # GDBusConnection *connection, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GError **error) 7450s # { 7450s # GInitable *ret; 7450s # 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); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_OTHER_IFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # 7450s # /** 7450s # * org_project_other_iface_proxy_new_for_bus: 7450s # * @bus_type: A #GBusType. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: A bus name (well-known or unique). 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7450s # * @user_data: User data to pass to @callback. 7450s # * 7450s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7450s # * 7450s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7450s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 7450s # * 7450s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7450s # */ 7450s # void 7450s # org_project_other_iface_proxy_new_for_bus ( 7450s # GBusType bus_type, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GAsyncReadyCallback callback, 7450s # gpointer user_data) 7450s # { 7450s # 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); 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_proxy_new_for_bus_finish: 7450s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectOtherIface * 7450s # org_project_other_iface_proxy_new_for_bus_finish ( 7450s # GAsyncResult *res, 7450s # GError **error) 7450s # { 7450s # GObject *ret; 7450s # GObject *source_object; 7450s # source_object = g_async_result_get_source_object (res); 7450s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7450s # g_object_unref (source_object); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_OTHER_IFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_proxy_new_for_bus_sync: 7450s # * @bus_type: A #GBusType. 7450s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7450s # * @name: A bus name (well-known or unique). 7450s # * @object_path: An object path. 7450s # * @cancellable: (nullable): A #GCancellable or %NULL. 7450s # * @error: Return location for error or %NULL 7450s # * 7450s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7450s # * 7450s # * The calling thread is blocked until a reply is received. 7450s # * 7450s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 7450s # */ 7450s # OrgProjectOtherIface * 7450s # org_project_other_iface_proxy_new_for_bus_sync ( 7450s # GBusType bus_type, 7450s # GDBusProxyFlags flags, 7450s # const gchar *name, 7450s # const gchar *object_path, 7450s # GCancellable *cancellable, 7450s # GError **error) 7450s # { 7450s # GInitable *ret; 7450s # 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); 7450s # if (ret != NULL) 7450s # return ORG_PROJECT_OTHER_IFACE (ret); 7450s # else 7450s # return NULL; 7450s # } 7450s # 7450s # 7450s # /* ------------------------------------------------------------------------ */ 7450s # 7450s # /** 7450s # * OrgProjectOtherIfaceSkeleton: 7450s # * 7450s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7450s # */ 7450s # 7450s # /** 7450s # * OrgProjectOtherIfaceSkeletonClass: 7450s # * @parent_class: The parent class. 7450s # * 7450s # * Class structure for #OrgProjectOtherIfaceSkeleton. 7450s # */ 7450s # 7450s # struct _OrgProjectOtherIfaceSkeletonPrivate 7450s # { 7450s # GValue *properties; 7450s # GList *changed_properties; 7450s # GSource *changed_properties_idle_source; 7450s # GMainContext *context; 7450s # GMutex lock; 7450s # }; 7450s # 7450s # static void 7450s # _org_project_other_iface_skeleton_handle_method_call ( 7450s # GDBusConnection *connection G_GNUC_UNUSED, 7450s # const gchar *sender G_GNUC_UNUSED, 7450s # const gchar *object_path G_GNUC_UNUSED, 7450s # const gchar *interface_name, 7450s # const gchar *method_name, 7450s # GVariant *parameters, 7450s # GDBusMethodInvocation *invocation, 7450s # gpointer user_data) 7450s # { 7450s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 7450s # _ExtendedGDBusMethodInfo *info; 7450s # GVariantIter iter; 7450s # GVariant *child; 7450s # GValue *paramv; 7450s # gsize num_params; 7450s # guint num_extra; 7450s # gsize n; 7450s # guint signal_id; 7450s # GValue return_value = G_VALUE_INIT; 7450s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7450s # g_assert (info != NULL); 7450s # num_params = g_variant_n_children (parameters); 7450s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7450s # n = 0; 7450s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 7450s # g_value_set_object (¶mv[n++], skeleton); 7450s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7450s # g_value_set_object (¶mv[n++], invocation); 7450s # if (info->pass_fdlist) 7450s # { 7450s # #ifdef G_OS_UNIX 7450s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7450s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7450s # #else 7450s # g_assert_not_reached (); 7450s # #endif 7450s # } 7450s # g_variant_iter_init (&iter, parameters); 7450s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7450s # { 7450s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7450s # if (arg_info->use_gvariant) 7450s # { 7450s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7450s # g_value_set_variant (¶mv[n], child); 7450s # n++; 7450s # } 7450s # else 7450s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7450s # g_variant_unref (child); 7450s # } 7450s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 7450s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7450s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7450s # if (!g_value_get_boolean (&return_value)) 7450s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7450s # g_value_unset (&return_value); 7450s # for (n = 0; n < num_params + num_extra; n++) 7450s # g_value_unset (¶mv[n]); 7450s # g_free (paramv); 7450s # } 7450s # 7450s # static GVariant * 7450s # _org_project_other_iface_skeleton_handle_get_property ( 7450s # GDBusConnection *connection G_GNUC_UNUSED, 7450s # const gchar *sender G_GNUC_UNUSED, 7450s # const gchar *object_path G_GNUC_UNUSED, 7450s # const gchar *interface_name G_GNUC_UNUSED, 7450s # const gchar *property_name, 7450s # GError **error, 7450s # gpointer user_data) 7450s # { 7450s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 7450s # GValue value = G_VALUE_INIT; 7450s # GParamSpec *pspec; 7450s # _ExtendedGDBusPropertyInfo *info; 7450s # GVariant *ret; 7450s # ret = NULL; 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 7450s # g_assert (info != NULL); 7450s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7450s # if (pspec == NULL) 7450s # { 7450s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7450s # } 7450s # else 7450s # { 7450s # g_value_init (&value, pspec->value_type); 7450s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7450s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7450s # g_value_unset (&value); 7450s # } 7450s # return ret; 7450s # } 7450s # 7450s # static gboolean 7450s # _org_project_other_iface_skeleton_handle_set_property ( 7450s # GDBusConnection *connection G_GNUC_UNUSED, 7450s # const gchar *sender G_GNUC_UNUSED, 7450s # const gchar *object_path G_GNUC_UNUSED, 7450s # const gchar *interface_name G_GNUC_UNUSED, 7450s # const gchar *property_name, 7450s # GVariant *variant, 7450s # GError **error, 7450s # gpointer user_data) 7450s # { 7450s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 7450s # GValue value = G_VALUE_INIT; 7450s # GParamSpec *pspec; 7450s # _ExtendedGDBusPropertyInfo *info; 7450s # gboolean ret; 7450s # ret = FALSE; 7450s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 7450s # g_assert (info != NULL); 7450s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7450s # if (pspec == NULL) 7450s # { 7450s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7450s # } 7450s # else 7450s # { 7450s # if (info->use_gvariant) 7450s # g_value_set_variant (&value, variant); 7450s # else 7450s # g_dbus_gvariant_to_gvalue (variant, &value); 7450s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7450s # g_value_unset (&value); 7450s # ret = TRUE; 7450s # } 7450s # return ret; 7450s # } 7450s # 7450s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 7450s # { 7450s # _org_project_other_iface_skeleton_handle_method_call, 7450s # _org_project_other_iface_skeleton_handle_get_property, 7450s # _org_project_other_iface_skeleton_handle_set_property, 7450s # {NULL} 7450s # }; 7450s # 7450s # static GDBusInterfaceInfo * 7450s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7450s # { 7450s # return org_project_other_iface_interface_info (); 7450s # } 7450s # 7450s # static GDBusInterfaceVTable * 7450s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7450s # { 7450s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 7450s # } 7450s # 7450s # static GVariant * 7450s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7450s # { 7450s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 7450s # 7450s # GVariantBuilder builder; 7450s # guint n; 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7450s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7450s # #else 7450s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7450s # #endif 7450s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 7450s # goto out; 7450s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7450s # { 7450s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 7450s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7450s # { 7450s # GVariant *value; 7450s # 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); 7450s # if (value != NULL) 7450s # { 7450s # g_variant_take_ref (value); 7450s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7450s # g_variant_unref (value); 7450s # } 7450s # } 7450s # } 7450s # out: 7450s # return g_variant_builder_end (&builder); 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7450s # { 7450s # } 7450s # 7450s # static void 7450s # _org_project_other_iface_on_signal_simple_signal ( 7450s # OrgProjectOtherIface *object) 7450s # { 7450s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 7450s # 7450s # GList *connections, *l; 7450s # GVariant *signal_variant; 7450s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7450s # 7450s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7450s # for (l = connections; l != NULL; l = l->next) 7450s # { 7450s # GDBusConnection *connection = l->data; 7450s # g_dbus_connection_emit_signal (connection, 7450s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 7450s # signal_variant, NULL); 7450s # } 7450s # g_variant_unref (signal_variant); 7450s # g_list_free_full (connections, g_object_unref); 7450s # } 7450s # 7450s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7450s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 7450s # 7450s # #else 7450s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7450s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 7450s # 7450s # #endif 7450s # static void 7450s # org_project_other_iface_skeleton_finalize (GObject *object) 7450s # { 7450s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 7450s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7450s # if (skeleton->priv->changed_properties_idle_source != NULL) 7450s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7450s # g_main_context_unref (skeleton->priv->context); 7450s # g_mutex_clear (&skeleton->priv->lock); 7450s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 7450s # { 7450s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7450s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 7450s # #else 7450s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 7450s # #endif 7450s # 7450s # g_mutex_init (&skeleton->priv->lock); 7450s # skeleton->priv->context = g_main_context_ref_thread_default (); 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 7450s # { 7450s # GObjectClass *gobject_class; 7450s # GDBusInterfaceSkeletonClass *skeleton_class; 7450s # 7450s # gobject_class = G_OBJECT_CLASS (klass); 7450s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 7450s # 7450s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7450s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 7450s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 7450s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 7450s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 7450s # 7450s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7450s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 7450s # #endif 7450s # } 7450s # 7450s # static void 7450s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 7450s # { 7450s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 7450s # } 7450s # 7450s # /** 7450s # * org_project_other_iface_skeleton_new: 7450s # * 7450s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 7450s # * 7450s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 7450s # */ 7450s # OrgProjectOtherIface * 7450s # org_project_other_iface_skeleton_new (void) 7450s # { 7450s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 7450s # } 7450s # Error: 7451s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 7452s # gdbus-codegen: /usr/bin/gdbus-codegen 7452s # tmpdir: /tmp/tmpgj4g72_p 7452s # /tmp/tmpgj4g72_p/tmp3h6vj4mi.xml: 7452s # 7452s # 7452s # 7452s # 7452s # 7452s # 7452s # 7452s # 7452s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgj4g72_p/tmp3h6vj4mi.xml', '--output', '-', '--body'] 7452s # Return code: 0 7452s # Output: 7452s # /* 7452s # * This file is generated by gdbus-codegen, do not modify it. 7452s # * 7452s # * The license of this code is the same as for the D-Bus interface description 7452s # * it was derived from. Note that it links to GLib, so must comply with the 7452s # * LGPL linking clauses. 7452s # */ 7452s # 7452s # #ifdef HAVE_CONFIG_H 7452s # # include "config.h" 7452s # #endif 7452s # 7452s # #include 7452s # #ifdef G_OS_UNIX 7452s # # include 7452s # #endif 7452s # 7452s # #ifdef G_ENABLE_DEBUG 7452s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7452s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7452s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7452s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7452s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7452s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7452s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7452s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7452s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7452s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7452s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7452s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7452s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7452s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7452s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7452s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7452s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7452s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7452s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7452s # #else /* !G_ENABLE_DEBUG */ 7452s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7452s # * Do not access GValues directly in your code. Instead, use the 7452s # * g_value_get_*() functions 7452s # */ 7452s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7452s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7452s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7452s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7452s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7452s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7452s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7452s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7452s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7452s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7452s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7452s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7452s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7452s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7452s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7452s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7452s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7452s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7452s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7452s # #endif /* !G_ENABLE_DEBUG */ 7452s # 7452s # typedef struct 7452s # { 7452s # GDBusArgInfo parent_struct; 7452s # gboolean use_gvariant; 7452s # } _ExtendedGDBusArgInfo; 7452s # 7452s # typedef struct 7452s # { 7452s # GDBusMethodInfo parent_struct; 7452s # const gchar *signal_name; 7452s # gboolean pass_fdlist; 7452s # } _ExtendedGDBusMethodInfo; 7452s # 7452s # typedef struct 7452s # { 7452s # GDBusSignalInfo parent_struct; 7452s # const gchar *signal_name; 7452s # } _ExtendedGDBusSignalInfo; 7452s # 7452s # typedef struct 7452s # { 7452s # GDBusPropertyInfo parent_struct; 7452s # const gchar *hyphen_name; 7452s # guint use_gvariant : 1; 7452s # guint emits_changed_signal : 1; 7452s # } _ExtendedGDBusPropertyInfo; 7452s # 7452s # typedef struct 7452s # { 7452s # GDBusInterfaceInfo parent_struct; 7452s # const gchar *hyphen_name; 7452s # } _ExtendedGDBusInterfaceInfo; 7452s # 7452s # typedef struct 7452s # { 7452s # const _ExtendedGDBusPropertyInfo *info; 7452s # guint prop_id; 7452s # GValue orig_value; /* the value before the change */ 7452s # } ChangedProperty; 7452s # 7452s # static void 7452s # _changed_property_free (ChangedProperty *data) 7452s # { 7452s # g_value_unset (&data->orig_value); 7452s # g_free (data); 7452s # } 7452s # 7452s # static gboolean 7452s # _g_strv_equal0 (gchar **a, gchar **b) 7452s # { 7452s # gboolean ret = FALSE; 7452s # guint n; 7452s # if (a == NULL && b == NULL) 7452s # { 7452s # ret = TRUE; 7452s # goto out; 7452s # } 7452s # if (a == NULL || b == NULL) 7452s # goto out; 7452s # if (g_strv_length (a) != g_strv_length (b)) 7452s # goto out; 7452s # for (n = 0; a[n] != NULL; n++) 7452s # if (g_strcmp0 (a[n], b[n]) != 0) 7452s # goto out; 7452s # ret = TRUE; 7452s # out: 7452s # return ret; 7452s # } 7452s # 7452s # static gboolean 7452s # _g_variant_equal0 (GVariant *a, GVariant *b) 7452s # { 7452s # gboolean ret = FALSE; 7452s # if (a == NULL && b == NULL) 7452s # { 7452s # ret = TRUE; 7452s # goto out; 7452s # } 7452s # if (a == NULL || b == NULL) 7452s # goto out; 7452s # ret = g_variant_equal (a, b); 7452s # out: 7452s # return ret; 7452s # } 7452s # 7452s # G_GNUC_UNUSED static gboolean 7452s # _g_value_equal (const GValue *a, const GValue *b) 7452s # { 7452s # gboolean ret = FALSE; 7452s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7452s # switch (G_VALUE_TYPE (a)) 7452s # { 7452s # case G_TYPE_BOOLEAN: 7452s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7452s # break; 7452s # case G_TYPE_UCHAR: 7452s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7452s # break; 7452s # case G_TYPE_INT: 7452s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7452s # break; 7452s # case G_TYPE_UINT: 7452s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7452s # break; 7452s # case G_TYPE_INT64: 7452s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7452s # break; 7452s # case G_TYPE_UINT64: 7452s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7452s # break; 7452s # case G_TYPE_DOUBLE: 7452s # { 7452s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7452s # gdouble da = g_value_get_double (a); 7452s # gdouble db = g_value_get_double (b); 7452s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7452s # } 7452s # break; 7452s # case G_TYPE_STRING: 7452s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7452s # break; 7452s # case G_TYPE_VARIANT: 7452s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7452s # break; 7452s # default: 7452s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7452s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7452s # else 7452s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7452s # break; 7452s # } 7452s # return ret; 7452s # } 7452s # 7452s # /* ------------------------------------------------------------------------ 7452s # * Code for interface org.project.SignalingIface 7452s # * ------------------------------------------------------------------------ 7452s # */ 7452s # 7452s # /** 7452s # * SECTION:OrgProjectSignalingIface 7452s # * @title: OrgProjectSignalingIface 7452s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7452s # * 7452s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7452s # */ 7452s # 7452s # enum 7452s # { 7452s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7452s # }; 7452s # 7452s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 7452s # 7452s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7452s # 7452s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7452s # { 7452s # { 7452s # -1, 7452s # (gchar *) "SimpleSignal", 7452s # NULL, 7452s # NULL 7452s # }, 7452s # "simple-signal" 7452s # }; 7452s # 7452s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7452s # { 7452s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7452s # NULL 7452s # }; 7452s # 7452s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7452s # { 7452s # { 7452s # -1, 7452s # (gchar *) "org.project.SignalingIface", 7452s # NULL, 7452s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7452s # NULL, 7452s # NULL 7452s # }, 7452s # "org-project-signaling-iface", 7452s # }; 7452s # 7452s # 7452s # /** 7452s # * org_project_signaling_iface_interface_info: 7452s # * 7452s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7452s # * 7452s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7452s # */ 7452s # GDBusInterfaceInfo * 7452s # org_project_signaling_iface_interface_info (void) 7452s # { 7452s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_override_properties: 7452s # * @klass: The class structure for a #GObject derived class. 7452s # * @property_id_begin: The property id to assign to the first overridden property. 7452s # * 7452s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7452s # * The properties are overridden in the order they are defined. 7452s # * 7452s # * Returns: The last property id. 7452s # */ 7452s # guint 7452s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7452s # { 7452s # return property_id_begin - 1; 7452s # } 7452s # 7452s # 7452s # inline static void 7452s # org_project_signaling_iface_signal_marshal_simple_signal ( 7452s # GClosure *closure, 7452s # GValue *return_value, 7452s # unsigned int n_param_values, 7452s # const GValue *param_values, 7452s # void *invocation_hint, 7452s # void *marshal_data) 7452s # { 7452s # g_cclosure_marshal_VOID__VOID (closure, 7452s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7452s # } 7452s # 7452s # 7452s # /** 7452s # * OrgProjectSignalingIface: 7452s # * 7452s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7452s # */ 7452s # 7452s # /** 7452s # * OrgProjectSignalingIfaceIface: 7452s # * @parent_iface: The parent interface. 7452s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7452s # * 7452s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7452s # */ 7452s # 7452s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7452s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7452s # 7452s # static void 7452s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7452s # { 7452s # /* GObject signals for received D-Bus signals: */ 7452s # /** 7452s # * OrgProjectSignalingIface::simple-signal: 7452s # * @object: A #OrgProjectSignalingIface. 7452s # * 7452s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7452s # * 7452s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7452s # */ 7452s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7452s # g_signal_new ("simple-signal", 7452s # G_TYPE_FROM_INTERFACE (iface), 7452s # G_SIGNAL_RUN_LAST, 7452s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7452s # NULL, 7452s # NULL, 7452s # org_project_signaling_iface_signal_marshal_simple_signal, 7452s # G_TYPE_NONE, 7452s # 0); 7452s # 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_emit_simple_signal: 7452s # * @object: A #OrgProjectSignalingIface. 7452s # * 7452s # * Emits the "SimpleSignal" D-Bus signal. 7452s # */ 7452s # void 7452s # org_project_signaling_iface_emit_simple_signal ( 7452s # OrgProjectSignalingIface *object) 7452s # { 7452s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7452s # } 7452s # 7452s # /* ------------------------------------------------------------------------ */ 7452s # 7452s # /** 7452s # * OrgProjectSignalingIfaceProxy: 7452s # * 7452s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7452s # */ 7452s # 7452s # /** 7452s # * OrgProjectSignalingIfaceProxyClass: 7452s # * @parent_class: The parent class. 7452s # * 7452s # * Class structure for #OrgProjectSignalingIfaceProxy. 7452s # */ 7452s # 7452s # struct _OrgProjectSignalingIfaceProxyPrivate 7452s # { 7452s # GData *qdata; 7452s # }; 7452s # 7452s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7452s # 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7452s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7452s # 7452s # #else 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7452s # 7452s # #endif 7452s # static void 7452s # org_project_signaling_iface_proxy_finalize (GObject *object) 7452s # { 7452s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7452s # g_datalist_clear (&proxy->priv->qdata); 7452s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7452s # guint prop_id G_GNUC_UNUSED, 7452s # GValue *value G_GNUC_UNUSED, 7452s # GParamSpec *pspec G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7452s # guint prop_id G_GNUC_UNUSED, 7452s # const GValue *value G_GNUC_UNUSED, 7452s # GParamSpec *pspec G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7452s # const gchar *sender_name G_GNUC_UNUSED, 7452s # const gchar *signal_name, 7452s # GVariant *parameters) 7452s # { 7452s # _ExtendedGDBusSignalInfo *info; 7452s # GVariantIter iter; 7452s # GVariant *child; 7452s # GValue *paramv; 7452s # gsize num_params; 7452s # gsize n; 7452s # guint signal_id; 7452s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7452s # if (info == NULL) 7452s # return; 7452s # num_params = g_variant_n_children (parameters); 7452s # paramv = g_new0 (GValue, num_params + 1); 7452s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7452s # g_value_set_object (¶mv[0], proxy); 7452s # g_variant_iter_init (&iter, parameters); 7452s # n = 1; 7452s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7452s # { 7452s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7452s # if (arg_info->use_gvariant) 7452s # { 7452s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7452s # g_value_set_variant (¶mv[n], child); 7452s # n++; 7452s # } 7452s # else 7452s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7452s # g_variant_unref (child); 7452s # } 7452s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7452s # g_signal_emitv (paramv, signal_id, 0, NULL); 7452s # for (n = 0; n < num_params + 1; n++) 7452s # g_value_unset (¶mv[n]); 7452s # g_free (paramv); 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7452s # GVariant *changed_properties, 7452s # const gchar *const *invalidated_properties) 7452s # { 7452s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7452s # guint n; 7452s # const gchar *key; 7452s # GVariantIter *iter; 7452s # _ExtendedGDBusPropertyInfo *info; 7452s # g_variant_get (changed_properties, "a{sv}", &iter); 7452s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7452s # { 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7452s # g_datalist_remove_data (&proxy->priv->qdata, key); 7452s # if (info != NULL) 7452s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7452s # } 7452s # g_variant_iter_free (iter); 7452s # for (n = 0; invalidated_properties[n] != NULL; n++) 7452s # { 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7452s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7452s # if (info != NULL) 7452s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7452s # } 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7452s # { 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7452s # #else 7452s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7452s # #endif 7452s # 7452s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7452s # { 7452s # GObjectClass *gobject_class; 7452s # GDBusProxyClass *proxy_class; 7452s # 7452s # gobject_class = G_OBJECT_CLASS (klass); 7452s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7452s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7452s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7452s # 7452s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7452s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7452s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7452s # 7452s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7452s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7452s # #endif 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_proxy_new: 7452s # * @connection: A #GDBusConnection. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7452s # * @user_data: User data to pass to @callback. 7452s # * 7452s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7452s # * 7452s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7452s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7452s # * 7452s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7452s # */ 7452s # void 7452s # org_project_signaling_iface_proxy_new ( 7452s # GDBusConnection *connection, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GAsyncReadyCallback callback, 7452s # gpointer user_data) 7452s # { 7452s # 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); 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_proxy_new_finish: 7452s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectSignalingIface * 7452s # org_project_signaling_iface_proxy_new_finish ( 7452s # GAsyncResult *res, 7452s # GError **error) 7452s # { 7452s # GObject *ret; 7452s # GObject *source_object; 7452s # source_object = g_async_result_get_source_object (res); 7452s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7452s # g_object_unref (source_object); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_proxy_new_sync: 7452s # * @connection: A #GDBusConnection. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7452s # * 7452s # * The calling thread is blocked until a reply is received. 7452s # * 7452s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectSignalingIface * 7452s # org_project_signaling_iface_proxy_new_sync ( 7452s # GDBusConnection *connection, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GError **error) 7452s # { 7452s # GInitable *ret; 7452s # 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); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # 7452s # /** 7452s # * org_project_signaling_iface_proxy_new_for_bus: 7452s # * @bus_type: A #GBusType. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: A bus name (well-known or unique). 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7452s # * @user_data: User data to pass to @callback. 7452s # * 7452s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7452s # * 7452s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7452s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7452s # * 7452s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7452s # */ 7452s # void 7452s # org_project_signaling_iface_proxy_new_for_bus ( 7452s # GBusType bus_type, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GAsyncReadyCallback callback, 7452s # gpointer user_data) 7452s # { 7452s # 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); 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7452s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectSignalingIface * 7452s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7452s # GAsyncResult *res, 7452s # GError **error) 7452s # { 7452s # GObject *ret; 7452s # GObject *source_object; 7452s # source_object = g_async_result_get_source_object (res); 7452s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7452s # g_object_unref (source_object); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7452s # * @bus_type: A #GBusType. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: A bus name (well-known or unique). 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7452s # * 7452s # * The calling thread is blocked until a reply is received. 7452s # * 7452s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectSignalingIface * 7452s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7452s # GBusType bus_type, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GError **error) 7452s # { 7452s # GInitable *ret; 7452s # 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); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # 7452s # /* ------------------------------------------------------------------------ */ 7452s # 7452s # /** 7452s # * OrgProjectSignalingIfaceSkeleton: 7452s # * 7452s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7452s # */ 7452s # 7452s # /** 7452s # * OrgProjectSignalingIfaceSkeletonClass: 7452s # * @parent_class: The parent class. 7452s # * 7452s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7452s # */ 7452s # 7452s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7452s # { 7452s # GValue *properties; 7452s # GList *changed_properties; 7452s # GSource *changed_properties_idle_source; 7452s # GMainContext *context; 7452s # GMutex lock; 7452s # }; 7452s # 7452s # static void 7452s # _org_project_signaling_iface_skeleton_handle_method_call ( 7452s # GDBusConnection *connection G_GNUC_UNUSED, 7452s # const gchar *sender G_GNUC_UNUSED, 7452s # const gchar *object_path G_GNUC_UNUSED, 7452s # const gchar *interface_name, 7452s # const gchar *method_name, 7452s # GVariant *parameters, 7452s # GDBusMethodInvocation *invocation, 7452s # gpointer user_data) 7452s # { 7452s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7452s # _ExtendedGDBusMethodInfo *info; 7452s # GVariantIter iter; 7452s # GVariant *child; 7452s # GValue *paramv; 7452s # gsize num_params; 7452s # guint num_extra; 7452s # gsize n; 7452s # guint signal_id; 7452s # GValue return_value = G_VALUE_INIT; 7452s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7452s # g_assert (info != NULL); 7452s # num_params = g_variant_n_children (parameters); 7452s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7452s # n = 0; 7452s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7452s # g_value_set_object (¶mv[n++], skeleton); 7452s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7452s # g_value_set_object (¶mv[n++], invocation); 7452s # if (info->pass_fdlist) 7452s # { 7452s # #ifdef G_OS_UNIX 7452s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7452s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7452s # #else 7452s # g_assert_not_reached (); 7452s # #endif 7452s # } 7452s # g_variant_iter_init (&iter, parameters); 7452s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7452s # { 7452s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7452s # if (arg_info->use_gvariant) 7452s # { 7452s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7452s # g_value_set_variant (¶mv[n], child); 7452s # n++; 7452s # } 7452s # else 7452s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7452s # g_variant_unref (child); 7452s # } 7452s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7452s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7452s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7452s # if (!g_value_get_boolean (&return_value)) 7452s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7452s # g_value_unset (&return_value); 7452s # for (n = 0; n < num_params + num_extra; n++) 7452s # g_value_unset (¶mv[n]); 7452s # g_free (paramv); 7452s # } 7452s # 7452s # static GVariant * 7452s # _org_project_signaling_iface_skeleton_handle_get_property ( 7452s # GDBusConnection *connection G_GNUC_UNUSED, 7452s # const gchar *sender G_GNUC_UNUSED, 7452s # const gchar *object_path G_GNUC_UNUSED, 7452s # const gchar *interface_name G_GNUC_UNUSED, 7452s # const gchar *property_name, 7452s # GError **error, 7452s # gpointer user_data) 7452s # { 7452s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7452s # GValue value = G_VALUE_INIT; 7452s # GParamSpec *pspec; 7452s # _ExtendedGDBusPropertyInfo *info; 7452s # GVariant *ret; 7452s # ret = NULL; 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7452s # g_assert (info != NULL); 7452s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7452s # if (pspec == NULL) 7452s # { 7452s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7452s # } 7452s # else 7452s # { 7452s # g_value_init (&value, pspec->value_type); 7452s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7452s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7452s # g_value_unset (&value); 7452s # } 7452s # return ret; 7452s # } 7452s # 7452s # static gboolean 7452s # _org_project_signaling_iface_skeleton_handle_set_property ( 7452s # GDBusConnection *connection G_GNUC_UNUSED, 7452s # const gchar *sender G_GNUC_UNUSED, 7452s # const gchar *object_path G_GNUC_UNUSED, 7452s # const gchar *interface_name G_GNUC_UNUSED, 7452s # const gchar *property_name, 7452s # GVariant *variant, 7452s # GError **error, 7452s # gpointer user_data) 7452s # { 7452s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7452s # GValue value = G_VALUE_INIT; 7452s # GParamSpec *pspec; 7452s # _ExtendedGDBusPropertyInfo *info; 7452s # gboolean ret; 7452s # ret = FALSE; 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7452s # g_assert (info != NULL); 7452s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7452s # if (pspec == NULL) 7452s # { 7452s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7452s # } 7452s # else 7452s # { 7452s # if (info->use_gvariant) 7452s # g_value_set_variant (&value, variant); 7452s # else 7452s # g_dbus_gvariant_to_gvalue (variant, &value); 7452s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7452s # g_value_unset (&value); 7452s # ret = TRUE; 7452s # } 7452s # return ret; 7452s # } 7452s # 7452s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7452s # { 7452s # _org_project_signaling_iface_skeleton_handle_method_call, 7452s # _org_project_signaling_iface_skeleton_handle_get_property, 7452s # _org_project_signaling_iface_skeleton_handle_set_property, 7452s # {NULL} 7452s # }; 7452s # 7452s # static GDBusInterfaceInfo * 7452s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7452s # { 7452s # return org_project_signaling_iface_interface_info (); 7452s # } 7452s # 7452s # static GDBusInterfaceVTable * 7452s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7452s # { 7452s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7452s # } 7452s # 7452s # static GVariant * 7452s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7452s # { 7452s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7452s # 7452s # GVariantBuilder builder; 7452s # guint n; 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7452s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7452s # #else 7452s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7452s # #endif 7452s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7452s # goto out; 7452s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7452s # { 7452s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7452s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7452s # { 7452s # GVariant *value; 7452s # 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); 7452s # if (value != NULL) 7452s # { 7452s # g_variant_take_ref (value); 7452s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7452s # g_variant_unref (value); 7452s # } 7452s # } 7452s # } 7452s # out: 7452s # return g_variant_builder_end (&builder); 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # static void 7452s # _org_project_signaling_iface_on_signal_simple_signal ( 7452s # OrgProjectSignalingIface *object) 7452s # { 7452s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7452s # 7452s # GList *connections, *l; 7452s # GVariant *signal_variant; 7452s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7452s # 7452s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7452s # for (l = connections; l != NULL; l = l->next) 7452s # { 7452s # GDBusConnection *connection = l->data; 7452s # g_dbus_connection_emit_signal (connection, 7452s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7452s # signal_variant, NULL); 7452s # } 7452s # g_variant_unref (signal_variant); 7452s # g_list_free_full (connections, g_object_unref); 7452s # } 7452s # 7452s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7452s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7452s # 7452s # #else 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7452s # 7452s # #endif 7452s # static void 7452s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7452s # { 7452s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7452s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7452s # if (skeleton->priv->changed_properties_idle_source != NULL) 7452s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7452s # g_main_context_unref (skeleton->priv->context); 7452s # g_mutex_clear (&skeleton->priv->lock); 7452s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7452s # { 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7452s # #else 7452s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7452s # #endif 7452s # 7452s # g_mutex_init (&skeleton->priv->lock); 7452s # skeleton->priv->context = g_main_context_ref_thread_default (); 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7452s # { 7452s # GObjectClass *gobject_class; 7452s # GDBusInterfaceSkeletonClass *skeleton_class; 7452s # 7452s # gobject_class = G_OBJECT_CLASS (klass); 7452s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7452s # 7452s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7452s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7452s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7452s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7452s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7452s # 7452s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7452s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7452s # #endif 7452s # } 7452s # 7452s # static void 7452s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7452s # { 7452s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7452s # } 7452s # 7452s # /** 7452s # * org_project_signaling_iface_skeleton_new: 7452s # * 7452s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7452s # */ 7452s # OrgProjectSignalingIface * 7452s # org_project_signaling_iface_skeleton_new (void) 7452s # { 7452s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7452s # } 7452s # 7452s # /* ------------------------------------------------------------------------ 7452s # * Code for interface org.project.OtherSignalingIface 7452s # * ------------------------------------------------------------------------ 7452s # */ 7452s # 7452s # /** 7452s # * SECTION:OrgProjectOtherSignalingIface 7452s # * @title: OrgProjectOtherSignalingIface 7452s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 7452s # * 7452s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 7452s # */ 7452s # 7452s # enum 7452s # { 7452s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 7452s # }; 7452s # 7452s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 7452s # 7452s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 7452s # 7452s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 7452s # { 7452s # { 7452s # -1, 7452s # (gchar *) "SimpleSignal", 7452s # NULL, 7452s # NULL 7452s # }, 7452s # "simple-signal" 7452s # }; 7452s # 7452s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 7452s # { 7452s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 7452s # NULL 7452s # }; 7452s # 7452s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 7452s # { 7452s # { 7452s # -1, 7452s # (gchar *) "org.project.OtherSignalingIface", 7452s # NULL, 7452s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 7452s # NULL, 7452s # NULL 7452s # }, 7452s # "org-project-other-signaling-iface", 7452s # }; 7452s # 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_interface_info: 7452s # * 7452s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 7452s # * 7452s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7452s # */ 7452s # GDBusInterfaceInfo * 7452s # org_project_other_signaling_iface_interface_info (void) 7452s # { 7452s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_override_properties: 7452s # * @klass: The class structure for a #GObject derived class. 7452s # * @property_id_begin: The property id to assign to the first overridden property. 7452s # * 7452s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 7452s # * The properties are overridden in the order they are defined. 7452s # * 7452s # * Returns: The last property id. 7452s # */ 7452s # guint 7452s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7452s # { 7452s # return property_id_begin - 1; 7452s # } 7452s # 7452s # 7452s # inline static void 7452s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 7452s # GClosure *closure, 7452s # GValue *return_value, 7452s # unsigned int n_param_values, 7452s # const GValue *param_values, 7452s # void *invocation_hint, 7452s # void *marshal_data) 7452s # { 7452s # g_cclosure_marshal_VOID__VOID (closure, 7452s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7452s # } 7452s # 7452s # 7452s # /** 7452s # * OrgProjectOtherSignalingIface: 7452s # * 7452s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 7452s # */ 7452s # 7452s # /** 7452s # * OrgProjectOtherSignalingIfaceIface: 7452s # * @parent_iface: The parent interface. 7452s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 7452s # * 7452s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 7452s # */ 7452s # 7452s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 7452s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 7452s # { 7452s # /* GObject signals for received D-Bus signals: */ 7452s # /** 7452s # * OrgProjectOtherSignalingIface::simple-signal: 7452s # * @object: A #OrgProjectOtherSignalingIface. 7452s # * 7452s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7452s # * 7452s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7452s # */ 7452s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7452s # g_signal_new ("simple-signal", 7452s # G_TYPE_FROM_INTERFACE (iface), 7452s # G_SIGNAL_RUN_LAST, 7452s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 7452s # NULL, 7452s # NULL, 7452s # org_project_other_signaling_iface_signal_marshal_simple_signal, 7452s # G_TYPE_NONE, 7452s # 0); 7452s # 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_emit_simple_signal: 7452s # * @object: A #OrgProjectOtherSignalingIface. 7452s # * 7452s # * Emits the "SimpleSignal" D-Bus signal. 7452s # */ 7452s # void 7452s # org_project_other_signaling_iface_emit_simple_signal ( 7452s # OrgProjectOtherSignalingIface *object) 7452s # { 7452s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7452s # } 7452s # 7452s # /* ------------------------------------------------------------------------ */ 7452s # 7452s # /** 7452s # * OrgProjectOtherSignalingIfaceProxy: 7452s # * 7452s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7452s # */ 7452s # 7452s # /** 7452s # * OrgProjectOtherSignalingIfaceProxyClass: 7452s # * @parent_class: The parent class. 7452s # * 7452s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 7452s # */ 7452s # 7452s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 7452s # { 7452s # GData *qdata; 7452s # }; 7452s # 7452s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 7452s # 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7452s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 7452s # 7452s # #else 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 7452s # 7452s # #endif 7452s # static void 7452s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 7452s # { 7452s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 7452s # g_datalist_clear (&proxy->priv->qdata); 7452s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7452s # guint prop_id G_GNUC_UNUSED, 7452s # GValue *value G_GNUC_UNUSED, 7452s # GParamSpec *pspec G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7452s # guint prop_id G_GNUC_UNUSED, 7452s # const GValue *value G_GNUC_UNUSED, 7452s # GParamSpec *pspec G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7452s # const gchar *sender_name G_GNUC_UNUSED, 7452s # const gchar *signal_name, 7452s # GVariant *parameters) 7452s # { 7452s # _ExtendedGDBusSignalInfo *info; 7452s # GVariantIter iter; 7452s # GVariant *child; 7452s # GValue *paramv; 7452s # gsize num_params; 7452s # gsize n; 7452s # guint signal_id; 7452s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 7452s # if (info == NULL) 7452s # return; 7452s # num_params = g_variant_n_children (parameters); 7452s # paramv = g_new0 (GValue, num_params + 1); 7452s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 7452s # g_value_set_object (¶mv[0], proxy); 7452s # g_variant_iter_init (&iter, parameters); 7452s # n = 1; 7452s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7452s # { 7452s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7452s # if (arg_info->use_gvariant) 7452s # { 7452s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7452s # g_value_set_variant (¶mv[n], child); 7452s # n++; 7452s # } 7452s # else 7452s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7452s # g_variant_unref (child); 7452s # } 7452s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 7452s # g_signal_emitv (paramv, signal_id, 0, NULL); 7452s # for (n = 0; n < num_params + 1; n++) 7452s # g_value_unset (¶mv[n]); 7452s # g_free (paramv); 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7452s # GVariant *changed_properties, 7452s # const gchar *const *invalidated_properties) 7452s # { 7452s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 7452s # guint n; 7452s # const gchar *key; 7452s # GVariantIter *iter; 7452s # _ExtendedGDBusPropertyInfo *info; 7452s # g_variant_get (changed_properties, "a{sv}", &iter); 7452s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7452s # { 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 7452s # g_datalist_remove_data (&proxy->priv->qdata, key); 7452s # if (info != NULL) 7452s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7452s # } 7452s # g_variant_iter_free (iter); 7452s # for (n = 0; invalidated_properties[n] != NULL; n++) 7452s # { 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7452s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7452s # if (info != NULL) 7452s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7452s # } 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 7452s # { 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 7452s # #else 7452s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 7452s # #endif 7452s # 7452s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 7452s # { 7452s # GObjectClass *gobject_class; 7452s # GDBusProxyClass *proxy_class; 7452s # 7452s # gobject_class = G_OBJECT_CLASS (klass); 7452s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 7452s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 7452s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 7452s # 7452s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7452s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 7452s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 7452s # 7452s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7452s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 7452s # #endif 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_proxy_new: 7452s # * @connection: A #GDBusConnection. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7452s # * @user_data: User data to pass to @callback. 7452s # * 7452s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 7452s # * 7452s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7452s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 7452s # * 7452s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7452s # */ 7452s # void 7452s # org_project_other_signaling_iface_proxy_new ( 7452s # GDBusConnection *connection, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GAsyncReadyCallback callback, 7452s # gpointer user_data) 7452s # { 7452s # 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); 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_proxy_new_finish: 7452s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectOtherSignalingIface * 7452s # org_project_other_signaling_iface_proxy_new_finish ( 7452s # GAsyncResult *res, 7452s # GError **error) 7452s # { 7452s # GObject *ret; 7452s # GObject *source_object; 7452s # source_object = g_async_result_get_source_object (res); 7452s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7452s # g_object_unref (source_object); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_proxy_new_sync: 7452s # * @connection: A #GDBusConnection. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 7452s # * 7452s # * The calling thread is blocked until a reply is received. 7452s # * 7452s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectOtherSignalingIface * 7452s # org_project_other_signaling_iface_proxy_new_sync ( 7452s # GDBusConnection *connection, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GError **error) 7452s # { 7452s # GInitable *ret; 7452s # 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); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_proxy_new_for_bus: 7452s # * @bus_type: A #GBusType. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: A bus name (well-known or unique). 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7452s # * @user_data: User data to pass to @callback. 7452s # * 7452s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7452s # * 7452s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7452s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7452s # * 7452s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7452s # */ 7452s # void 7452s # org_project_other_signaling_iface_proxy_new_for_bus ( 7452s # GBusType bus_type, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GAsyncReadyCallback callback, 7452s # gpointer user_data) 7452s # { 7452s # 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); 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 7452s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectOtherSignalingIface * 7452s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 7452s # GAsyncResult *res, 7452s # GError **error) 7452s # { 7452s # GObject *ret; 7452s # GObject *source_object; 7452s # source_object = g_async_result_get_source_object (res); 7452s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7452s # g_object_unref (source_object); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 7452s # * @bus_type: A #GBusType. 7452s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7452s # * @name: A bus name (well-known or unique). 7452s # * @object_path: An object path. 7452s # * @cancellable: (nullable): A #GCancellable or %NULL. 7452s # * @error: Return location for error or %NULL 7452s # * 7452s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7452s # * 7452s # * The calling thread is blocked until a reply is received. 7452s # * 7452s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7452s # */ 7452s # OrgProjectOtherSignalingIface * 7452s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 7452s # GBusType bus_type, 7452s # GDBusProxyFlags flags, 7452s # const gchar *name, 7452s # const gchar *object_path, 7452s # GCancellable *cancellable, 7452s # GError **error) 7452s # { 7452s # GInitable *ret; 7452s # 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); 7452s # if (ret != NULL) 7452s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 7452s # else 7452s # return NULL; 7452s # } 7452s # 7452s # 7452s # /* ------------------------------------------------------------------------ */ 7452s # 7452s # /** 7452s # * OrgProjectOtherSignalingIfaceSkeleton: 7452s # * 7452s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7452s # */ 7452s # 7452s # /** 7452s # * OrgProjectOtherSignalingIfaceSkeletonClass: 7452s # * @parent_class: The parent class. 7452s # * 7452s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 7452s # */ 7452s # 7452s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 7452s # { 7452s # GValue *properties; 7452s # GList *changed_properties; 7452s # GSource *changed_properties_idle_source; 7452s # GMainContext *context; 7452s # GMutex lock; 7452s # }; 7452s # 7452s # static void 7452s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 7452s # GDBusConnection *connection G_GNUC_UNUSED, 7452s # const gchar *sender G_GNUC_UNUSED, 7452s # const gchar *object_path G_GNUC_UNUSED, 7452s # const gchar *interface_name, 7452s # const gchar *method_name, 7452s # GVariant *parameters, 7452s # GDBusMethodInvocation *invocation, 7452s # gpointer user_data) 7452s # { 7452s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 7452s # _ExtendedGDBusMethodInfo *info; 7452s # GVariantIter iter; 7452s # GVariant *child; 7452s # GValue *paramv; 7452s # gsize num_params; 7452s # guint num_extra; 7452s # gsize n; 7452s # guint signal_id; 7452s # GValue return_value = G_VALUE_INIT; 7452s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7452s # g_assert (info != NULL); 7452s # num_params = g_variant_n_children (parameters); 7452s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7452s # n = 0; 7452s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 7452s # g_value_set_object (¶mv[n++], skeleton); 7452s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7452s # g_value_set_object (¶mv[n++], invocation); 7452s # if (info->pass_fdlist) 7452s # { 7452s # #ifdef G_OS_UNIX 7452s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7452s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7452s # #else 7452s # g_assert_not_reached (); 7452s # #endif 7452s # } 7452s # g_variant_iter_init (&iter, parameters); 7452s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7452s # { 7452s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7452s # if (arg_info->use_gvariant) 7452s # { 7452s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7452s # g_value_set_variant (¶mv[n], child); 7452s # n++; 7452s # } 7452s # else 7452s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7452s # g_variant_unref (child); 7452s # } 7452s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 7452s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7452s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7452s # if (!g_value_get_boolean (&return_value)) 7452s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7452s # g_value_unset (&return_value); 7452s # for (n = 0; n < num_params + num_extra; n++) 7452s # g_value_unset (¶mv[n]); 7452s # g_free (paramv); 7452s # } 7452s # 7452s # static GVariant * 7452s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 7452s # GDBusConnection *connection G_GNUC_UNUSED, 7452s # const gchar *sender G_GNUC_UNUSED, 7452s # const gchar *object_path G_GNUC_UNUSED, 7452s # const gchar *interface_name G_GNUC_UNUSED, 7452s # const gchar *property_name, 7452s # GError **error, 7452s # gpointer user_data) 7452s # { 7452s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 7452s # GValue value = G_VALUE_INIT; 7452s # GParamSpec *pspec; 7452s # _ExtendedGDBusPropertyInfo *info; 7452s # GVariant *ret; 7452s # ret = NULL; 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 7452s # g_assert (info != NULL); 7452s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7452s # if (pspec == NULL) 7452s # { 7452s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7452s # } 7452s # else 7452s # { 7452s # g_value_init (&value, pspec->value_type); 7452s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7452s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7452s # g_value_unset (&value); 7452s # } 7452s # return ret; 7452s # } 7452s # 7452s # static gboolean 7452s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 7452s # GDBusConnection *connection G_GNUC_UNUSED, 7452s # const gchar *sender G_GNUC_UNUSED, 7452s # const gchar *object_path G_GNUC_UNUSED, 7452s # const gchar *interface_name G_GNUC_UNUSED, 7452s # const gchar *property_name, 7452s # GVariant *variant, 7452s # GError **error, 7452s # gpointer user_data) 7452s # { 7452s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 7452s # GValue value = G_VALUE_INIT; 7452s # GParamSpec *pspec; 7452s # _ExtendedGDBusPropertyInfo *info; 7452s # gboolean ret; 7452s # ret = FALSE; 7452s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 7452s # g_assert (info != NULL); 7452s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7452s # if (pspec == NULL) 7452s # { 7452s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7452s # } 7452s # else 7452s # { 7452s # if (info->use_gvariant) 7452s # g_value_set_variant (&value, variant); 7452s # else 7452s # g_dbus_gvariant_to_gvalue (variant, &value); 7452s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7452s # g_value_unset (&value); 7452s # ret = TRUE; 7452s # } 7452s # return ret; 7452s # } 7452s # 7452s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 7452s # { 7452s # _org_project_other_signaling_iface_skeleton_handle_method_call, 7452s # _org_project_other_signaling_iface_skeleton_handle_get_property, 7452s # _org_project_other_signaling_iface_skeleton_handle_set_property, 7452s # {NULL} 7452s # }; 7452s # 7452s # static GDBusInterfaceInfo * 7452s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7452s # { 7452s # return org_project_other_signaling_iface_interface_info (); 7452s # } 7452s # 7452s # static GDBusInterfaceVTable * 7452s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7452s # { 7452s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 7452s # } 7452s # 7452s # static GVariant * 7452s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7452s # { 7452s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 7452s # 7452s # GVariantBuilder builder; 7452s # guint n; 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7452s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7452s # #else 7452s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7452s # #endif 7452s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 7452s # goto out; 7452s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7452s # { 7452s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 7452s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7452s # { 7452s # GVariant *value; 7452s # 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); 7452s # if (value != NULL) 7452s # { 7452s # g_variant_take_ref (value); 7452s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7452s # g_variant_unref (value); 7452s # } 7452s # } 7452s # } 7452s # out: 7452s # return g_variant_builder_end (&builder); 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7452s # { 7452s # } 7452s # 7452s # static void 7452s # _org_project_other_signaling_iface_on_signal_simple_signal ( 7452s # OrgProjectOtherSignalingIface *object) 7452s # { 7452s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 7452s # 7452s # GList *connections, *l; 7452s # GVariant *signal_variant; 7452s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7452s # 7452s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7452s # for (l = connections; l != NULL; l = l->next) 7452s # { 7452s # GDBusConnection *connection = l->data; 7452s # g_dbus_connection_emit_signal (connection, 7452s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 7452s # signal_variant, NULL); 7452s # } 7452s # g_variant_unref (signal_variant); 7452s # g_list_free_full (connections, g_object_unref); 7452s # } 7452s # 7452s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7452s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 7452s # 7452s # #else 7452s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7452s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 7452s # 7452s # #endif 7452s # static void 7452s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 7452s # { 7452s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 7452s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7452s # if (skeleton->priv->changed_properties_idle_source != NULL) 7452s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7452s # g_main_context_unref (skeleton->priv->context); 7452s # g_mutex_clear (&skeleton->priv->lock); 7452s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 7452s # { 7452s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7452s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 7452s # #else 7452s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 7452s # #endif 7452s # 7452s # g_mutex_init (&skeleton->priv->lock); 7452s # skeleton->priv->context = g_main_context_ref_thread_default (); 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 7452s # { 7452s # GObjectClass *gobject_class; 7452s # GDBusInterfaceSkeletonClass *skeleton_class; 7452s # 7452s # gobject_class = G_OBJECT_CLASS (klass); 7452s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 7452s # 7452s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7452s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 7452s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 7452s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 7452s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 7452s # 7452s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7452s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 7452s # #endif 7452s # } 7452s # 7452s # static void 7452s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 7452s # { 7452s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 7452s # } 7452s # 7452s # /** 7452s # * org_project_other_signaling_iface_skeleton_new: 7452s # * 7452s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 7452s # * 7452s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 7452s # */ 7452s # OrgProjectOtherSignalingIface * 7452s # org_project_other_signaling_iface_skeleton_new (void) 7452s # { 7452s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 7452s # } 7452s # Error: 7454s # Executing: glib/codegen.py.test 7459s # Executing: glib/codegen.py.test 7466s # Executing: glib/codegen.py.test 7469s # Executing: glib/codegen.py.test 7474s # Executing: glib/codegen.py.test 7476s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 7476s # gdbus-codegen: /usr/bin/gdbus-codegen 7476s # tmpdir: /tmp/tmpwql8j_tz 7476s # /tmp/tmpwql8j_tz/tmpblrv1pru.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpblrv1pru.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_b", 7476s # (gchar *) "b", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalB", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-b" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__BOOLEAN (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-b: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_b: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 7476s # g_signal_new ("single-arg-signal-b", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_BOOLEAN); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_b: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_b: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalB" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_b ( 7476s # OrgProjectSignalingIface *object, 7476s # gboolean arg_arg_b) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 7476s # OrgProjectSignalingIface *object, 7476s # gboolean arg_arg_b) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 7476s # arg_arg_b)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmp4iogtqyp.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmp4iogtqyp.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_y", 7476s # (gchar *) "y", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalY", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-y" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__UCHAR (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-y: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_y: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 7476s # g_signal_new ("single-arg-signal-y", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_UCHAR); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_y: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_y: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalY" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_y ( 7476s # OrgProjectSignalingIface *object, 7476s # guchar arg_arg_y) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 7476s # OrgProjectSignalingIface *object, 7476s # guchar arg_arg_y) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 7476s # arg_arg_y)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpx006rhg3.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpx006rhg3.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_n", 7476s # (gchar *) "n", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalN", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-n" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__INT (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-n: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_n: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 7476s # g_signal_new ("single-arg-signal-n", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_INT); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_n: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_n: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalN" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_n ( 7476s # OrgProjectSignalingIface *object, 7476s # gint16 arg_arg_n) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 7476s # OrgProjectSignalingIface *object, 7476s # gint16 arg_arg_n) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 7476s # arg_arg_n)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmp6emvxvni.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmp6emvxvni.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_q", 7476s # (gchar *) "q", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalQ", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-q" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__UINT (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-q: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_q: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 7476s # g_signal_new ("single-arg-signal-q", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_UINT); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_q: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_q: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalQ" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_q ( 7476s # OrgProjectSignalingIface *object, 7476s # guint16 arg_arg_q) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 7476s # OrgProjectSignalingIface *object, 7476s # guint16 arg_arg_q) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 7476s # arg_arg_q)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmp9_n3ih_0.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmp9_n3ih_0.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_i", 7476s # (gchar *) "i", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalI", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-i" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__INT (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-i: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_i: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 7476s # g_signal_new ("single-arg-signal-i", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_INT); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_i: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_i: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalI" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_i ( 7476s # OrgProjectSignalingIface *object, 7476s # gint arg_arg_i) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 7476s # OrgProjectSignalingIface *object, 7476s # gint arg_arg_i) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 7476s # arg_arg_i)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmppnpk_inp.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmppnpk_inp.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_u", 7476s # (gchar *) "u", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalU", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-u" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__UINT (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-u: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_u: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 7476s # g_signal_new ("single-arg-signal-u", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_UINT); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_u: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_u: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalU" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_u ( 7476s # OrgProjectSignalingIface *object, 7476s # guint arg_arg_u) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 7476s # OrgProjectSignalingIface *object, 7476s # guint arg_arg_u) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 7476s # arg_arg_u)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpyij6b5y1.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpyij6b5y1.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static void 7476s # _g_dbus_codegen_marshal_VOID__INT64 ( 7476s # GClosure *closure, 7476s # GValue *return_value G_GNUC_UNUSED, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint G_GNUC_UNUSED, 7476s # void *marshal_data) 7476s # { 7476s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 7476s # (void *data1, 7476s # gint64 arg_arg_x, 7476s # void *data2); 7476s # _GDbusCodegenMarshalVoid_Int64Func callback; 7476s # GCClosure *cc = (GCClosure*) closure; 7476s # void *data1, *data2; 7476s # 7476s # g_return_if_fail (n_param_values == 2); 7476s # 7476s # if (G_CCLOSURE_SWAP_DATA (closure)) 7476s # { 7476s # data1 = closure->data; 7476s # data2 = g_value_peek_pointer (param_values + 0); 7476s # } 7476s # else 7476s # { 7476s # data1 = g_value_peek_pointer (param_values + 0); 7476s # data2 = closure->data; 7476s # } 7476s # 7476s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 7476s # (marshal_data ? marshal_data : cc->callback); 7476s # 7476s # callback (data1, 7476s # g_marshal_value_peek_int64 (param_values + 1), 7476s # data2); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_x", 7476s # (gchar *) "x", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalX", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-x" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-x: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_x: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 7476s # g_signal_new ("single-arg-signal-x", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_INT64); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_x: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_x: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalX" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_x ( 7476s # OrgProjectSignalingIface *object, 7476s # gint64 arg_arg_x) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 7476s # OrgProjectSignalingIface *object, 7476s # gint64 arg_arg_x) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 7476s # arg_arg_x)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpnttcrlp6.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpnttcrlp6.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static void 7476s # _g_dbus_codegen_marshal_VOID__UINT64 ( 7476s # GClosure *closure, 7476s # GValue *return_value G_GNUC_UNUSED, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint G_GNUC_UNUSED, 7476s # void *marshal_data) 7476s # { 7476s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 7476s # (void *data1, 7476s # guint64 arg_arg_t, 7476s # void *data2); 7476s # _GDbusCodegenMarshalVoid_Uint64Func callback; 7476s # GCClosure *cc = (GCClosure*) closure; 7476s # void *data1, *data2; 7476s # 7476s # g_return_if_fail (n_param_values == 2); 7476s # 7476s # if (G_CCLOSURE_SWAP_DATA (closure)) 7476s # { 7476s # data1 = closure->data; 7476s # data2 = g_value_peek_pointer (param_values + 0); 7476s # } 7476s # else 7476s # { 7476s # data1 = g_value_peek_pointer (param_values + 0); 7476s # data2 = closure->data; 7476s # } 7476s # 7476s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 7476s # (marshal_data ? marshal_data : cc->callback); 7476s # 7476s # callback (data1, 7476s # g_marshal_value_peek_uint64 (param_values + 1), 7476s # data2); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_t", 7476s # (gchar *) "t", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalT", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-t" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-t: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_t: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 7476s # g_signal_new ("single-arg-signal-t", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_UINT64); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_t: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_t: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalT" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_t ( 7476s # OrgProjectSignalingIface *object, 7476s # guint64 arg_arg_t) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 7476s # OrgProjectSignalingIface *object, 7476s # guint64 arg_arg_t) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 7476s # arg_arg_t)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpkuyjf526.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpkuyjf526.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_d", 7476s # (gchar *) "d", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalD", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-d" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__DOUBLE (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-d: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_d: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 7476s # g_signal_new ("single-arg-signal-d", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_DOUBLE); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_d: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_d: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalD" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_d ( 7476s # OrgProjectSignalingIface *object, 7476s # gdouble arg_arg_d) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 7476s # OrgProjectSignalingIface *object, 7476s # gdouble arg_arg_d) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 7476s # arg_arg_d)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpt0avcmpm.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpt0avcmpm.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_s", 7476s # (gchar *) "s", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalS", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-s" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__STRING (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-s: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_s: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 7476s # g_signal_new ("single-arg-signal-s", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_STRING); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_s: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_s: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalS" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_s ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_s) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_s) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 7476s # arg_arg_s)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpdchcm6__.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpdchcm6__.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_o", 7476s # (gchar *) "o", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalO", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-o" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__STRING (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-o: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_o: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 7476s # g_signal_new ("single-arg-signal-o", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_STRING); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_o: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_o: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalO" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_o ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_o) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_o) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 7476s # arg_arg_o)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpli5xr86w.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpli5xr86w.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_g", 7476s # (gchar *) "g", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalG", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-g" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__STRING (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-g: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_g: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 7476s # g_signal_new ("single-arg-signal-g", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_STRING); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_g: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_g: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalG" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_g ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_g) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_g) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 7476s # arg_arg_g)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmptcvsiwz9.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmptcvsiwz9.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_h", 7476s # (gchar *) "h", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalH", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-h" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VARIANT (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-h: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_h: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 7476s # g_signal_new ("single-arg-signal-h", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_VARIANT); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_h: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_h: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalH" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_h ( 7476s # OrgProjectSignalingIface *object, 7476s # GVariant *arg_arg_h) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 7476s # OrgProjectSignalingIface *object, 7476s # GVariant *arg_arg_h) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 7476s # arg_arg_h)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpp9q08h8i.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpp9q08h8i.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_ay", 7476s # (gchar *) "ay", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalAy", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-ay" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__STRING (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-ay: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_ay: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 7476s # g_signal_new ("single-arg-signal-ay", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_STRING); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_ay: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_ay: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalAy" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_ay ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_ay) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *arg_arg_ay) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 7476s # arg_arg_ay)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpxkhm4d2f.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpxkhm4d2f.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_as", 7476s # (gchar *) "as", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalAs", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-as" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__BOXED (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-as: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_as: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 7476s # g_signal_new ("single-arg-signal-as", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_STRV); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_as: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_as: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalAs" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_as ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *const *arg_arg_as) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *const *arg_arg_as) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 7476s # arg_arg_as)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmp9h9rhzww.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmp9h9rhzww.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_ao", 7476s # (gchar *) "ao", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalAo", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-ao" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__BOXED (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-ao: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_ao: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 7476s # g_signal_new ("single-arg-signal-ao", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_STRV); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_ao: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_ao: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalAo" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_ao ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *const *arg_arg_ao) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *const *arg_arg_ao) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 7476s # arg_arg_ao)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmpjd4m_75p.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmpjd4m_75p.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_aay", 7476s # (gchar *) "aay", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalAay", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-aay" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__BOXED (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-aay: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_aay: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 7476s # g_signal_new ("single-arg-signal-aay", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_STRV); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_aay: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_aay: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalAay" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_aay ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *const *arg_arg_aay) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 7476s # OrgProjectSignalingIface *object, 7476s # const gchar *const *arg_arg_aay) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 7476s # arg_arg_aay)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7476s # 7476s # /tmp/tmpwql8j_tz/tmp9oe4ji_f.xml: 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # 7476s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwql8j_tz/tmp9oe4ji_f.xml', '--output', '-', '--body'] 7476s # Return code: 0 7476s # Output: 7476s # /* 7476s # * This file is generated by gdbus-codegen, do not modify it. 7476s # * 7476s # * The license of this code is the same as for the D-Bus interface description 7476s # * it was derived from. Note that it links to GLib, so must comply with the 7476s # * LGPL linking clauses. 7476s # */ 7476s # 7476s # #ifdef HAVE_CONFIG_H 7476s # # include "config.h" 7476s # #endif 7476s # 7476s # #include 7476s # #ifdef G_OS_UNIX 7476s # # include 7476s # #endif 7476s # 7476s # #ifdef G_ENABLE_DEBUG 7476s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7476s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7476s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7476s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7476s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7476s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7476s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7476s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7476s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7476s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7476s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7476s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7476s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7476s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7476s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7476s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7476s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7476s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7476s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7476s # #else /* !G_ENABLE_DEBUG */ 7476s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7476s # * Do not access GValues directly in your code. Instead, use the 7476s # * g_value_get_*() functions 7476s # */ 7476s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7476s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7476s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7476s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7476s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7476s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7476s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7476s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7476s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7476s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7476s # #endif /* !G_ENABLE_DEBUG */ 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusArgInfo parent_struct; 7476s # gboolean use_gvariant; 7476s # } _ExtendedGDBusArgInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusMethodInfo parent_struct; 7476s # const gchar *signal_name; 7476s # gboolean pass_fdlist; 7476s # } _ExtendedGDBusMethodInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusSignalInfo parent_struct; 7476s # const gchar *signal_name; 7476s # } _ExtendedGDBusSignalInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusPropertyInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # guint use_gvariant : 1; 7476s # guint emits_changed_signal : 1; 7476s # } _ExtendedGDBusPropertyInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # GDBusInterfaceInfo parent_struct; 7476s # const gchar *hyphen_name; 7476s # } _ExtendedGDBusInterfaceInfo; 7476s # 7476s # typedef struct 7476s # { 7476s # const _ExtendedGDBusPropertyInfo *info; 7476s # guint prop_id; 7476s # GValue orig_value; /* the value before the change */ 7476s # } ChangedProperty; 7476s # 7476s # static void 7476s # _changed_property_free (ChangedProperty *data) 7476s # { 7476s # g_value_unset (&data->orig_value); 7476s # g_free (data); 7476s # } 7476s # 7476s # static gboolean 7476s # _g_strv_equal0 (gchar **a, gchar **b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # guint n; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # if (g_strv_length (a) != g_strv_length (b)) 7476s # goto out; 7476s # for (n = 0; a[n] != NULL; n++) 7476s # if (g_strcmp0 (a[n], b[n]) != 0) 7476s # goto out; 7476s # ret = TRUE; 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _g_variant_equal0 (GVariant *a, GVariant *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # if (a == NULL && b == NULL) 7476s # { 7476s # ret = TRUE; 7476s # goto out; 7476s # } 7476s # if (a == NULL || b == NULL) 7476s # goto out; 7476s # ret = g_variant_equal (a, b); 7476s # out: 7476s # return ret; 7476s # } 7476s # 7476s # G_GNUC_UNUSED static gboolean 7476s # _g_value_equal (const GValue *a, const GValue *b) 7476s # { 7476s # gboolean ret = FALSE; 7476s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7476s # switch (G_VALUE_TYPE (a)) 7476s # { 7476s # case G_TYPE_BOOLEAN: 7476s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7476s # break; 7476s # case G_TYPE_UCHAR: 7476s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7476s # break; 7476s # case G_TYPE_INT: 7476s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7476s # break; 7476s # case G_TYPE_UINT: 7476s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7476s # break; 7476s # case G_TYPE_INT64: 7476s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7476s # break; 7476s # case G_TYPE_UINT64: 7476s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7476s # break; 7476s # case G_TYPE_DOUBLE: 7476s # { 7476s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7476s # gdouble da = g_value_get_double (a); 7476s # gdouble db = g_value_get_double (b); 7476s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7476s # } 7476s # break; 7476s # case G_TYPE_STRING: 7476s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7476s # break; 7476s # case G_TYPE_VARIANT: 7476s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7476s # break; 7476s # default: 7476s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7476s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7476s # else 7476s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7476s # break; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ 7476s # * Code for interface org.project.SignalingIface 7476s # * ------------------------------------------------------------------------ 7476s # */ 7476s # 7476s # /** 7476s # * SECTION:OrgProjectSignalingIface 7476s # * @title: OrgProjectSignalingIface 7476s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7476s # * 7476s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7476s # */ 7476s # 7476s # enum 7476s # { 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7476s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 7476s # }; 7476s # 7476s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7476s # 7476s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SimpleSignal", 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "simple-signal" 7476s # }; 7476s # 7476s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "arg_asv", 7476s # (gchar *) "a{sv}", 7476s # NULL 7476s # }, 7476s # FALSE 7476s # }; 7476s # 7476s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "SingleArgSignalAsv", 7476s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 7476s # NULL 7476s # }, 7476s # "single-arg-signal-asv" 7476s # }; 7476s # 7476s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7476s # { 7476s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7476s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 7476s # NULL 7476s # }; 7476s # 7476s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7476s # { 7476s # { 7476s # -1, 7476s # (gchar *) "org.project.SignalingIface", 7476s # NULL, 7476s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7476s # NULL, 7476s # NULL 7476s # }, 7476s # "org-project-signaling-iface", 7476s # }; 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_interface_info: 7476s # * 7476s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7476s # * 7476s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7476s # */ 7476s # GDBusInterfaceInfo * 7476s # org_project_signaling_iface_interface_info (void) 7476s # { 7476s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_override_properties: 7476s # * @klass: The class structure for a #GObject derived class. 7476s # * @property_id_begin: The property id to assign to the first overridden property. 7476s # * 7476s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7476s # * The properties are overridden in the order they are defined. 7476s # * 7476s # * Returns: The last property id. 7476s # */ 7476s # guint 7476s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7476s # { 7476s # return property_id_begin - 1; 7476s # } 7476s # 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_simple_signal ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VOID (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # inline static void 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 7476s # GClosure *closure, 7476s # GValue *return_value, 7476s # unsigned int n_param_values, 7476s # const GValue *param_values, 7476s # void *invocation_hint, 7476s # void *marshal_data) 7476s # { 7476s # g_cclosure_marshal_VOID__VARIANT (closure, 7476s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7476s # } 7476s # 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface: 7476s # * 7476s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceIface: 7476s # * @parent_iface: The parent interface. 7476s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7476s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 7476s # * 7476s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7476s # */ 7476s # 7476s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7476s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7476s # 7476s # static void 7476s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # /* GObject signals for received D-Bus signals: */ 7476s # /** 7476s # * OrgProjectSignalingIface::simple-signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7476s # g_signal_new ("simple-signal", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_simple_signal, 7476s # G_TYPE_NONE, 7476s # 0); 7476s # 7476s # /** 7476s # * OrgProjectSignalingIface::single-arg-signal-asv: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_asv: Argument. 7476s # * 7476s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 7476s # * 7476s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7476s # */ 7476s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 7476s # g_signal_new ("single-arg-signal-asv", 7476s # G_TYPE_FROM_INTERFACE (iface), 7476s # G_SIGNAL_RUN_LAST, 7476s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 7476s # NULL, 7476s # NULL, 7476s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 7476s # G_TYPE_NONE, 7476s # 1, G_TYPE_VARIANT); 7476s # 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_simple_signal: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * 7476s # * Emits the "SimpleSignal" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_emit_single_arg_signal_asv: 7476s # * @object: A #OrgProjectSignalingIface. 7476s # * @arg_arg_asv: Argument to pass with the signal. 7476s # * 7476s # * Emits the "SingleArgSignalAsv" D-Bus signal. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_emit_single_arg_signal_asv ( 7476s # OrgProjectSignalingIface *object, 7476s # GVariant *arg_arg_asv) 7476s # { 7476s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 7476s # } 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxy: 7476s # * 7476s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceProxyClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceProxy. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceProxyPrivate 7476s # { 7476s # GData *qdata; 7476s # }; 7476s # 7476s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_proxy_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7476s # g_datalist_clear (&proxy->priv->qdata); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7476s # guint prop_id G_GNUC_UNUSED, 7476s # const GValue *value G_GNUC_UNUSED, 7476s # GParamSpec *pspec G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7476s # const gchar *sender_name G_GNUC_UNUSED, 7476s # const gchar *signal_name, 7476s # GVariant *parameters) 7476s # { 7476s # _ExtendedGDBusSignalInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # gsize n; 7476s # guint signal_id; 7476s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7476s # if (info == NULL) 7476s # return; 7476s # num_params = g_variant_n_children (parameters); 7476s # paramv = g_new0 (GValue, num_params + 1); 7476s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[0], proxy); 7476s # g_variant_iter_init (&iter, parameters); 7476s # n = 1; 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_signal_emitv (paramv, signal_id, 0, NULL); 7476s # for (n = 0; n < num_params + 1; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7476s # GVariant *changed_properties, 7476s # const gchar *const *invalidated_properties) 7476s # { 7476s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7476s # guint n; 7476s # const gchar *key; 7476s # GVariantIter *iter; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # g_variant_get (changed_properties, "a{sv}", &iter); 7476s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7476s # g_datalist_remove_data (&proxy->priv->qdata, key); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # g_variant_iter_free (iter); 7476s # for (n = 0; invalidated_properties[n] != NULL; n++) 7476s # { 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7476s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7476s # if (info != NULL) 7476s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7476s # } 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7476s # #else 7476s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7476s # #endif 7476s # 7476s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusProxyClass *proxy_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7476s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7476s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7476s # 7476s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7476s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7476s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_sync: 7476s # * @connection: A #GDBusConnection. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_sync ( 7476s # GDBusConnection *connection, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7476s # * @user_data: User data to pass to @callback. 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7476s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7476s # */ 7476s # void 7476s # org_project_signaling_iface_proxy_new_for_bus ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GAsyncReadyCallback callback, 7476s # gpointer user_data) 7476s # { 7476s # 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); 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7476s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7476s # GAsyncResult *res, 7476s # GError **error) 7476s # { 7476s # GObject *ret; 7476s # GObject *source_object; 7476s # source_object = g_async_result_get_source_object (res); 7476s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7476s # g_object_unref (source_object); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7476s # * @bus_type: A #GBusType. 7476s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7476s # * @name: A bus name (well-known or unique). 7476s # * @object_path: An object path. 7476s # * @cancellable: (nullable): A #GCancellable or %NULL. 7476s # * @error: Return location for error or %NULL 7476s # * 7476s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7476s # * 7476s # * The calling thread is blocked until a reply is received. 7476s # * 7476s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7476s # GBusType bus_type, 7476s # GDBusProxyFlags flags, 7476s # const gchar *name, 7476s # const gchar *object_path, 7476s # GCancellable *cancellable, 7476s # GError **error) 7476s # { 7476s # GInitable *ret; 7476s # 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); 7476s # if (ret != NULL) 7476s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7476s # else 7476s # return NULL; 7476s # } 7476s # 7476s # 7476s # /* ------------------------------------------------------------------------ */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeleton: 7476s # * 7476s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7476s # */ 7476s # 7476s # /** 7476s # * OrgProjectSignalingIfaceSkeletonClass: 7476s # * @parent_class: The parent class. 7476s # * 7476s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7476s # */ 7476s # 7476s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7476s # { 7476s # GValue *properties; 7476s # GList *changed_properties; 7476s # GSource *changed_properties_idle_source; 7476s # GMainContext *context; 7476s # GMutex lock; 7476s # }; 7476s # 7476s # static void 7476s # _org_project_signaling_iface_skeleton_handle_method_call ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name, 7476s # const gchar *method_name, 7476s # GVariant *parameters, 7476s # GDBusMethodInvocation *invocation, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # _ExtendedGDBusMethodInfo *info; 7476s # GVariantIter iter; 7476s # GVariant *child; 7476s # GValue *paramv; 7476s # gsize num_params; 7476s # guint num_extra; 7476s # gsize n; 7476s # guint signal_id; 7476s # GValue return_value = G_VALUE_INIT; 7476s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7476s # g_assert (info != NULL); 7476s # num_params = g_variant_n_children (parameters); 7476s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7476s # n = 0; 7476s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_set_object (¶mv[n++], skeleton); 7476s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7476s # g_value_set_object (¶mv[n++], invocation); 7476s # if (info->pass_fdlist) 7476s # { 7476s # #ifdef G_OS_UNIX 7476s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7476s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7476s # #else 7476s # g_assert_not_reached (); 7476s # #endif 7476s # } 7476s # g_variant_iter_init (&iter, parameters); 7476s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7476s # { 7476s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7476s # if (arg_info->use_gvariant) 7476s # { 7476s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7476s # g_value_set_variant (¶mv[n], child); 7476s # n++; 7476s # } 7476s # else 7476s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7476s # g_variant_unref (child); 7476s # } 7476s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7476s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7476s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7476s # if (!g_value_get_boolean (&return_value)) 7476s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7476s # g_value_unset (&return_value); 7476s # for (n = 0; n < num_params + num_extra; n++) 7476s # g_value_unset (¶mv[n]); 7476s # g_free (paramv); 7476s # } 7476s # 7476s # static GVariant * 7476s # _org_project_signaling_iface_skeleton_handle_get_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # GVariant *ret; 7476s # ret = NULL; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # g_value_init (&value, pspec->value_type); 7476s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7476s # g_value_unset (&value); 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static gboolean 7476s # _org_project_signaling_iface_skeleton_handle_set_property ( 7476s # GDBusConnection *connection G_GNUC_UNUSED, 7476s # const gchar *sender G_GNUC_UNUSED, 7476s # const gchar *object_path G_GNUC_UNUSED, 7476s # const gchar *interface_name G_GNUC_UNUSED, 7476s # const gchar *property_name, 7476s # GVariant *variant, 7476s # GError **error, 7476s # gpointer user_data) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7476s # GValue value = G_VALUE_INIT; 7476s # GParamSpec *pspec; 7476s # _ExtendedGDBusPropertyInfo *info; 7476s # gboolean ret; 7476s # ret = FALSE; 7476s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7476s # g_assert (info != NULL); 7476s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7476s # if (pspec == NULL) 7476s # { 7476s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7476s # } 7476s # else 7476s # { 7476s # if (info->use_gvariant) 7476s # g_value_set_variant (&value, variant); 7476s # else 7476s # g_dbus_gvariant_to_gvalue (variant, &value); 7476s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7476s # g_value_unset (&value); 7476s # ret = TRUE; 7476s # } 7476s # return ret; 7476s # } 7476s # 7476s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7476s # { 7476s # _org_project_signaling_iface_skeleton_handle_method_call, 7476s # _org_project_signaling_iface_skeleton_handle_get_property, 7476s # _org_project_signaling_iface_skeleton_handle_set_property, 7476s # {NULL} 7476s # }; 7476s # 7476s # static GDBusInterfaceInfo * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return org_project_signaling_iface_interface_info (); 7476s # } 7476s # 7476s # static GDBusInterfaceVTable * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7476s # { 7476s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7476s # } 7476s # 7476s # static GVariant * 7476s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7476s # 7476s # GVariantBuilder builder; 7476s # guint n; 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7476s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #else 7476s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7476s # #endif 7476s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7476s # goto out; 7476s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7476s # { 7476s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7476s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7476s # { 7476s # GVariant *value; 7476s # 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); 7476s # if (value != NULL) 7476s # { 7476s # g_variant_take_ref (value); 7476s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7476s # g_variant_unref (value); 7476s # } 7476s # } 7476s # } 7476s # out: 7476s # return g_variant_builder_end (&builder); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7476s # { 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_simple_signal ( 7476s # OrgProjectSignalingIface *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void 7476s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 7476s # OrgProjectSignalingIface *object, 7476s # GVariant *arg_arg_asv) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # 7476s # GList *connections, *l; 7476s # GVariant *signal_variant; 7476s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7476s # 7476s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 7476s # arg_arg_asv)); 7476s # for (l = connections; l != NULL; l = l->next) 7476s # { 7476s # GDBusConnection *connection = l->data; 7476s # g_dbus_connection_emit_signal (connection, 7476s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 7476s # signal_variant, NULL); 7476s # } 7476s # g_variant_unref (signal_variant); 7476s # g_list_free_full (connections, g_object_unref); 7476s # } 7476s # 7476s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #else 7476s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7476s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7476s # 7476s # #endif 7476s # static void 7476s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7476s # { 7476s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7476s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7476s # if (skeleton->priv->changed_properties_idle_source != NULL) 7476s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7476s # g_main_context_unref (skeleton->priv->context); 7476s # g_mutex_clear (&skeleton->priv->lock); 7476s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7476s # { 7476s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7476s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7476s # #else 7476s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7476s # #endif 7476s # 7476s # g_mutex_init (&skeleton->priv->lock); 7476s # skeleton->priv->context = g_main_context_ref_thread_default (); 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7476s # { 7476s # GObjectClass *gobject_class; 7476s # GDBusInterfaceSkeletonClass *skeleton_class; 7476s # 7476s # gobject_class = G_OBJECT_CLASS (klass); 7476s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7476s # 7476s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7476s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7476s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7476s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7476s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7476s # 7476s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7476s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7476s # #endif 7476s # } 7476s # 7476s # static void 7476s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7476s # { 7476s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7476s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 7476s # } 7476s # 7476s # /** 7476s # * org_project_signaling_iface_skeleton_new: 7476s # * 7476s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7476s # * 7476s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7476s # */ 7476s # OrgProjectSignalingIface * 7476s # org_project_signaling_iface_skeleton_new (void) 7476s # { 7476s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7476s # } 7476s # Error: 7477s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 7477s # gdbus-codegen: /usr/bin/gdbus-codegen 7477s # tmpdir: /tmp/tmpys9cq2cm 7477s # /tmp/tmpys9cq2cm/tmp144nnk20.xml: 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # 7477s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpys9cq2cm/tmp144nnk20.xml', '--output', '-', '--body'] 7477s # Return code: 0 7477s # Output: 7477s # /* 7477s # * This file is generated by gdbus-codegen, do not modify it. 7477s # * 7477s # * The license of this code is the same as for the D-Bus interface description 7477s # * it was derived from. Note that it links to GLib, so must comply with the 7477s # * LGPL linking clauses. 7477s # */ 7477s # 7477s # #ifdef HAVE_CONFIG_H 7477s # # include "config.h" 7477s # #endif 7477s # 7477s # #include 7477s # #ifdef G_OS_UNIX 7477s # # include 7477s # #endif 7477s # 7477s # #ifdef G_ENABLE_DEBUG 7477s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7477s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7477s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7477s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7477s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7477s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7477s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7477s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7477s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7477s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7477s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7477s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7477s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7477s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7477s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7477s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7477s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7477s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7477s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7477s # #else /* !G_ENABLE_DEBUG */ 7477s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7477s # * Do not access GValues directly in your code. Instead, use the 7477s # * g_value_get_*() functions 7477s # */ 7477s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7477s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7477s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7477s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7477s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7477s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7477s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7477s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7477s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7477s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7477s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7477s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7477s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7477s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7477s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7477s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7477s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7477s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7477s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7477s # #endif /* !G_ENABLE_DEBUG */ 7477s # 7477s # typedef struct 7477s # { 7477s # GDBusArgInfo parent_struct; 7477s # gboolean use_gvariant; 7477s # } _ExtendedGDBusArgInfo; 7477s # 7477s # typedef struct 7477s # { 7477s # GDBusMethodInfo parent_struct; 7477s # const gchar *signal_name; 7477s # gboolean pass_fdlist; 7477s # } _ExtendedGDBusMethodInfo; 7477s # 7477s # typedef struct 7477s # { 7477s # GDBusSignalInfo parent_struct; 7477s # const gchar *signal_name; 7477s # } _ExtendedGDBusSignalInfo; 7477s # 7477s # typedef struct 7477s # { 7477s # GDBusPropertyInfo parent_struct; 7477s # const gchar *hyphen_name; 7477s # guint use_gvariant : 1; 7477s # guint emits_changed_signal : 1; 7477s # } _ExtendedGDBusPropertyInfo; 7477s # 7477s # typedef struct 7477s # { 7477s # GDBusInterfaceInfo parent_struct; 7477s # const gchar *hyphen_name; 7477s # } _ExtendedGDBusInterfaceInfo; 7477s # 7477s # typedef struct 7477s # { 7477s # const _ExtendedGDBusPropertyInfo *info; 7477s # guint prop_id; 7477s # GValue orig_value; /* the value before the change */ 7477s # } ChangedProperty; 7477s # 7477s # static void 7477s # _changed_property_free (ChangedProperty *data) 7477s # { 7477s # g_value_unset (&data->orig_value); 7477s # g_free (data); 7477s # } 7477s # 7477s # static gboolean 7477s # _g_strv_equal0 (gchar **a, gchar **b) 7477s # { 7477s # gboolean ret = FALSE; 7477s # guint n; 7477s # if (a == NULL && b == NULL) 7477s # { 7477s # ret = TRUE; 7477s # goto out; 7477s # } 7477s # if (a == NULL || b == NULL) 7477s # goto out; 7477s # if (g_strv_length (a) != g_strv_length (b)) 7477s # goto out; 7477s # for (n = 0; a[n] != NULL; n++) 7477s # if (g_strcmp0 (a[n], b[n]) != 0) 7477s # goto out; 7477s # ret = TRUE; 7477s # out: 7477s # return ret; 7477s # } 7477s # 7477s # static gboolean 7477s # _g_variant_equal0 (GVariant *a, GVariant *b) 7477s # { 7477s # gboolean ret = FALSE; 7477s # if (a == NULL && b == NULL) 7477s # { 7477s # ret = TRUE; 7477s # goto out; 7477s # } 7477s # if (a == NULL || b == NULL) 7477s # goto out; 7477s # ret = g_variant_equal (a, b); 7477s # out: 7477s # return ret; 7477s # } 7477s # 7477s # G_GNUC_UNUSED static gboolean 7477s # _g_value_equal (const GValue *a, const GValue *b) 7477s # { 7477s # gboolean ret = FALSE; 7477s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7477s # switch (G_VALUE_TYPE (a)) 7477s # { 7477s # case G_TYPE_BOOLEAN: 7477s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7477s # break; 7477s # case G_TYPE_UCHAR: 7477s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7477s # break; 7477s # case G_TYPE_INT: 7477s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7477s # break; 7477s # case G_TYPE_UINT: 7477s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7477s # break; 7477s # case G_TYPE_INT64: 7477s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7477s # break; 7477s # case G_TYPE_UINT64: 7477s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7477s # break; 7477s # case G_TYPE_DOUBLE: 7477s # { 7477s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7477s # gdouble da = g_value_get_double (a); 7477s # gdouble db = g_value_get_double (b); 7477s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7477s # } 7477s # break; 7477s # case G_TYPE_STRING: 7477s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7477s # break; 7477s # case G_TYPE_VARIANT: 7477s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7477s # break; 7477s # default: 7477s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7477s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7477s # else 7477s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7477s # break; 7477s # } 7477s # return ret; 7477s # } 7477s # 7477s # static void 7477s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 7477s # GClosure *closure, 7477s # GValue *return_value G_GNUC_UNUSED, 7477s # unsigned int n_param_values, 7477s # const GValue *param_values, 7477s # void *invocation_hint G_GNUC_UNUSED, 7477s # void *marshal_data) 7477s # { 7477s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 7477s # (void *data1, 7477s # gboolean arg_an_b, 7477s # guchar arg_an_y, 7477s # gint16 arg_an_n, 7477s # guint16 arg_an_q, 7477s # gint arg_an_i, 7477s # guint arg_an_u, 7477s # gint64 arg_an_x, 7477s # guint64 arg_an_t, 7477s # gdouble arg_an_d, 7477s # const gchar *arg_an_s, 7477s # const gchar *arg_an_o, 7477s # const gchar *arg_an_g, 7477s # GVariant *arg_an_h, 7477s # const gchar *arg_an_ay, 7477s # const gchar *const *arg_an_as, 7477s # const gchar *const *arg_an_ao, 7477s # const gchar *const *arg_an_aay, 7477s # GVariant *arg_an_asv, 7477s # void *data2); 7477s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 7477s # GCClosure *cc = (GCClosure*) closure; 7477s # void *data1, *data2; 7477s # 7477s # g_return_if_fail (n_param_values == 19); 7477s # 7477s # if (G_CCLOSURE_SWAP_DATA (closure)) 7477s # { 7477s # data1 = closure->data; 7477s # data2 = g_value_peek_pointer (param_values + 0); 7477s # } 7477s # else 7477s # { 7477s # data1 = g_value_peek_pointer (param_values + 0); 7477s # data2 = closure->data; 7477s # } 7477s # 7477s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 7477s # (marshal_data ? marshal_data : cc->callback); 7477s # 7477s # callback (data1, 7477s # g_marshal_value_peek_boolean (param_values + 1), 7477s # g_marshal_value_peek_uchar (param_values + 2), 7477s # g_marshal_value_peek_int (param_values + 3), 7477s # g_marshal_value_peek_uint (param_values + 4), 7477s # g_marshal_value_peek_int (param_values + 5), 7477s # g_marshal_value_peek_uint (param_values + 6), 7477s # g_marshal_value_peek_int64 (param_values + 7), 7477s # g_marshal_value_peek_uint64 (param_values + 8), 7477s # g_marshal_value_peek_double (param_values + 9), 7477s # g_marshal_value_peek_string (param_values + 10), 7477s # g_marshal_value_peek_string (param_values + 11), 7477s # g_marshal_value_peek_string (param_values + 12), 7477s # g_marshal_value_peek_variant (param_values + 13), 7477s # g_marshal_value_peek_string (param_values + 14), 7477s # g_marshal_value_peek_boxed (param_values + 15), 7477s # g_marshal_value_peek_boxed (param_values + 16), 7477s # g_marshal_value_peek_boxed (param_values + 17), 7477s # g_marshal_value_peek_variant (param_values + 18), 7477s # data2); 7477s # } 7477s # 7477s # /* ------------------------------------------------------------------------ 7477s # * Code for interface org.project.SignalingIface 7477s # * ------------------------------------------------------------------------ 7477s # */ 7477s # 7477s # /** 7477s # * SECTION:OrgProjectSignalingIface 7477s # * @title: OrgProjectSignalingIface 7477s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 7477s # * 7477s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 7477s # */ 7477s # 7477s # enum 7477s # { 7477s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 7477s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 7477s # }; 7477s # 7477s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 7477s # 7477s # /* ---- Introspection data for org.project.SignalingIface ---- */ 7477s # 7477s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "SimpleSignal", 7477s # NULL, 7477s # NULL 7477s # }, 7477s # "simple-signal" 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_b", 7477s # (gchar *) "b", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_y", 7477s # (gchar *) "y", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_n", 7477s # (gchar *) "n", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_q", 7477s # (gchar *) "q", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_i", 7477s # (gchar *) "i", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_u", 7477s # (gchar *) "u", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_x", 7477s # (gchar *) "x", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_t", 7477s # (gchar *) "t", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_d", 7477s # (gchar *) "d", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_s", 7477s # (gchar *) "s", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_o", 7477s # (gchar *) "o", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_g", 7477s # (gchar *) "g", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_h", 7477s # (gchar *) "h", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_ay", 7477s # (gchar *) "ay", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_as", 7477s # (gchar *) "as", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_ao", 7477s # (gchar *) "ao", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_aay", 7477s # (gchar *) "aay", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 7477s # { 7477s # { 7477s # -1, 7477s # (gchar *) "an_asv", 7477s # (gchar *) "a{sv}", 7477s # NULL 7477s # }, 7477s # FALSE 7477s # }; 7477s # 7477s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 7477s # { 7477s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 7477s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 7477s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 7477s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 7477s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 7477s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 7478s # NULL 7478s # }; 7478s # 7478s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 7478s # { 7478s # { 7478s # -1, 7478s # (gchar *) "SignalWithManyArgs", 7478s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 7478s # NULL 7478s # }, 7478s # "signal-with-many-args" 7478s # }; 7478s # 7478s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 7478s # { 7478s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 7478s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 7478s # NULL 7478s # }; 7478s # 7478s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 7478s # { 7478s # { 7478s # -1, 7478s # (gchar *) "org.project.SignalingIface", 7478s # NULL, 7478s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 7478s # NULL, 7478s # NULL 7478s # }, 7478s # "org-project-signaling-iface", 7478s # }; 7478s # 7478s # 7478s # /** 7478s # * org_project_signaling_iface_interface_info: 7478s # * 7478s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 7478s # * 7478s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7478s # */ 7478s # GDBusInterfaceInfo * 7478s # org_project_signaling_iface_interface_info (void) 7478s # { 7478s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_override_properties: 7478s # * @klass: The class structure for a #GObject derived class. 7478s # * @property_id_begin: The property id to assign to the first overridden property. 7478s # * 7478s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 7478s # * The properties are overridden in the order they are defined. 7478s # * 7478s # * Returns: The last property id. 7478s # */ 7478s # guint 7478s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7478s # { 7478s # return property_id_begin - 1; 7478s # } 7478s # 7478s # 7478s # inline static void 7478s # org_project_signaling_iface_signal_marshal_simple_signal ( 7478s # GClosure *closure, 7478s # GValue *return_value, 7478s # unsigned int n_param_values, 7478s # const GValue *param_values, 7478s # void *invocation_hint, 7478s # void *marshal_data) 7478s # { 7478s # g_cclosure_marshal_VOID__VOID (closure, 7478s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7478s # } 7478s # 7478s # inline static void 7478s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 7478s # GClosure *closure, 7478s # GValue *return_value, 7478s # unsigned int n_param_values, 7478s # const GValue *param_values, 7478s # void *invocation_hint, 7478s # void *marshal_data) 7478s # { 7478s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 7478s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7478s # } 7478s # 7478s # 7478s # /** 7478s # * OrgProjectSignalingIface: 7478s # * 7478s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 7478s # */ 7478s # 7478s # /** 7478s # * OrgProjectSignalingIfaceIface: 7478s # * @parent_iface: The parent interface. 7478s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 7478s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 7478s # * 7478s # * Virtual table for the D-Bus interface org.project.SignalingIface. 7478s # */ 7478s # 7478s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 7478s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 7478s # 7478s # static void 7478s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 7478s # { 7478s # /* GObject signals for received D-Bus signals: */ 7478s # /** 7478s # * OrgProjectSignalingIface::simple-signal: 7478s # * @object: A #OrgProjectSignalingIface. 7478s # * 7478s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 7478s # * 7478s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7478s # */ 7478s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 7478s # g_signal_new ("simple-signal", 7478s # G_TYPE_FROM_INTERFACE (iface), 7478s # G_SIGNAL_RUN_LAST, 7478s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 7478s # NULL, 7478s # NULL, 7478s # org_project_signaling_iface_signal_marshal_simple_signal, 7478s # G_TYPE_NONE, 7478s # 0); 7478s # 7478s # /** 7478s # * OrgProjectSignalingIface::signal-with-many-args: 7478s # * @object: A #OrgProjectSignalingIface. 7478s # * @arg_an_b: Argument. 7478s # * @arg_an_y: Argument. 7478s # * @arg_an_n: Argument. 7478s # * @arg_an_q: Argument. 7478s # * @arg_an_i: Argument. 7478s # * @arg_an_u: Argument. 7478s # * @arg_an_x: Argument. 7478s # * @arg_an_t: Argument. 7478s # * @arg_an_d: Argument. 7478s # * @arg_an_s: Argument. 7478s # * @arg_an_o: Argument. 7478s # * @arg_an_g: Argument. 7478s # * @arg_an_h: Argument. 7478s # * @arg_an_ay: Argument. 7478s # * @arg_an_as: Argument. 7478s # * @arg_an_ao: Argument. 7478s # * @arg_an_aay: Argument. 7478s # * @arg_an_asv: Argument. 7478s # * 7478s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 7478s # * 7478s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7478s # */ 7478s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 7478s # g_signal_new ("signal-with-many-args", 7478s # G_TYPE_FROM_INTERFACE (iface), 7478s # G_SIGNAL_RUN_LAST, 7478s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 7478s # NULL, 7478s # NULL, 7478s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 7478s # G_TYPE_NONE, 7478s # 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); 7478s # 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_emit_simple_signal: 7478s # * @object: A #OrgProjectSignalingIface. 7478s # * 7478s # * Emits the "SimpleSignal" D-Bus signal. 7478s # */ 7478s # void 7478s # org_project_signaling_iface_emit_simple_signal ( 7478s # OrgProjectSignalingIface *object) 7478s # { 7478s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_emit_signal_with_many_args: 7478s # * @object: A #OrgProjectSignalingIface. 7478s # * @arg_an_b: Argument to pass with the signal. 7478s # * @arg_an_y: Argument to pass with the signal. 7478s # * @arg_an_n: Argument to pass with the signal. 7478s # * @arg_an_q: Argument to pass with the signal. 7478s # * @arg_an_i: Argument to pass with the signal. 7478s # * @arg_an_u: Argument to pass with the signal. 7478s # * @arg_an_x: Argument to pass with the signal. 7478s # * @arg_an_t: Argument to pass with the signal. 7478s # * @arg_an_d: Argument to pass with the signal. 7478s # * @arg_an_s: Argument to pass with the signal. 7478s # * @arg_an_o: Argument to pass with the signal. 7478s # * @arg_an_g: Argument to pass with the signal. 7478s # * @arg_an_h: Argument to pass with the signal. 7478s # * @arg_an_ay: Argument to pass with the signal. 7478s # * @arg_an_as: Argument to pass with the signal. 7478s # * @arg_an_ao: Argument to pass with the signal. 7478s # * @arg_an_aay: Argument to pass with the signal. 7478s # * @arg_an_asv: Argument to pass with the signal. 7478s # * 7478s # * Emits the "SignalWithManyArgs" D-Bus signal. 7478s # */ 7478s # void 7478s # org_project_signaling_iface_emit_signal_with_many_args ( 7478s # OrgProjectSignalingIface *object, 7478s # gboolean arg_an_b, 7478s # guchar arg_an_y, 7478s # gint16 arg_an_n, 7478s # guint16 arg_an_q, 7478s # gint arg_an_i, 7478s # guint arg_an_u, 7478s # gint64 arg_an_x, 7478s # guint64 arg_an_t, 7478s # gdouble arg_an_d, 7478s # const gchar *arg_an_s, 7478s # const gchar *arg_an_o, 7478s # const gchar *arg_an_g, 7478s # GVariant *arg_an_h, 7478s # const gchar *arg_an_ay, 7478s # const gchar *const *arg_an_as, 7478s # const gchar *const *arg_an_ao, 7478s # const gchar *const *arg_an_aay, 7478s # GVariant *arg_an_asv) 7478s # { 7478s # 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); 7478s # } 7478s # 7478s # /* ------------------------------------------------------------------------ */ 7478s # 7478s # /** 7478s # * OrgProjectSignalingIfaceProxy: 7478s # * 7478s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 7478s # */ 7478s # 7478s # /** 7478s # * OrgProjectSignalingIfaceProxyClass: 7478s # * @parent_class: The parent class. 7478s # * 7478s # * Class structure for #OrgProjectSignalingIfaceProxy. 7478s # */ 7478s # 7478s # struct _OrgProjectSignalingIfaceProxyPrivate 7478s # { 7478s # GData *qdata; 7478s # }; 7478s # 7478s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 7478s # 7478s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7478s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7478s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 7478s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7478s # 7478s # #else 7478s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 7478s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 7478s # 7478s # #endif 7478s # static void 7478s # org_project_signaling_iface_proxy_finalize (GObject *object) 7478s # { 7478s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 7478s # g_datalist_clear (&proxy->priv->qdata); 7478s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 7478s # guint prop_id G_GNUC_UNUSED, 7478s # GValue *value G_GNUC_UNUSED, 7478s # GParamSpec *pspec G_GNUC_UNUSED) 7478s # { 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 7478s # guint prop_id G_GNUC_UNUSED, 7478s # const GValue *value G_GNUC_UNUSED, 7478s # GParamSpec *pspec G_GNUC_UNUSED) 7478s # { 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 7478s # const gchar *sender_name G_GNUC_UNUSED, 7478s # const gchar *signal_name, 7478s # GVariant *parameters) 7478s # { 7478s # _ExtendedGDBusSignalInfo *info; 7478s # GVariantIter iter; 7478s # GVariant *child; 7478s # GValue *paramv; 7478s # gsize num_params; 7478s # gsize n; 7478s # guint signal_id; 7478s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 7478s # if (info == NULL) 7478s # return; 7478s # num_params = g_variant_n_children (parameters); 7478s # paramv = g_new0 (GValue, num_params + 1); 7478s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7478s # g_value_set_object (¶mv[0], proxy); 7478s # g_variant_iter_init (&iter, parameters); 7478s # n = 1; 7478s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7478s # { 7478s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7478s # if (arg_info->use_gvariant) 7478s # { 7478s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7478s # g_value_set_variant (¶mv[n], child); 7478s # n++; 7478s # } 7478s # else 7478s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7478s # g_variant_unref (child); 7478s # } 7478s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7478s # g_signal_emitv (paramv, signal_id, 0, NULL); 7478s # for (n = 0; n < num_params + 1; n++) 7478s # g_value_unset (¶mv[n]); 7478s # g_free (paramv); 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 7478s # GVariant *changed_properties, 7478s # const gchar *const *invalidated_properties) 7478s # { 7478s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 7478s # guint n; 7478s # const gchar *key; 7478s # GVariantIter *iter; 7478s # _ExtendedGDBusPropertyInfo *info; 7478s # g_variant_get (changed_properties, "a{sv}", &iter); 7478s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7478s # { 7478s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 7478s # g_datalist_remove_data (&proxy->priv->qdata, key); 7478s # if (info != NULL) 7478s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7478s # } 7478s # g_variant_iter_free (iter); 7478s # for (n = 0; invalidated_properties[n] != NULL; n++) 7478s # { 7478s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 7478s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7478s # if (info != NULL) 7478s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7478s # } 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 7478s # { 7478s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7478s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 7478s # #else 7478s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 7478s # #endif 7478s # 7478s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 7478s # { 7478s # GObjectClass *gobject_class; 7478s # GDBusProxyClass *proxy_class; 7478s # 7478s # gobject_class = G_OBJECT_CLASS (klass); 7478s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 7478s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 7478s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 7478s # 7478s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7478s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 7478s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 7478s # 7478s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7478s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 7478s # #endif 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 7478s # { 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_proxy_new: 7478s # * @connection: A #GDBusConnection. 7478s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7478s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7478s # * @object_path: An object path. 7478s # * @cancellable: (nullable): A #GCancellable or %NULL. 7478s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7478s # * @user_data: User data to pass to @callback. 7478s # * 7478s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 7478s # * 7478s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7478s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 7478s # * 7478s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 7478s # */ 7478s # void 7478s # org_project_signaling_iface_proxy_new ( 7478s # GDBusConnection *connection, 7478s # GDBusProxyFlags flags, 7478s # const gchar *name, 7478s # const gchar *object_path, 7478s # GCancellable *cancellable, 7478s # GAsyncReadyCallback callback, 7478s # gpointer user_data) 7478s # { 7478s # 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); 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_proxy_new_finish: 7478s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 7478s # * @error: Return location for error or %NULL 7478s # * 7478s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 7478s # * 7478s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7478s # */ 7478s # OrgProjectSignalingIface * 7478s # org_project_signaling_iface_proxy_new_finish ( 7478s # GAsyncResult *res, 7478s # GError **error) 7478s # { 7478s # GObject *ret; 7478s # GObject *source_object; 7478s # source_object = g_async_result_get_source_object (res); 7478s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7478s # g_object_unref (source_object); 7478s # if (ret != NULL) 7478s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7478s # else 7478s # return NULL; 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_proxy_new_sync: 7478s # * @connection: A #GDBusConnection. 7478s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7478s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7478s # * @object_path: An object path. 7478s # * @cancellable: (nullable): A #GCancellable or %NULL. 7478s # * @error: Return location for error or %NULL 7478s # * 7478s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 7478s # * 7478s # * The calling thread is blocked until a reply is received. 7478s # * 7478s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 7478s # * 7478s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7478s # */ 7478s # OrgProjectSignalingIface * 7478s # org_project_signaling_iface_proxy_new_sync ( 7478s # GDBusConnection *connection, 7478s # GDBusProxyFlags flags, 7478s # const gchar *name, 7478s # const gchar *object_path, 7478s # GCancellable *cancellable, 7478s # GError **error) 7478s # { 7478s # GInitable *ret; 7478s # 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); 7478s # if (ret != NULL) 7478s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7478s # else 7478s # return NULL; 7478s # } 7478s # 7478s # 7478s # /** 7478s # * org_project_signaling_iface_proxy_new_for_bus: 7478s # * @bus_type: A #GBusType. 7478s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7478s # * @name: A bus name (well-known or unique). 7478s # * @object_path: An object path. 7478s # * @cancellable: (nullable): A #GCancellable or %NULL. 7478s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7478s # * @user_data: User data to pass to @callback. 7478s # * 7478s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7478s # * 7478s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7478s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 7478s # * 7478s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7478s # */ 7478s # void 7478s # org_project_signaling_iface_proxy_new_for_bus ( 7478s # GBusType bus_type, 7478s # GDBusProxyFlags flags, 7478s # const gchar *name, 7478s # const gchar *object_path, 7478s # GCancellable *cancellable, 7478s # GAsyncReadyCallback callback, 7478s # gpointer user_data) 7478s # { 7478s # 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); 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_proxy_new_for_bus_finish: 7478s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 7478s # * @error: Return location for error or %NULL 7478s # * 7478s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 7478s # * 7478s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7478s # */ 7478s # OrgProjectSignalingIface * 7478s # org_project_signaling_iface_proxy_new_for_bus_finish ( 7478s # GAsyncResult *res, 7478s # GError **error) 7478s # { 7478s # GObject *ret; 7478s # GObject *source_object; 7478s # source_object = g_async_result_get_source_object (res); 7478s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7478s # g_object_unref (source_object); 7478s # if (ret != NULL) 7478s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7478s # else 7478s # return NULL; 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_proxy_new_for_bus_sync: 7478s # * @bus_type: A #GBusType. 7478s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7478s # * @name: A bus name (well-known or unique). 7478s # * @object_path: An object path. 7478s # * @cancellable: (nullable): A #GCancellable or %NULL. 7478s # * @error: Return location for error or %NULL 7478s # * 7478s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7478s # * 7478s # * The calling thread is blocked until a reply is received. 7478s # * 7478s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 7478s # * 7478s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 7478s # */ 7478s # OrgProjectSignalingIface * 7478s # org_project_signaling_iface_proxy_new_for_bus_sync ( 7478s # GBusType bus_type, 7478s # GDBusProxyFlags flags, 7478s # const gchar *name, 7478s # const gchar *object_path, 7478s # GCancellable *cancellable, 7478s # GError **error) 7478s # { 7478s # GInitable *ret; 7478s # 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); 7478s # if (ret != NULL) 7478s # return ORG_PROJECT_SIGNALING_IFACE (ret); 7478s # else 7478s # return NULL; 7478s # } 7478s # 7478s # 7478s # /* ------------------------------------------------------------------------ */ 7478s # 7478s # /** 7478s # * OrgProjectSignalingIfaceSkeleton: 7478s # * 7478s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 7478s # */ 7478s # 7478s # /** 7478s # * OrgProjectSignalingIfaceSkeletonClass: 7478s # * @parent_class: The parent class. 7478s # * 7478s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 7478s # */ 7478s # 7478s # struct _OrgProjectSignalingIfaceSkeletonPrivate 7478s # { 7478s # GValue *properties; 7478s # GList *changed_properties; 7478s # GSource *changed_properties_idle_source; 7478s # GMainContext *context; 7478s # GMutex lock; 7478s # }; 7478s # 7478s # static void 7478s # _org_project_signaling_iface_skeleton_handle_method_call ( 7478s # GDBusConnection *connection G_GNUC_UNUSED, 7478s # const gchar *sender G_GNUC_UNUSED, 7478s # const gchar *object_path G_GNUC_UNUSED, 7478s # const gchar *interface_name, 7478s # const gchar *method_name, 7478s # GVariant *parameters, 7478s # GDBusMethodInvocation *invocation, 7478s # gpointer user_data) 7478s # { 7478s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7478s # _ExtendedGDBusMethodInfo *info; 7478s # GVariantIter iter; 7478s # GVariant *child; 7478s # GValue *paramv; 7478s # gsize num_params; 7478s # guint num_extra; 7478s # gsize n; 7478s # guint signal_id; 7478s # GValue return_value = G_VALUE_INIT; 7478s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7478s # g_assert (info != NULL); 7478s # num_params = g_variant_n_children (parameters); 7478s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7478s # n = 0; 7478s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 7478s # g_value_set_object (¶mv[n++], skeleton); 7478s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7478s # g_value_set_object (¶mv[n++], invocation); 7478s # if (info->pass_fdlist) 7478s # { 7478s # #ifdef G_OS_UNIX 7478s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7478s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7478s # #else 7478s # g_assert_not_reached (); 7478s # #endif 7478s # } 7478s # g_variant_iter_init (&iter, parameters); 7478s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7478s # { 7478s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7478s # if (arg_info->use_gvariant) 7478s # { 7478s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7478s # g_value_set_variant (¶mv[n], child); 7478s # n++; 7478s # } 7478s # else 7478s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7478s # g_variant_unref (child); 7478s # } 7478s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 7478s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7478s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7478s # if (!g_value_get_boolean (&return_value)) 7478s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7478s # g_value_unset (&return_value); 7478s # for (n = 0; n < num_params + num_extra; n++) 7478s # g_value_unset (¶mv[n]); 7478s # g_free (paramv); 7478s # } 7478s # 7478s # static GVariant * 7478s # _org_project_signaling_iface_skeleton_handle_get_property ( 7478s # GDBusConnection *connection G_GNUC_UNUSED, 7478s # const gchar *sender G_GNUC_UNUSED, 7478s # const gchar *object_path G_GNUC_UNUSED, 7478s # const gchar *interface_name G_GNUC_UNUSED, 7478s # const gchar *property_name, 7478s # GError **error, 7478s # gpointer user_data) 7478s # { 7478s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7478s # GValue value = G_VALUE_INIT; 7478s # GParamSpec *pspec; 7478s # _ExtendedGDBusPropertyInfo *info; 7478s # GVariant *ret; 7478s # ret = NULL; 7478s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7478s # g_assert (info != NULL); 7478s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7478s # if (pspec == NULL) 7478s # { 7478s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7478s # } 7478s # else 7478s # { 7478s # g_value_init (&value, pspec->value_type); 7478s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7478s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7478s # g_value_unset (&value); 7478s # } 7478s # return ret; 7478s # } 7478s # 7478s # static gboolean 7478s # _org_project_signaling_iface_skeleton_handle_set_property ( 7478s # GDBusConnection *connection G_GNUC_UNUSED, 7478s # const gchar *sender G_GNUC_UNUSED, 7478s # const gchar *object_path G_GNUC_UNUSED, 7478s # const gchar *interface_name G_GNUC_UNUSED, 7478s # const gchar *property_name, 7478s # GVariant *variant, 7478s # GError **error, 7478s # gpointer user_data) 7478s # { 7478s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 7478s # GValue value = G_VALUE_INIT; 7478s # GParamSpec *pspec; 7478s # _ExtendedGDBusPropertyInfo *info; 7478s # gboolean ret; 7478s # ret = FALSE; 7478s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 7478s # g_assert (info != NULL); 7478s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7478s # if (pspec == NULL) 7478s # { 7478s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7478s # } 7478s # else 7478s # { 7478s # if (info->use_gvariant) 7478s # g_value_set_variant (&value, variant); 7478s # else 7478s # g_dbus_gvariant_to_gvalue (variant, &value); 7478s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7478s # g_value_unset (&value); 7478s # ret = TRUE; 7478s # } 7478s # return ret; 7478s # } 7478s # 7478s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 7478s # { 7478s # _org_project_signaling_iface_skeleton_handle_method_call, 7478s # _org_project_signaling_iface_skeleton_handle_get_property, 7478s # _org_project_signaling_iface_skeleton_handle_set_property, 7478s # {NULL} 7478s # }; 7478s # 7478s # static GDBusInterfaceInfo * 7478s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7478s # { 7478s # return org_project_signaling_iface_interface_info (); 7478s # } 7478s # 7478s # static GDBusInterfaceVTable * 7478s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7478s # { 7478s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 7478s # } 7478s # 7478s # static GVariant * 7478s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7478s # { 7478s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 7478s # 7478s # GVariantBuilder builder; 7478s # guint n; 7478s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7478s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7478s # #else 7478s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7478s # #endif 7478s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 7478s # goto out; 7478s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 7478s # { 7478s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 7478s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7478s # { 7478s # GVariant *value; 7478s # 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); 7478s # if (value != NULL) 7478s # { 7478s # g_variant_take_ref (value); 7478s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7478s # g_variant_unref (value); 7478s # } 7478s # } 7478s # } 7478s # out: 7478s # return g_variant_builder_end (&builder); 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7478s # { 7478s # } 7478s # 7478s # static void 7478s # _org_project_signaling_iface_on_signal_simple_signal ( 7478s # OrgProjectSignalingIface *object) 7478s # { 7478s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7478s # 7478s # GList *connections, *l; 7478s # GVariant *signal_variant; 7478s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7478s # 7478s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7478s # for (l = connections; l != NULL; l = l->next) 7478s # { 7478s # GDBusConnection *connection = l->data; 7478s # g_dbus_connection_emit_signal (connection, 7478s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 7478s # signal_variant, NULL); 7478s # } 7478s # g_variant_unref (signal_variant); 7478s # g_list_free_full (connections, g_object_unref); 7478s # } 7478s # 7478s # static void 7478s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 7478s # OrgProjectSignalingIface *object, 7478s # gboolean arg_an_b, 7478s # guchar arg_an_y, 7478s # gint16 arg_an_n, 7478s # guint16 arg_an_q, 7478s # gint arg_an_i, 7478s # guint arg_an_u, 7478s # gint64 arg_an_x, 7478s # guint64 arg_an_t, 7478s # gdouble arg_an_d, 7478s # const gchar *arg_an_s, 7478s # const gchar *arg_an_o, 7478s # const gchar *arg_an_g, 7478s # GVariant *arg_an_h, 7478s # const gchar *arg_an_ay, 7478s # const gchar *const *arg_an_as, 7478s # const gchar *const *arg_an_ao, 7478s # const gchar *const *arg_an_aay, 7478s # GVariant *arg_an_asv) 7478s # { 7478s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7478s # 7478s # GList *connections, *l; 7478s # GVariant *signal_variant; 7478s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7478s # 7478s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 7478s # arg_an_b, 7478s # arg_an_y, 7478s # arg_an_n, 7478s # arg_an_q, 7478s # arg_an_i, 7478s # arg_an_u, 7478s # arg_an_x, 7478s # arg_an_t, 7478s # arg_an_d, 7478s # arg_an_s, 7478s # arg_an_o, 7478s # arg_an_g, 7478s # arg_an_h, 7478s # arg_an_ay, 7478s # arg_an_as, 7478s # arg_an_ao, 7478s # arg_an_aay, 7478s # arg_an_asv)); 7478s # for (l = connections; l != NULL; l = l->next) 7478s # { 7478s # GDBusConnection *connection = l->data; 7478s # g_dbus_connection_emit_signal (connection, 7478s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 7478s # signal_variant, NULL); 7478s # } 7478s # g_variant_unref (signal_variant); 7478s # g_list_free_full (connections, g_object_unref); 7478s # } 7478s # 7478s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 7478s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7478s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7478s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 7478s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7478s # 7478s # #else 7478s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7478s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 7478s # 7478s # #endif 7478s # static void 7478s # org_project_signaling_iface_skeleton_finalize (GObject *object) 7478s # { 7478s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 7478s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7478s # if (skeleton->priv->changed_properties_idle_source != NULL) 7478s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7478s # g_main_context_unref (skeleton->priv->context); 7478s # g_mutex_clear (&skeleton->priv->lock); 7478s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 7478s # { 7478s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7478s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 7478s # #else 7478s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 7478s # #endif 7478s # 7478s # g_mutex_init (&skeleton->priv->lock); 7478s # skeleton->priv->context = g_main_context_ref_thread_default (); 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 7478s # { 7478s # GObjectClass *gobject_class; 7478s # GDBusInterfaceSkeletonClass *skeleton_class; 7478s # 7478s # gobject_class = G_OBJECT_CLASS (klass); 7478s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 7478s # 7478s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7478s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 7478s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 7478s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 7478s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 7478s # 7478s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7478s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 7478s # #endif 7478s # } 7478s # 7478s # static void 7478s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 7478s # { 7478s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 7478s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 7478s # } 7478s # 7478s # /** 7478s # * org_project_signaling_iface_skeleton_new: 7478s # * 7478s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 7478s # * 7478s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 7478s # */ 7478s # OrgProjectSignalingIface * 7478s # org_project_signaling_iface_skeleton_new (void) 7478s # { 7478s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 7478s # } 7478s # Error: 7479s ok 25 __main__.TestCodegen.test_generate_valid_docbook 7479s # gdbus-codegen: /usr/bin/gdbus-codegen 7479s # tmpdir: /tmp/tmpv_s23grh 7479s # /tmp/tmpv_s23grh/tmphkxl7jsq.xml: 7479s # 7479s # 7479s # 7479s # 7479s # 7479s # 7479s # 7479s # 7479s # 7479s # 7479s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_s23grh/tmphkxl7jsq.xml', '--generate-docbook', 'test'] 7479s # Return code: 0 7479s # Output: 7479s # 7479s # Error: 7479s # Executing: glib/codegen.py.test 7480s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 7480s # gdbus-codegen: /usr/bin/gdbus-codegen 7480s # tmpdir: /tmp/tmpnb8h5kpv 7480s # /tmp/tmpnb8h5kpv/tmpk5sura2f.xml: 7480s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpnb8h5kpv/tmpk5sura2f.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 7480s # Return code: 1 7480s # Output: 7480s # 7480s # Error: 7480s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 7481s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 7481s # gdbus-codegen: /usr/bin/gdbus-codegen 7481s # tmpdir: /tmp/tmppid41614 7481s # /tmp/tmppid41614/tmp2vfakful.xml: 7481s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppid41614/tmp2vfakful.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 7481s # Return code: 0 7481s # Output: 7481s # /* 7481s # * This file is generated by gdbus-codegen, do not modify it. 7481s # * 7481s # * The license of this code is the same as for the D-Bus interface description 7481s # * it was derived from. Note that it links to GLib, so must comply with the 7481s # * LGPL linking clauses. 7481s # */ 7481s # 7481s # #ifndef __STDOUT__ 7481s # #define __STDOUT__ 7481s # 7481s # #include 7481s # 7481s # G_BEGIN_DECLS 7481s # 7481s # 7481s # G_END_DECLS 7481s # 7481s # #endif /* __STDOUT__ */ 7481s # Error: 7483s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 7483s # gdbus-codegen: /usr/bin/gdbus-codegen 7483s # tmpdir: /tmp/tmp4oga5sly 7483s # /tmp/tmp4oga5sly/tmpa3x2zcvu.xml: 7483s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp4oga5sly/tmpa3x2zcvu.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 7483s # Return code: 1 7483s # Output: 7483s # 7483s # Error: 7483s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 7484s # Executing: glib/codegen.py.test 7484s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 7484s # gdbus-codegen: /usr/bin/gdbus-codegen 7484s # tmpdir: /tmp/tmpqvg0cmup 7484s # /tmp/tmpqvg0cmup/tmpyosda9cb.xml: 7484s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqvg0cmup/tmpyosda9cb.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 7484s # Return code: 0 7484s # Output: 7484s # /* 7484s # * This file is generated by gdbus-codegen, do not modify it. 7484s # * 7484s # * The license of this code is the same as for the D-Bus interface description 7484s # * it was derived from. Note that it links to GLib, so must comply with the 7484s # * LGPL linking clauses. 7484s # */ 7484s # 7484s # #ifndef __STDOUT__ 7484s # #define __STDOUT__ 7484s # 7484s # #include 7484s # 7484s # G_BEGIN_DECLS 7484s # 7484s # 7484s # G_END_DECLS 7484s # 7484s # #endif /* __STDOUT__ */ 7484s # Error: 7485s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 7485s # gdbus-codegen: /usr/bin/gdbus-codegen 7485s # tmpdir: /tmp/tmpww3ch4vw 7485s # /tmp/tmpww3ch4vw/tmpm3xgbr65.xml: 7485s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpww3ch4vw/tmpm3xgbr65.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 7485s # Return code: 0 7485s # Output: 7485s # /* 7485s # * This file is generated by gdbus-codegen, do not modify it. 7485s # * 7485s # * The license of this code is the same as for the D-Bus interface description 7485s # * it was derived from. Note that it links to GLib, so must comply with the 7485s # * LGPL linking clauses. 7485s # */ 7485s # 7485s # #ifndef __STDOUT__ 7485s # #define __STDOUT__ 7485s # 7485s # #include 7485s # 7485s # G_BEGIN_DECLS 7485s # 7485s # 7485s # G_END_DECLS 7485s # 7485s # #endif /* __STDOUT__ */ 7485s # Error: 7487s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 7487s # gdbus-codegen: /usr/bin/gdbus-codegen 7487s # tmpdir: /tmp/tmpzpobadqm 7487s # /tmp/tmpzpobadqm/tmplmndd3i8.xml: 7487s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzpobadqm/tmplmndd3i8.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 7487s # Return code: 1 7487s # Output: 7487s # 7487s # Error: 7487s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 7489s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 7489s # gdbus-codegen: /usr/bin/gdbus-codegen 7489s # tmpdir: /tmp/tmpxxssa3co 7489s # /tmp/tmpxxssa3co/tmp12j_1kzm.xml: 7489s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxxssa3co/tmp12j_1kzm.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 7489s # Return code: 0 7489s # Output: 7489s # /* 7489s # * This file is generated by gdbus-codegen, do not modify it. 7489s # * 7489s # * The license of this code is the same as for the D-Bus interface description 7489s # * it was derived from. Note that it links to GLib, so must comply with the 7489s # * LGPL linking clauses. 7489s # */ 7489s # 7489s # #ifndef __STDOUT__ 7489s # #define __STDOUT__ 7489s # 7489s # #include 7489s # 7489s # G_BEGIN_DECLS 7489s # 7489s # 7489s # G_END_DECLS 7489s # 7489s # #endif /* __STDOUT__ */ 7489s # Error: 7489s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 7489s # gdbus-codegen: /usr/bin/gdbus-codegen 7489s # tmpdir: /tmp/tmpjwnfa19z 7489s # /tmp/tmpjwnfa19z/tmp8j_eledg.xml: 7489s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwnfa19z/tmp8j_eledg.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 7489s # Return code: 1 7489s # Output: 7489s # 7489s # Error: 7489s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 7489s # Executing: glib/codegen.py.test 7490s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 7490s # gdbus-codegen: /usr/bin/gdbus-codegen 7490s # tmpdir: /tmp/tmpb0rds1jc 7490s # /tmp/tmpb0rds1jc/tmpgp6xp2lb.xml: 7490s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb0rds1jc/tmpgp6xp2lb.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 7490s # Return code: 0 7490s # Output: 7490s # /* 7490s # * This file is generated by gdbus-codegen, do not modify it. 7490s # * 7490s # * The license of this code is the same as for the D-Bus interface description 7490s # * it was derived from. Note that it links to GLib, so must comply with the 7490s # * LGPL linking clauses. 7490s # */ 7490s # 7490s # #ifndef __STDOUT__ 7490s # #define __STDOUT__ 7490s # 7490s # #include 7490s # 7490s # G_BEGIN_DECLS 7490s # 7490s # 7490s # G_END_DECLS 7490s # 7490s # #endif /* __STDOUT__ */ 7490s # Error: 7491s ok 35 __main__.TestCodegen.test_help 7491s # gdbus-codegen: /usr/bin/gdbus-codegen 7491s # tmpdir: /tmp/tmpne5_qpsm 7491s # Running: ['/usr/bin/gdbus-codegen', '--help'] 7491s # Return code: 0 7491s # Output: 7491s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 7491s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 7491s # [--c-generate-autocleanup {none,objects,all}] 7491s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 7491s # [--generate-rst OUTFILES] [--pragma-once] 7491s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 7491s # [--glib-min-required VERSION] 7491s # [--glib-max-allowed VERSION] 7491s # [--symbol-decorator SYMBOL_DECORATOR] 7491s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 7491s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 7491s # [--generate-c-code OUTFILES | --header | --body | 7491s # --interface-info-header | --interface-info-body] 7491s # [--output FILE | --output-directory OUTDIR] 7491s # FILE [FILE ...] 7491s # 7491s # D-Bus code and documentation generator 7491s # 7491s # positional arguments: 7491s # FILE D-Bus introspection XML file 7491s # 7491s # options: 7491s # -h, --help show this help message and exit 7491s # --interface-prefix PREFIX 7491s # String to strip from D-Bus interface names for code 7491s # and docs 7491s # --c-namespace NAMESPACE 7491s # The namespace to use for generated C code 7491s # --c-generate-object-manager 7491s # Generate a GDBusObjectManagerClient subclass when 7491s # generating C code 7491s # --c-generate-autocleanup {none,objects,all} 7491s # Generate autocleanup support 7491s # --generate-docbook OUTFILES 7491s # Generate Docbook in OUTFILES-org.Project.IFace.xml 7491s # --generate-md OUTFILES 7491s # Generate Markdown in OUTFILES-org.Project.IFace.md 7491s # --generate-rst OUTFILES 7491s # Generate reStructuredText in OUTFILES- 7491s # org.Project.IFace.rst 7491s # --pragma-once Use "pragma once" as the inclusion guard 7491s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 7491s # Add annotation (may be used several times) 7491s # --glib-min-required VERSION 7491s # Minimum version of GLib to be supported by the 7491s # outputted code (default: 2.30) 7491s # --glib-max-allowed VERSION 7491s # Maximum version of GLib to be used by the outputted 7491s # code (default: current GLib version) 7491s # --symbol-decorator SYMBOL_DECORATOR 7491s # Macro used to decorate a symbol in the outputted 7491s # header, possibly to export symbols 7491s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 7491s # Additional header required for decorator specified by 7491s # --symbol-decorator 7491s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 7491s # Additional define required for decorator specified by 7491s # --symbol-decorator 7491s # --generate-c-code OUTFILES 7491s # Generate C code in OUTFILES.[ch] 7491s # --header Generate C headers 7491s # --body Generate C code 7491s # --interface-info-header 7491s # Generate GDBusInterfaceInfo C header 7491s # --interface-info-body 7491s # Generate GDBusInterfaceInfo C code 7491s # --output FILE Write output into the specified file 7491s # --output-directory OUTDIR 7491s # Location to output generated files 7491s # Error: 7494s # Executing: glib/codegen.py.test 7495s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 7495s # gdbus-codegen: /usr/bin/gdbus-codegen 7495s # tmpdir: /tmp/tmpkwmfcy5k 7495s # /tmp/tmpkwmfcy5k/tmpb02oqg0s.xml: 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkwmfcy5k/tmpb02oqg0s.xml', '--generate-rst', 'test'] 7495s # Return code: 0 7495s # Output: 7495s # 7495s # Error: 7495s # 7495s # /tmp/tmpkwmfcy5k/tmp_fa05scy.xml: 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkwmfcy5k/tmp_fa05scy.xml', '--generate-md', 'test'] 7495s # Return code: 0 7495s # Output: 7495s # 7495s # Error: 7495s # 7495s # /tmp/tmpkwmfcy5k/tmpu86dl7rm.xml: 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # 7495s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkwmfcy5k/tmpu86dl7rm.xml', '--generate-docbook', 'test'] 7495s # Return code: 0 7495s # Output: 7495s # 7495s # Error: 7496s ok 37 __main__.TestCodegen.test_no_args 7496s # gdbus-codegen: /usr/bin/gdbus-codegen 7496s # tmpdir: /tmp/tmpwak8t41o 7496s # Running: ['/usr/bin/gdbus-codegen'] 7496s # Return code: 2 7496s # Output: 7496s # 7496s # Error: 7496s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 7496s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 7496s # [--c-generate-autocleanup {none,objects,all}] 7496s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 7496s # [--generate-rst OUTFILES] [--pragma-once] 7496s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 7496s # [--glib-min-required VERSION] 7496s # [--glib-max-allowed VERSION] 7496s # [--symbol-decorator SYMBOL_DECORATOR] 7496s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 7496s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 7496s # [--generate-c-code OUTFILES | --header | --body | 7496s # --interface-info-header | --interface-info-body] 7496s # [--output FILE | --output-directory OUTDIR] 7496s # FILE [FILE ...] 7496s # gdbus-codegen: error: the following arguments are required: FILE 7499s # Executing: glib/codegen.py.test 7501s ok 38 __main__.TestCodegen.test_reproducible 7501s # gdbus-codegen: /usr/bin/gdbus-codegen 7501s # tmpdir: /tmp/tmpoiy_3dqf 7501s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpoiy_3dqf/tmpkn8bve421.xml', '/tmp/tmpoiy_3dqf/tmpwlv9_ttn2.xml', '--output', '-', '--header'] 7501s # Return code: 0 7501s # Output: 7501s # /* 7501s # * This file is generated by gdbus-codegen, do not modify it. 7501s # * 7501s # * The license of this code is the same as for the D-Bus interface description 7501s # * it was derived from. Note that it links to GLib, so must comply with the 7501s # * LGPL linking clauses. 7501s # */ 7501s # 7501s # #ifndef __STDOUT__ 7501s # #define __STDOUT__ 7501s # 7501s # #include 7501s # 7501s # G_BEGIN_DECLS 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # /* Declarations for com.acme.Coyote */ 7501s # 7501s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 7501s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 7501s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 7501s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 7501s # 7501s # struct _ComAcmeCoyote; 7501s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 7501s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 7501s # 7501s # struct _ComAcmeCoyoteIface 7501s # { 7501s # GTypeInterface parent_iface; 7501s # 7501s # 7501s # 7501s # gboolean (*handle_attack) ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # gboolean (*handle_run) ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # gboolean (*handle_sleep) ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # const gchar * (*get_mood) (ComAcmeCoyote *object); 7501s # 7501s # void (*surprised) ( 7501s # ComAcmeCoyote *object); 7501s # 7501s # }; 7501s # 7501s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 7501s # 7501s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 7501s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 7501s # 7501s # 7501s # /* D-Bus method call completion functions: */ 7501s # void com_acme_coyote_complete_run ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # void com_acme_coyote_complete_sleep ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # void com_acme_coyote_complete_attack ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # 7501s # 7501s # /* D-Bus signal emissions functions: */ 7501s # void com_acme_coyote_emit_surprised ( 7501s # ComAcmeCoyote *object); 7501s # 7501s # 7501s # 7501s # /* D-Bus method calls: */ 7501s # void com_acme_coyote_call_run ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean com_acme_coyote_call_run_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean com_acme_coyote_call_run_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void com_acme_coyote_call_sleep ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean com_acme_coyote_call_sleep_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean com_acme_coyote_call_sleep_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void com_acme_coyote_call_attack ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean com_acme_coyote_call_attack_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean com_acme_coyote_call_attack_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # 7501s # /* D-Bus property accessors: */ 7501s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 7501s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 7501s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 7501s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 7501s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 7501s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 7501s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 7501s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 7501s # 7501s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 7501s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 7501s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 7501s # 7501s # struct _ComAcmeCoyoteProxy 7501s # { 7501s # /*< private >*/ 7501s # GDBusProxy parent_instance; 7501s # ComAcmeCoyoteProxyPrivate *priv; 7501s # }; 7501s # 7501s # struct _ComAcmeCoyoteProxyClass 7501s # { 7501s # GDBusProxyClass parent_class; 7501s # }; 7501s # 7501s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 7501s # #endif 7501s # 7501s # void com_acme_coyote_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void com_acme_coyote_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 7501s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 7501s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 7501s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 7501s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 7501s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 7501s # 7501s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 7501s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 7501s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 7501s # 7501s # struct _ComAcmeCoyoteSkeleton 7501s # { 7501s # /*< private >*/ 7501s # GDBusInterfaceSkeleton parent_instance; 7501s # ComAcmeCoyoteSkeletonPrivate *priv; 7501s # }; 7501s # 7501s # struct _ComAcmeCoyoteSkeletonClass 7501s # { 7501s # GDBusInterfaceSkeletonClass parent_class; 7501s # }; 7501s # 7501s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 7501s # #endif 7501s # 7501s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # /* Declarations for org.project.Bar.Frobnicator */ 7501s # 7501s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 7501s # 7501s # struct _OrgProjectBarFrobnicator; 7501s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 7501s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 7501s # 7501s # struct _OrgProjectBarFrobnicatorIface 7501s # { 7501s # GTypeInterface parent_iface; 7501s # 7501s # gboolean (*handle_random_method) ( 7501s # OrgProjectBarFrobnicator *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # }; 7501s # 7501s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 7501s # 7501s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 7501s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 7501s # 7501s # 7501s # /* D-Bus method call completion functions: */ 7501s # void org_project_bar_frobnicator_complete_random_method ( 7501s # OrgProjectBarFrobnicator *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # 7501s # 7501s # /* D-Bus method calls: */ 7501s # void org_project_bar_frobnicator_call_random_method ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 7501s # 7501s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 7501s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 7501s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 7501s # 7501s # struct _OrgProjectBarFrobnicatorProxy 7501s # { 7501s # /*< private >*/ 7501s # GDBusProxy parent_instance; 7501s # OrgProjectBarFrobnicatorProxyPrivate *priv; 7501s # }; 7501s # 7501s # struct _OrgProjectBarFrobnicatorProxyClass 7501s # { 7501s # GDBusProxyClass parent_class; 7501s # }; 7501s # 7501s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 7501s # #endif 7501s # 7501s # void org_project_bar_frobnicator_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void org_project_bar_frobnicator_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 7501s # 7501s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 7501s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 7501s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 7501s # 7501s # struct _OrgProjectBarFrobnicatorSkeleton 7501s # { 7501s # /*< private >*/ 7501s # GDBusInterfaceSkeleton parent_instance; 7501s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 7501s # }; 7501s # 7501s # struct _OrgProjectBarFrobnicatorSkeletonClass 7501s # { 7501s # GDBusInterfaceSkeletonClass parent_class; 7501s # }; 7501s # 7501s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 7501s # #endif 7501s # 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 7501s # 7501s # 7501s # G_END_DECLS 7501s # 7501s # #endif /* __STDOUT__ */ 7501s # Error: 7501s # 7501s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpoiy_3dqf/tmpwlv9_ttn2.xml', '/tmp/tmpoiy_3dqf/tmpkn8bve421.xml', '--output', '-', '--header'] 7501s # Return code: 0 7501s # Output: 7501s # /* 7501s # * This file is generated by gdbus-codegen, do not modify it. 7501s # * 7501s # * The license of this code is the same as for the D-Bus interface description 7501s # * it was derived from. Note that it links to GLib, so must comply with the 7501s # * LGPL linking clauses. 7501s # */ 7501s # 7501s # #ifndef __STDOUT__ 7501s # #define __STDOUT__ 7501s # 7501s # #include 7501s # 7501s # G_BEGIN_DECLS 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # /* Declarations for com.acme.Coyote */ 7501s # 7501s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 7501s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 7501s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 7501s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 7501s # 7501s # struct _ComAcmeCoyote; 7501s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 7501s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 7501s # 7501s # struct _ComAcmeCoyoteIface 7501s # { 7501s # GTypeInterface parent_iface; 7501s # 7501s # 7501s # 7501s # gboolean (*handle_attack) ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # gboolean (*handle_run) ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # gboolean (*handle_sleep) ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # const gchar * (*get_mood) (ComAcmeCoyote *object); 7501s # 7501s # void (*surprised) ( 7501s # ComAcmeCoyote *object); 7501s # 7501s # }; 7501s # 7501s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 7501s # 7501s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 7501s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 7501s # 7501s # 7501s # /* D-Bus method call completion functions: */ 7501s # void com_acme_coyote_complete_run ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # void com_acme_coyote_complete_sleep ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # void com_acme_coyote_complete_attack ( 7501s # ComAcmeCoyote *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # 7501s # 7501s # /* D-Bus signal emissions functions: */ 7501s # void com_acme_coyote_emit_surprised ( 7501s # ComAcmeCoyote *object); 7501s # 7501s # 7501s # 7501s # /* D-Bus method calls: */ 7501s # void com_acme_coyote_call_run ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean com_acme_coyote_call_run_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean com_acme_coyote_call_run_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void com_acme_coyote_call_sleep ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean com_acme_coyote_call_sleep_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean com_acme_coyote_call_sleep_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void com_acme_coyote_call_attack ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean com_acme_coyote_call_attack_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean com_acme_coyote_call_attack_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # 7501s # /* D-Bus property accessors: */ 7501s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 7501s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 7501s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 7501s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 7501s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 7501s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 7501s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 7501s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 7501s # 7501s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 7501s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 7501s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 7501s # 7501s # struct _ComAcmeCoyoteProxy 7501s # { 7501s # /*< private >*/ 7501s # GDBusProxy parent_instance; 7501s # ComAcmeCoyoteProxyPrivate *priv; 7501s # }; 7501s # 7501s # struct _ComAcmeCoyoteProxyClass 7501s # { 7501s # GDBusProxyClass parent_class; 7501s # }; 7501s # 7501s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 7501s # #endif 7501s # 7501s # void com_acme_coyote_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void com_acme_coyote_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 7501s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 7501s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 7501s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 7501s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 7501s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 7501s # 7501s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 7501s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 7501s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 7501s # 7501s # struct _ComAcmeCoyoteSkeleton 7501s # { 7501s # /*< private >*/ 7501s # GDBusInterfaceSkeleton parent_instance; 7501s # ComAcmeCoyoteSkeletonPrivate *priv; 7501s # }; 7501s # 7501s # struct _ComAcmeCoyoteSkeletonClass 7501s # { 7501s # GDBusInterfaceSkeletonClass parent_class; 7501s # }; 7501s # 7501s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 7501s # #endif 7501s # 7501s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # /* Declarations for org.project.Bar.Frobnicator */ 7501s # 7501s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 7501s # 7501s # struct _OrgProjectBarFrobnicator; 7501s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 7501s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 7501s # 7501s # struct _OrgProjectBarFrobnicatorIface 7501s # { 7501s # GTypeInterface parent_iface; 7501s # 7501s # gboolean (*handle_random_method) ( 7501s # OrgProjectBarFrobnicator *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # }; 7501s # 7501s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 7501s # 7501s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 7501s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 7501s # 7501s # 7501s # /* D-Bus method call completion functions: */ 7501s # void org_project_bar_frobnicator_complete_random_method ( 7501s # OrgProjectBarFrobnicator *object, 7501s # GDBusMethodInvocation *invocation); 7501s # 7501s # 7501s # 7501s # /* D-Bus method calls: */ 7501s # void org_project_bar_frobnicator_call_random_method ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # 7501s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # 7501s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 7501s # 7501s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 7501s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 7501s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 7501s # 7501s # struct _OrgProjectBarFrobnicatorProxy 7501s # { 7501s # /*< private >*/ 7501s # GDBusProxy parent_instance; 7501s # OrgProjectBarFrobnicatorProxyPrivate *priv; 7501s # }; 7501s # 7501s # struct _OrgProjectBarFrobnicatorProxyClass 7501s # { 7501s # GDBusProxyClass parent_class; 7501s # }; 7501s # 7501s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 7501s # #endif 7501s # 7501s # void org_project_bar_frobnicator_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # void org_project_bar_frobnicator_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error); 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error); 7501s # 7501s # 7501s # /* ---- */ 7501s # 7501s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 7501s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 7501s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 7501s # 7501s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 7501s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 7501s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 7501s # 7501s # struct _OrgProjectBarFrobnicatorSkeleton 7501s # { 7501s # /*< private >*/ 7501s # GDBusInterfaceSkeleton parent_instance; 7501s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 7501s # }; 7501s # 7501s # struct _OrgProjectBarFrobnicatorSkeletonClass 7501s # { 7501s # GDBusInterfaceSkeletonClass parent_class; 7501s # }; 7501s # 7501s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 7501s # 7501s # #if GLIB_CHECK_VERSION(2, 44, 0) 7501s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 7501s # #endif 7501s # 7501s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 7501s # 7501s # 7501s # G_END_DECLS 7501s # 7501s # #endif /* __STDOUT__ */ 7501s # Error: 7501s # 7501s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpoiy_3dqf/tmpkn8bve421.xml', '/tmp/tmpoiy_3dqf/tmpwlv9_ttn2.xml', '--output', '-', '--body'] 7501s # Return code: 0 7501s # Output: 7501s # /* 7501s # * This file is generated by gdbus-codegen, do not modify it. 7501s # * 7501s # * The license of this code is the same as for the D-Bus interface description 7501s # * it was derived from. Note that it links to GLib, so must comply with the 7501s # * LGPL linking clauses. 7501s # */ 7501s # 7501s # #ifdef HAVE_CONFIG_H 7501s # # include "config.h" 7501s # #endif 7501s # 7501s # #include 7501s # #ifdef G_OS_UNIX 7501s # # include 7501s # #endif 7501s # 7501s # #ifdef G_ENABLE_DEBUG 7501s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7501s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7501s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7501s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7501s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7501s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7501s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7501s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7501s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7501s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7501s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7501s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7501s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7501s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7501s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7501s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7501s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7501s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7501s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7501s # #else /* !G_ENABLE_DEBUG */ 7501s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7501s # * Do not access GValues directly in your code. Instead, use the 7501s # * g_value_get_*() functions 7501s # */ 7501s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7501s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7501s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7501s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7501s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7501s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7501s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7501s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7501s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7501s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7501s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7501s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7501s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7501s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7501s # #endif /* !G_ENABLE_DEBUG */ 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusArgInfo parent_struct; 7501s # gboolean use_gvariant; 7501s # } _ExtendedGDBusArgInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusMethodInfo parent_struct; 7501s # const gchar *signal_name; 7501s # gboolean pass_fdlist; 7501s # } _ExtendedGDBusMethodInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusSignalInfo parent_struct; 7501s # const gchar *signal_name; 7501s # } _ExtendedGDBusSignalInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusPropertyInfo parent_struct; 7501s # const gchar *hyphen_name; 7501s # guint use_gvariant : 1; 7501s # guint emits_changed_signal : 1; 7501s # } _ExtendedGDBusPropertyInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusInterfaceInfo parent_struct; 7501s # const gchar *hyphen_name; 7501s # } _ExtendedGDBusInterfaceInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # guint prop_id; 7501s # GValue orig_value; /* the value before the change */ 7501s # } ChangedProperty; 7501s # 7501s # static void 7501s # _changed_property_free (ChangedProperty *data) 7501s # { 7501s # g_value_unset (&data->orig_value); 7501s # g_free (data); 7501s # } 7501s # 7501s # static gboolean 7501s # _g_strv_equal0 (gchar **a, gchar **b) 7501s # { 7501s # gboolean ret = FALSE; 7501s # guint n; 7501s # if (a == NULL && b == NULL) 7501s # { 7501s # ret = TRUE; 7501s # goto out; 7501s # } 7501s # if (a == NULL || b == NULL) 7501s # goto out; 7501s # if (g_strv_length (a) != g_strv_length (b)) 7501s # goto out; 7501s # for (n = 0; a[n] != NULL; n++) 7501s # if (g_strcmp0 (a[n], b[n]) != 0) 7501s # goto out; 7501s # ret = TRUE; 7501s # out: 7501s # return ret; 7501s # } 7501s # 7501s # static gboolean 7501s # _g_variant_equal0 (GVariant *a, GVariant *b) 7501s # { 7501s # gboolean ret = FALSE; 7501s # if (a == NULL && b == NULL) 7501s # { 7501s # ret = TRUE; 7501s # goto out; 7501s # } 7501s # if (a == NULL || b == NULL) 7501s # goto out; 7501s # ret = g_variant_equal (a, b); 7501s # out: 7501s # return ret; 7501s # } 7501s # 7501s # G_GNUC_UNUSED static gboolean 7501s # _g_value_equal (const GValue *a, const GValue *b) 7501s # { 7501s # gboolean ret = FALSE; 7501s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7501s # switch (G_VALUE_TYPE (a)) 7501s # { 7501s # case G_TYPE_BOOLEAN: 7501s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7501s # break; 7501s # case G_TYPE_UCHAR: 7501s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7501s # break; 7501s # case G_TYPE_INT: 7501s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7501s # break; 7501s # case G_TYPE_UINT: 7501s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7501s # break; 7501s # case G_TYPE_INT64: 7501s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7501s # break; 7501s # case G_TYPE_UINT64: 7501s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7501s # break; 7501s # case G_TYPE_DOUBLE: 7501s # { 7501s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7501s # gdouble da = g_value_get_double (a); 7501s # gdouble db = g_value_get_double (b); 7501s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7501s # } 7501s # break; 7501s # case G_TYPE_STRING: 7501s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7501s # break; 7501s # case G_TYPE_VARIANT: 7501s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7501s # break; 7501s # default: 7501s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7501s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7501s # else 7501s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7501s # break; 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static void 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint G_GNUC_UNUSED, 7501s # void *marshal_data) 7501s # { 7501s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7501s # (void *data1, 7501s # GDBusMethodInvocation *arg_method_invocation, 7501s # void *data2); 7501s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7501s # GCClosure *cc = (GCClosure*) closure; 7501s # void *data1, *data2; 7501s # gboolean v_return; 7501s # 7501s # g_return_if_fail (return_value != NULL); 7501s # g_return_if_fail (n_param_values == 2); 7501s # 7501s # if (G_CCLOSURE_SWAP_DATA (closure)) 7501s # { 7501s # data1 = closure->data; 7501s # data2 = g_value_peek_pointer (param_values + 0); 7501s # } 7501s # else 7501s # { 7501s # data1 = g_value_peek_pointer (param_values + 0); 7501s # data2 = closure->data; 7501s # } 7501s # 7501s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7501s # (marshal_data ? marshal_data : cc->callback); 7501s # 7501s # v_return = 7501s # callback (data1, 7501s # g_marshal_value_peek_object (param_values + 1), 7501s # data2); 7501s # 7501s # g_value_set_boolean (return_value, v_return); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ 7501s # * Code for interface com.acme.Coyote 7501s # * ------------------------------------------------------------------------ 7501s # */ 7501s # 7501s # /** 7501s # * SECTION:ComAcmeCoyote 7501s # * @title: ComAcmeCoyote 7501s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 7501s # * 7501s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 7501s # */ 7501s # 7501s # enum 7501s # { 7501s # _COM_ACME_COYOTE_SURPRISED, 7501s # }; 7501s # 7501s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 7501s # 7501s # /* ---- Introspection data for com.acme.Coyote ---- */ 7501s # 7501s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Run", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-run", 7501s # FALSE 7501s # }; 7501s # 7501s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Sleep", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-sleep", 7501s # FALSE 7501s # }; 7501s # 7501s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Attack", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-attack", 7501s # FALSE 7501s # }; 7501s # 7501s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 7501s # { 7501s # &_com_acme_coyote_method_info_run.parent_struct, 7501s # &_com_acme_coyote_method_info_sleep.parent_struct, 7501s # &_com_acme_coyote_method_info_attack.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Surprised", 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "surprised" 7501s # }; 7501s # 7501s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 7501s # { 7501s # &_com_acme_coyote_signal_info_surprised.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Mood", 7501s # (gchar *) "s", 7501s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 7501s # NULL 7501s # }, 7501s # "mood", 7501s # FALSE, 7501s # TRUE 7501s # }; 7501s # 7501s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 7501s # { 7501s # &_com_acme_coyote_property_info_mood.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "com.acme.Coyote", 7501s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 7501s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 7501s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 7501s # NULL 7501s # }, 7501s # "com-acme-coyote", 7501s # }; 7501s # 7501s # 7501s # /** 7501s # * com_acme_coyote_interface_info: 7501s # * 7501s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 7501s # * 7501s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7501s # */ 7501s # GDBusInterfaceInfo * 7501s # com_acme_coyote_interface_info (void) 7501s # { 7501s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_override_properties: 7501s # * @klass: The class structure for a #GObject derived class. 7501s # * @property_id_begin: The property id to assign to the first overridden property. 7501s # * 7501s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 7501s # * The properties are overridden in the order they are defined. 7501s # * 7501s # * Returns: The last property id. 7501s # */ 7501s # guint 7501s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 7501s # { 7501s # g_object_class_override_property (klass, property_id_begin++, "mood"); 7501s # return property_id_begin - 1; 7501s # } 7501s # 7501s # 7501s # inline static void 7501s # com_acme_coyote_signal_marshal_surprised ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # g_cclosure_marshal_VOID__VOID (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # inline static void 7501s # com_acme_coyote_method_marshal_run ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # inline static void 7501s # com_acme_coyote_method_marshal_sleep ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # inline static void 7501s # com_acme_coyote_method_marshal_attack ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # 7501s # /** 7501s # * ComAcmeCoyote: 7501s # * 7501s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 7501s # */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteIface: 7501s # * @parent_iface: The parent interface. 7501s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 7501s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 7501s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 7501s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 7501s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 7501s # * 7501s # * Virtual table for the D-Bus interface com.acme.Coyote. 7501s # */ 7501s # 7501s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 7501s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 7501s # 7501s # static void 7501s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 7501s # { 7501s # /* GObject signals for incoming D-Bus method calls: */ 7501s # /** 7501s # * ComAcmeCoyote::handle-run: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-run", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # com_acme_coyote_method_marshal_run, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # /** 7501s # * ComAcmeCoyote::handle-sleep: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-sleep", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # com_acme_coyote_method_marshal_sleep, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # /** 7501s # * ComAcmeCoyote::handle-attack: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-attack", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # com_acme_coyote_method_marshal_attack, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # /* GObject signals for received D-Bus signals: */ 7501s # /** 7501s # * ComAcmeCoyote::surprised: 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 7501s # * 7501s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7501s # */ 7501s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 7501s # g_signal_new ("surprised", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 7501s # NULL, 7501s # NULL, 7501s # com_acme_coyote_signal_marshal_surprised, 7501s # G_TYPE_NONE, 7501s # 0); 7501s # 7501s # /* GObject properties for D-Bus properties: */ 7501s # /** 7501s # * ComAcmeCoyote:mood: 7501s # * 7501s # * Represents the D-Bus property "Mood". 7501s # * 7501s # * 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. 7501s # */ 7501s # g_object_interface_install_property (iface, 7501s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_get_mood: (skip) 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * Gets the value of the "Mood" D-Bus property. 7501s # * 7501s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # const gchar * 7501s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 7501s # { 7501s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 7501s # 7501s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_dup_mood: (skip) 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * Gets a copy of the "Mood" D-Bus property. 7501s # * 7501s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7501s # * 7501s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 7501s # */ 7501s # gchar * 7501s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 7501s # { 7501s # gchar *value; 7501s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 7501s # return value; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_set_mood: (skip) 7501s # * @object: A #ComAcmeCoyote. 7501s # * @value: The value to set. 7501s # * 7501s # * Sets the "Mood" D-Bus property to @value. 7501s # * 7501s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 7501s # */ 7501s # void 7501s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 7501s # { 7501s # g_object_set (G_OBJECT (object), "mood", value, NULL); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_emit_surprised: 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * Emits the "Surprised" D-Bus signal. 7501s # */ 7501s # void 7501s # com_acme_coyote_emit_surprised ( 7501s # ComAcmeCoyote *object) 7501s # { 7501s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_run: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the Run() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # com_acme_coyote_call_run ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "Run", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_run_finish: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_call_run(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_run_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_run_sync: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_run_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "Run", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_sleep: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # com_acme_coyote_call_sleep ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "Sleep", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_sleep_finish: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_call_sleep(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_sleep_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_sleep_sync: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_sleep_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "Sleep", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_attack: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # com_acme_coyote_call_attack ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "Attack", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_attack_finish: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_call_attack(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_attack_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_attack_sync: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_attack_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "Attack", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_complete_run: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # com_acme_coyote_complete_run ( 7501s # ComAcmeCoyote *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_complete_sleep: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # com_acme_coyote_complete_sleep ( 7501s # ComAcmeCoyote *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_complete_attack: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # com_acme_coyote_complete_attack ( 7501s # ComAcmeCoyote *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteProxy: 7501s # * 7501s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteProxyClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #ComAcmeCoyoteProxy. 7501s # */ 7501s # 7501s # struct _ComAcmeCoyoteProxyPrivate 7501s # { 7501s # GData *qdata; 7501s # }; 7501s # 7501s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 7501s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # com_acme_coyote_proxy_finalize (GObject *object) 7501s # { 7501s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 7501s # g_datalist_clear (&proxy->priv->qdata); 7501s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_get_property (GObject *object, 7501s # guint prop_id, 7501s # GValue *value, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *variant; 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 7501s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 7501s # if (info->use_gvariant) 7501s # { 7501s # g_value_set_variant (value, variant); 7501s # } 7501s # else 7501s # { 7501s # if (variant != NULL) 7501s # g_dbus_gvariant_to_gvalue (variant, value); 7501s # } 7501s # if (variant != NULL) 7501s # g_variant_unref (variant); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 7501s # GAsyncResult *res, 7501s # gpointer user_data) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info = user_data; 7501s # GError *error; 7501s # GVariant *_ret; 7501s # error = NULL; 7501s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 7501s # if (!_ret) 7501s # { 7501s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 7501s # info->parent_struct.name, 7501s # error->message, g_quark_to_string (error->domain), error->code); 7501s # g_error_free (error); 7501s # } 7501s # else 7501s # { 7501s # g_variant_unref (_ret); 7501s # } 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_set_property (GObject *object, 7501s # guint prop_id, 7501s # const GValue *value, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *variant; 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 7501s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 7501s # g_dbus_proxy_call (G_DBUS_PROXY (object), 7501s # "org.freedesktop.DBus.Properties.Set", 7501s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 7501s # g_variant_unref (variant); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 7501s # const gchar *sender_name G_GNUC_UNUSED, 7501s # const gchar *signal_name, 7501s # GVariant *parameters) 7501s # { 7501s # _ExtendedGDBusSignalInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # gsize n; 7501s # guint signal_id; 7501s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 7501s # if (info == NULL) 7501s # return; 7501s # num_params = g_variant_n_children (parameters); 7501s # paramv = g_new0 (GValue, num_params + 1); 7501s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 7501s # g_value_set_object (¶mv[0], proxy); 7501s # g_variant_iter_init (&iter, parameters); 7501s # n = 1; 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 7501s # g_signal_emitv (paramv, signal_id, 0, NULL); 7501s # for (n = 0; n < num_params + 1; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 7501s # GVariant *changed_properties, 7501s # const gchar *const *invalidated_properties) 7501s # { 7501s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 7501s # guint n; 7501s # const gchar *key; 7501s # GVariantIter *iter; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # g_variant_get (changed_properties, "a{sv}", &iter); 7501s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 7501s # g_datalist_remove_data (&proxy->priv->qdata, key); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # g_variant_iter_free (iter); 7501s # for (n = 0; invalidated_properties[n] != NULL; n++) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 7501s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # } 7501s # 7501s # static const gchar * 7501s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 7501s # { 7501s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 7501s # GVariant *variant; 7501s # const gchar *value = NULL; 7501s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 7501s # if (variant != NULL) 7501s # { 7501s # value = g_variant_get_string (variant, NULL); 7501s # g_variant_unref (variant); 7501s # } 7501s # return value; 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 7501s # #else 7501s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 7501s # #endif 7501s # 7501s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusProxyClass *proxy_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 7501s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 7501s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 7501s # 7501s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7501s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 7501s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 7501s # 7501s # com_acme_coyote_override_properties (gobject_class, 1); 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 7501s # { 7501s # iface->get_mood = com_acme_coyote_proxy_get_mood; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # com_acme_coyote_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_proxy_new(). 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_sync: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_for_bus: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # com_acme_coyote_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_for_bus_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_for_bus_sync: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteSkeleton: 7501s # * 7501s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteSkeletonClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #ComAcmeCoyoteSkeleton. 7501s # */ 7501s # 7501s # struct _ComAcmeCoyoteSkeletonPrivate 7501s # { 7501s # GValue *properties; 7501s # GList *changed_properties; 7501s # GSource *changed_properties_idle_source; 7501s # GMainContext *context; 7501s # GMutex lock; 7501s # }; 7501s # 7501s # static void 7501s # _com_acme_coyote_skeleton_handle_method_call ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name, 7501s # const gchar *method_name, 7501s # GVariant *parameters, 7501s # GDBusMethodInvocation *invocation, 7501s # gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # _ExtendedGDBusMethodInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # guint num_extra; 7501s # gsize n; 7501s # guint signal_id; 7501s # GValue return_value = G_VALUE_INIT; 7501s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7501s # g_assert (info != NULL); 7501s # num_params = g_variant_n_children (parameters); 7501s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7501s # n = 0; 7501s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 7501s # g_value_set_object (¶mv[n++], skeleton); 7501s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7501s # g_value_set_object (¶mv[n++], invocation); 7501s # if (info->pass_fdlist) 7501s # { 7501s # #ifdef G_OS_UNIX 7501s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7501s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7501s # #else 7501s # g_assert_not_reached (); 7501s # #endif 7501s # } 7501s # g_variant_iter_init (&iter, parameters); 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 7501s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7501s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7501s # if (!g_value_get_boolean (&return_value)) 7501s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7501s # g_value_unset (&return_value); 7501s # for (n = 0; n < num_params + num_extra; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static GVariant * 7501s # _com_acme_coyote_skeleton_handle_get_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *ret; 7501s # ret = NULL; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # g_value_init (&value, pspec->value_type); 7501s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7501s # g_value_unset (&value); 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static gboolean 7501s # _com_acme_coyote_skeleton_handle_set_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GVariant *variant, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # gboolean ret; 7501s # ret = FALSE; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # if (info->use_gvariant) 7501s # g_value_set_variant (&value, variant); 7501s # else 7501s # g_dbus_gvariant_to_gvalue (variant, &value); 7501s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # g_value_unset (&value); 7501s # ret = TRUE; 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 7501s # { 7501s # _com_acme_coyote_skeleton_handle_method_call, 7501s # _com_acme_coyote_skeleton_handle_get_property, 7501s # _com_acme_coyote_skeleton_handle_set_property, 7501s # {NULL} 7501s # }; 7501s # 7501s # static GDBusInterfaceInfo * 7501s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return com_acme_coyote_interface_info (); 7501s # } 7501s # 7501s # static GDBusInterfaceVTable * 7501s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 7501s # } 7501s # 7501s # static GVariant * 7501s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 7501s # 7501s # GVariantBuilder builder; 7501s # guint n; 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7501s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #else 7501s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #endif 7501s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 7501s # goto out; 7501s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 7501s # { 7501s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 7501s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7501s # { 7501s # GVariant *value; 7501s # 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); 7501s # if (value != NULL) 7501s # { 7501s # g_variant_take_ref (value); 7501s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7501s # g_variant_unref (value); 7501s # } 7501s # } 7501s # } 7501s # out: 7501s # return g_variant_builder_end (&builder); 7501s # } 7501s # 7501s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 7501s # gboolean emit_changed = FALSE; 7501s # 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # if (skeleton->priv->changed_properties_idle_source != NULL) 7501s # { 7501s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7501s # skeleton->priv->changed_properties_idle_source = NULL; 7501s # emit_changed = TRUE; 7501s # } 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # 7501s # if (emit_changed) 7501s # _com_acme_coyote_emit_changed (skeleton); 7501s # } 7501s # 7501s # static void 7501s # _com_acme_coyote_on_signal_surprised ( 7501s # ComAcmeCoyote *object) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # 7501s # GList *connections, *l; 7501s # GVariant *signal_variant; 7501s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7501s # 7501s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7501s # for (l = connections; l != NULL; l = l->next) 7501s # { 7501s # GDBusConnection *connection = l->data; 7501s # g_dbus_connection_emit_signal (connection, 7501s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 7501s # signal_variant, NULL); 7501s # } 7501s # g_variant_unref (signal_variant); 7501s # g_list_free_full (connections, g_object_unref); 7501s # } 7501s # 7501s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # com_acme_coyote_skeleton_finalize (GObject *object) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # guint n; 7501s # for (n = 0; n < 1; n++) 7501s # g_value_unset (&skeleton->priv->properties[n]); 7501s # g_free (skeleton->priv->properties); 7501s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7501s # if (skeleton->priv->changed_properties_idle_source != NULL) 7501s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7501s # g_main_context_unref (skeleton->priv->context); 7501s # g_mutex_clear (&skeleton->priv->lock); 7501s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_get_property (GObject *object, 7501s # guint prop_id, 7501s # GValue *value, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # } 7501s # 7501s # static gboolean 7501s # _com_acme_coyote_emit_changed (gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # GList *l; 7501s # GVariantBuilder builder; 7501s # GVariantBuilder invalidated_builder; 7501s # guint num_changes; 7501s # 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7501s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 7501s # #else 7501s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 7501s # #endif 7501s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 7501s # { 7501s # ChangedProperty *cp = l->data; 7501s # GVariant *variant; 7501s # const GValue *cur_value; 7501s # 7501s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 7501s # if (!_g_value_equal (cur_value, &cp->orig_value)) 7501s # { 7501s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 7501s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 7501s # g_variant_unref (variant); 7501s # num_changes++; 7501s # } 7501s # } 7501s # if (num_changes > 0) 7501s # { 7501s # GList *connections, *ll; 7501s # GVariant *signal_variant; 7501s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 7501s # &builder, &invalidated_builder)); 7501s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7501s # for (ll = connections; ll != NULL; ll = ll->next) 7501s # { 7501s # GDBusConnection *connection = ll->data; 7501s # 7501s # g_dbus_connection_emit_signal (connection, 7501s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 7501s # "org.freedesktop.DBus.Properties", 7501s # "PropertiesChanged", 7501s # signal_variant, 7501s # NULL); 7501s # } 7501s # g_variant_unref (signal_variant); 7501s # g_list_free_full (connections, g_object_unref); 7501s # } 7501s # else 7501s # { 7501s # g_variant_builder_clear (&builder); 7501s # g_variant_builder_clear (&invalidated_builder); 7501s # } 7501s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7501s # skeleton->priv->changed_properties = NULL; 7501s # skeleton->priv->changed_properties_idle_source = NULL; 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # return FALSE; 7501s # } 7501s # 7501s # static void 7501s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 7501s # { 7501s # ChangedProperty *cp; 7501s # GList *l; 7501s # cp = NULL; 7501s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 7501s # { 7501s # ChangedProperty *i_cp = l->data; 7501s # if (i_cp->info == info) 7501s # { 7501s # cp = i_cp; 7501s # break; 7501s # } 7501s # } 7501s # if (cp == NULL) 7501s # { 7501s # cp = g_new0 (ChangedProperty, 1); 7501s # cp->prop_id = prop_id; 7501s # cp->info = info; 7501s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 7501s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 7501s # g_value_copy (orig_value, &cp->orig_value); 7501s # } 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_notify (GObject *object, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # if (skeleton->priv->changed_properties != NULL && 7501s # skeleton->priv->changed_properties_idle_source == NULL) 7501s # { 7501s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 7501s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 7501s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 7501s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 7501s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 7501s # g_source_unref (skeleton->priv->changed_properties_idle_source); 7501s # } 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_set_property (GObject *object, 7501s # guint prop_id, 7501s # const GValue *value, 7501s # GParamSpec *pspec) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # g_object_freeze_notify (object); 7501s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 7501s # { 7501s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 7501s # info->emits_changed_signal) 7501s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 7501s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 7501s # g_object_notify_by_pspec (object, pspec); 7501s # } 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # g_object_thaw_notify (object); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 7501s # #else 7501s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 7501s # #endif 7501s # 7501s # g_mutex_init (&skeleton->priv->lock); 7501s # skeleton->priv->context = g_main_context_ref_thread_default (); 7501s # skeleton->priv->properties = g_new0 (GValue, 1); 7501s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 7501s # } 7501s # 7501s # static const gchar * 7501s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # const gchar *value; 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # return value; 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusInterfaceSkeletonClass *skeleton_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 7501s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 7501s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 7501s # gobject_class->notify = com_acme_coyote_skeleton_notify; 7501s # 7501s # 7501s # com_acme_coyote_override_properties (gobject_class, 1); 7501s # 7501s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7501s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 7501s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 7501s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 7501s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 7501s # { 7501s # iface->surprised = _com_acme_coyote_on_signal_surprised; 7501s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_skeleton_new: 7501s # * 7501s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_skeleton_new (void) 7501s # { 7501s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ 7501s # * Code for interface org.project.Bar.Frobnicator 7501s # * ------------------------------------------------------------------------ 7501s # */ 7501s # 7501s # /** 7501s # * SECTION:OrgProjectBarFrobnicator 7501s # * @title: OrgProjectBarFrobnicator 7501s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 7501s # * 7501s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 7501s # */ 7501s # 7501s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 7501s # 7501s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "RandomMethod", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-random-method", 7501s # FALSE 7501s # }; 7501s # 7501s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 7501s # { 7501s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "org.project.Bar.Frobnicator", 7501s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "org-project-bar-frobnicator", 7501s # }; 7501s # 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_interface_info: 7501s # * 7501s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 7501s # * 7501s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7501s # */ 7501s # GDBusInterfaceInfo * 7501s # org_project_bar_frobnicator_interface_info (void) 7501s # { 7501s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_override_properties: 7501s # * @klass: The class structure for a #GObject derived class. 7501s # * @property_id_begin: The property id to assign to the first overridden property. 7501s # * 7501s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 7501s # * The properties are overridden in the order they are defined. 7501s # * 7501s # * Returns: The last property id. 7501s # */ 7501s # guint 7501s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7501s # { 7501s # return property_id_begin - 1; 7501s # } 7501s # 7501s # 7501s # inline static void 7501s # org_project_bar_frobnicator_method_marshal_random_method ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicator: 7501s # * 7501s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 7501s # */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorIface: 7501s # * @parent_iface: The parent interface. 7501s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 7501s # * 7501s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 7501s # */ 7501s # 7501s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 7501s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 7501s # { 7501s # /* GObject signals for incoming D-Bus method calls: */ 7501s # /** 7501s # * OrgProjectBarFrobnicator::handle-random-method: 7501s # * @object: A #OrgProjectBarFrobnicator. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-random-method", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # org_project_bar_frobnicator_method_marshal_random_method, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_call_random_method: 7501s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 7501s # * 7501s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_call_random_method ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "RandomMethod", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_call_random_method_finish: 7501s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # org_project_bar_frobnicator_call_random_method_finish ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_call_random_method_sync: 7501s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # org_project_bar_frobnicator_call_random_method_sync ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "RandomMethod", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_complete_random_method: 7501s # * @object: A #OrgProjectBarFrobnicator. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_complete_random_method ( 7501s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorProxy: 7501s # * 7501s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorProxyClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #OrgProjectBarFrobnicatorProxy. 7501s # */ 7501s # 7501s # struct _OrgProjectBarFrobnicatorProxyPrivate 7501s # { 7501s # GData *qdata; 7501s # }; 7501s # 7501s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 7501s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 7501s # { 7501s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 7501s # g_datalist_clear (&proxy->priv->qdata); 7501s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 7501s # guint prop_id G_GNUC_UNUSED, 7501s # GValue *value G_GNUC_UNUSED, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 7501s # guint prop_id G_GNUC_UNUSED, 7501s # const GValue *value G_GNUC_UNUSED, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 7501s # const gchar *sender_name G_GNUC_UNUSED, 7501s # const gchar *signal_name, 7501s # GVariant *parameters) 7501s # { 7501s # _ExtendedGDBusSignalInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # gsize n; 7501s # guint signal_id; 7501s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 7501s # if (info == NULL) 7501s # return; 7501s # num_params = g_variant_n_children (parameters); 7501s # paramv = g_new0 (GValue, num_params + 1); 7501s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_value_set_object (¶mv[0], proxy); 7501s # g_variant_iter_init (&iter, parameters); 7501s # n = 1; 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_signal_emitv (paramv, signal_id, 0, NULL); 7501s # for (n = 0; n < num_params + 1; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 7501s # GVariant *changed_properties, 7501s # const gchar *const *invalidated_properties) 7501s # { 7501s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 7501s # guint n; 7501s # const gchar *key; 7501s # GVariantIter *iter; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # g_variant_get (changed_properties, "a{sv}", &iter); 7501s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 7501s # g_datalist_remove_data (&proxy->priv->qdata, key); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # g_variant_iter_free (iter); 7501s # for (n = 0; invalidated_properties[n] != NULL; n++) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 7501s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 7501s # #else 7501s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 7501s # #endif 7501s # 7501s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusProxyClass *proxy_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 7501s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 7501s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 7501s # 7501s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7501s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 7501s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_sync: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_for_bus: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorSkeleton: 7501s # * 7501s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorSkeletonClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 7501s # */ 7501s # 7501s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 7501s # { 7501s # GValue *properties; 7501s # GList *changed_properties; 7501s # GSource *changed_properties_idle_source; 7501s # GMainContext *context; 7501s # GMutex lock; 7501s # }; 7501s # 7501s # static void 7501s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name, 7501s # const gchar *method_name, 7501s # GVariant *parameters, 7501s # GDBusMethodInvocation *invocation, 7501s # gpointer user_data) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 7501s # _ExtendedGDBusMethodInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # guint num_extra; 7501s # gsize n; 7501s # guint signal_id; 7501s # GValue return_value = G_VALUE_INIT; 7501s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7501s # g_assert (info != NULL); 7501s # num_params = g_variant_n_children (parameters); 7501s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7501s # n = 0; 7501s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_value_set_object (¶mv[n++], skeleton); 7501s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7501s # g_value_set_object (¶mv[n++], invocation); 7501s # if (info->pass_fdlist) 7501s # { 7501s # #ifdef G_OS_UNIX 7501s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7501s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7501s # #else 7501s # g_assert_not_reached (); 7501s # #endif 7501s # } 7501s # g_variant_iter_init (&iter, parameters); 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7501s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7501s # if (!g_value_get_boolean (&return_value)) 7501s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7501s # g_value_unset (&return_value); 7501s # for (n = 0; n < num_params + num_extra; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static GVariant * 7501s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *ret; 7501s # ret = NULL; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # g_value_init (&value, pspec->value_type); 7501s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7501s # g_value_unset (&value); 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static gboolean 7501s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GVariant *variant, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # gboolean ret; 7501s # ret = FALSE; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # if (info->use_gvariant) 7501s # g_value_set_variant (&value, variant); 7501s # else 7501s # g_dbus_gvariant_to_gvalue (variant, &value); 7501s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # g_value_unset (&value); 7501s # ret = TRUE; 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 7501s # { 7501s # _org_project_bar_frobnicator_skeleton_handle_method_call, 7501s # _org_project_bar_frobnicator_skeleton_handle_get_property, 7501s # _org_project_bar_frobnicator_skeleton_handle_set_property, 7501s # {NULL} 7501s # }; 7501s # 7501s # static GDBusInterfaceInfo * 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return org_project_bar_frobnicator_interface_info (); 7501s # } 7501s # 7501s # static GDBusInterfaceVTable * 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 7501s # } 7501s # 7501s # static GVariant * 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 7501s # 7501s # GVariantBuilder builder; 7501s # guint n; 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7501s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #else 7501s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #endif 7501s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 7501s # goto out; 7501s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 7501s # { 7501s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 7501s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7501s # { 7501s # GVariant *value; 7501s # 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); 7501s # if (value != NULL) 7501s # { 7501s # g_variant_take_ref (value); 7501s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7501s # g_variant_unref (value); 7501s # } 7501s # } 7501s # } 7501s # out: 7501s # return g_variant_builder_end (&builder); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 7501s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7501s # if (skeleton->priv->changed_properties_idle_source != NULL) 7501s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7501s # g_main_context_unref (skeleton->priv->context); 7501s # g_mutex_clear (&skeleton->priv->lock); 7501s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 7501s # #else 7501s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 7501s # #endif 7501s # 7501s # g_mutex_init (&skeleton->priv->lock); 7501s # skeleton->priv->context = g_main_context_ref_thread_default (); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusInterfaceSkeletonClass *skeleton_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 7501s # 7501s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7501s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 7501s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 7501s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 7501s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_skeleton_new: 7501s # * 7501s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_skeleton_new (void) 7501s # { 7501s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 7501s # } 7501s # Error: 7501s # 7501s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpoiy_3dqf/tmpwlv9_ttn2.xml', '/tmp/tmpoiy_3dqf/tmpkn8bve421.xml', '--output', '-', '--body'] 7501s # Return code: 0 7501s # Output: 7501s # /* 7501s # * This file is generated by gdbus-codegen, do not modify it. 7501s # * 7501s # * The license of this code is the same as for the D-Bus interface description 7501s # * it was derived from. Note that it links to GLib, so must comply with the 7501s # * LGPL linking clauses. 7501s # */ 7501s # 7501s # #ifdef HAVE_CONFIG_H 7501s # # include "config.h" 7501s # #endif 7501s # 7501s # #include 7501s # #ifdef G_OS_UNIX 7501s # # include 7501s # #endif 7501s # 7501s # #ifdef G_ENABLE_DEBUG 7501s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7501s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7501s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7501s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7501s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7501s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7501s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7501s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7501s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7501s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7501s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7501s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7501s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7501s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7501s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7501s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7501s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7501s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7501s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7501s # #else /* !G_ENABLE_DEBUG */ 7501s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7501s # * Do not access GValues directly in your code. Instead, use the 7501s # * g_value_get_*() functions 7501s # */ 7501s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7501s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7501s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7501s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7501s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7501s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7501s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7501s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7501s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7501s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7501s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7501s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7501s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7501s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7501s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7501s # #endif /* !G_ENABLE_DEBUG */ 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusArgInfo parent_struct; 7501s # gboolean use_gvariant; 7501s # } _ExtendedGDBusArgInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusMethodInfo parent_struct; 7501s # const gchar *signal_name; 7501s # gboolean pass_fdlist; 7501s # } _ExtendedGDBusMethodInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusSignalInfo parent_struct; 7501s # const gchar *signal_name; 7501s # } _ExtendedGDBusSignalInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusPropertyInfo parent_struct; 7501s # const gchar *hyphen_name; 7501s # guint use_gvariant : 1; 7501s # guint emits_changed_signal : 1; 7501s # } _ExtendedGDBusPropertyInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # GDBusInterfaceInfo parent_struct; 7501s # const gchar *hyphen_name; 7501s # } _ExtendedGDBusInterfaceInfo; 7501s # 7501s # typedef struct 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # guint prop_id; 7501s # GValue orig_value; /* the value before the change */ 7501s # } ChangedProperty; 7501s # 7501s # static void 7501s # _changed_property_free (ChangedProperty *data) 7501s # { 7501s # g_value_unset (&data->orig_value); 7501s # g_free (data); 7501s # } 7501s # 7501s # static gboolean 7501s # _g_strv_equal0 (gchar **a, gchar **b) 7501s # { 7501s # gboolean ret = FALSE; 7501s # guint n; 7501s # if (a == NULL && b == NULL) 7501s # { 7501s # ret = TRUE; 7501s # goto out; 7501s # } 7501s # if (a == NULL || b == NULL) 7501s # goto out; 7501s # if (g_strv_length (a) != g_strv_length (b)) 7501s # goto out; 7501s # for (n = 0; a[n] != NULL; n++) 7501s # if (g_strcmp0 (a[n], b[n]) != 0) 7501s # goto out; 7501s # ret = TRUE; 7501s # out: 7501s # return ret; 7501s # } 7501s # 7501s # static gboolean 7501s # _g_variant_equal0 (GVariant *a, GVariant *b) 7501s # { 7501s # gboolean ret = FALSE; 7501s # if (a == NULL && b == NULL) 7501s # { 7501s # ret = TRUE; 7501s # goto out; 7501s # } 7501s # if (a == NULL || b == NULL) 7501s # goto out; 7501s # ret = g_variant_equal (a, b); 7501s # out: 7501s # return ret; 7501s # } 7501s # 7501s # G_GNUC_UNUSED static gboolean 7501s # _g_value_equal (const GValue *a, const GValue *b) 7501s # { 7501s # gboolean ret = FALSE; 7501s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 7501s # switch (G_VALUE_TYPE (a)) 7501s # { 7501s # case G_TYPE_BOOLEAN: 7501s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 7501s # break; 7501s # case G_TYPE_UCHAR: 7501s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 7501s # break; 7501s # case G_TYPE_INT: 7501s # ret = (g_value_get_int (a) == g_value_get_int (b)); 7501s # break; 7501s # case G_TYPE_UINT: 7501s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 7501s # break; 7501s # case G_TYPE_INT64: 7501s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 7501s # break; 7501s # case G_TYPE_UINT64: 7501s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 7501s # break; 7501s # case G_TYPE_DOUBLE: 7501s # { 7501s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 7501s # gdouble da = g_value_get_double (a); 7501s # gdouble db = g_value_get_double (b); 7501s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 7501s # } 7501s # break; 7501s # case G_TYPE_STRING: 7501s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 7501s # break; 7501s # case G_TYPE_VARIANT: 7501s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 7501s # break; 7501s # default: 7501s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 7501s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 7501s # else 7501s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 7501s # break; 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static void 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint G_GNUC_UNUSED, 7501s # void *marshal_data) 7501s # { 7501s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 7501s # (void *data1, 7501s # GDBusMethodInvocation *arg_method_invocation, 7501s # void *data2); 7501s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 7501s # GCClosure *cc = (GCClosure*) closure; 7501s # void *data1, *data2; 7501s # gboolean v_return; 7501s # 7501s # g_return_if_fail (return_value != NULL); 7501s # g_return_if_fail (n_param_values == 2); 7501s # 7501s # if (G_CCLOSURE_SWAP_DATA (closure)) 7501s # { 7501s # data1 = closure->data; 7501s # data2 = g_value_peek_pointer (param_values + 0); 7501s # } 7501s # else 7501s # { 7501s # data1 = g_value_peek_pointer (param_values + 0); 7501s # data2 = closure->data; 7501s # } 7501s # 7501s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 7501s # (marshal_data ? marshal_data : cc->callback); 7501s # 7501s # v_return = 7501s # callback (data1, 7501s # g_marshal_value_peek_object (param_values + 1), 7501s # data2); 7501s # 7501s # g_value_set_boolean (return_value, v_return); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ 7501s # * Code for interface com.acme.Coyote 7501s # * ------------------------------------------------------------------------ 7501s # */ 7501s # 7501s # /** 7501s # * SECTION:ComAcmeCoyote 7501s # * @title: ComAcmeCoyote 7501s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 7501s # * 7501s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 7501s # */ 7501s # 7501s # enum 7501s # { 7501s # _COM_ACME_COYOTE_SURPRISED, 7501s # }; 7501s # 7501s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 7501s # 7501s # /* ---- Introspection data for com.acme.Coyote ---- */ 7501s # 7501s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Run", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-run", 7501s # FALSE 7501s # }; 7501s # 7501s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Sleep", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-sleep", 7501s # FALSE 7501s # }; 7501s # 7501s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Attack", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-attack", 7501s # FALSE 7501s # }; 7501s # 7501s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 7501s # { 7501s # &_com_acme_coyote_method_info_run.parent_struct, 7501s # &_com_acme_coyote_method_info_sleep.parent_struct, 7501s # &_com_acme_coyote_method_info_attack.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Surprised", 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "surprised" 7501s # }; 7501s # 7501s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 7501s # { 7501s # &_com_acme_coyote_signal_info_surprised.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "Mood", 7501s # (gchar *) "s", 7501s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 7501s # NULL 7501s # }, 7501s # "mood", 7501s # FALSE, 7501s # TRUE 7501s # }; 7501s # 7501s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 7501s # { 7501s # &_com_acme_coyote_property_info_mood.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "com.acme.Coyote", 7501s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 7501s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 7501s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 7501s # NULL 7501s # }, 7501s # "com-acme-coyote", 7501s # }; 7501s # 7501s # 7501s # /** 7501s # * com_acme_coyote_interface_info: 7501s # * 7501s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 7501s # * 7501s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7501s # */ 7501s # GDBusInterfaceInfo * 7501s # com_acme_coyote_interface_info (void) 7501s # { 7501s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_override_properties: 7501s # * @klass: The class structure for a #GObject derived class. 7501s # * @property_id_begin: The property id to assign to the first overridden property. 7501s # * 7501s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 7501s # * The properties are overridden in the order they are defined. 7501s # * 7501s # * Returns: The last property id. 7501s # */ 7501s # guint 7501s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 7501s # { 7501s # g_object_class_override_property (klass, property_id_begin++, "mood"); 7501s # return property_id_begin - 1; 7501s # } 7501s # 7501s # 7501s # inline static void 7501s # com_acme_coyote_signal_marshal_surprised ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # g_cclosure_marshal_VOID__VOID (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # inline static void 7501s # com_acme_coyote_method_marshal_run ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # inline static void 7501s # com_acme_coyote_method_marshal_sleep ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # inline static void 7501s # com_acme_coyote_method_marshal_attack ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # 7501s # /** 7501s # * ComAcmeCoyote: 7501s # * 7501s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 7501s # */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteIface: 7501s # * @parent_iface: The parent interface. 7501s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 7501s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 7501s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 7501s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 7501s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 7501s # * 7501s # * Virtual table for the D-Bus interface com.acme.Coyote. 7501s # */ 7501s # 7501s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 7501s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 7501s # 7501s # static void 7501s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 7501s # { 7501s # /* GObject signals for incoming D-Bus method calls: */ 7501s # /** 7501s # * ComAcmeCoyote::handle-run: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-run", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # com_acme_coyote_method_marshal_run, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # /** 7501s # * ComAcmeCoyote::handle-sleep: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-sleep", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # com_acme_coyote_method_marshal_sleep, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # /** 7501s # * ComAcmeCoyote::handle-attack: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-attack", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # com_acme_coyote_method_marshal_attack, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # /* GObject signals for received D-Bus signals: */ 7501s # /** 7501s # * ComAcmeCoyote::surprised: 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 7501s # * 7501s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 7501s # */ 7501s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 7501s # g_signal_new ("surprised", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 7501s # NULL, 7501s # NULL, 7501s # com_acme_coyote_signal_marshal_surprised, 7501s # G_TYPE_NONE, 7501s # 0); 7501s # 7501s # /* GObject properties for D-Bus properties: */ 7501s # /** 7501s # * ComAcmeCoyote:mood: 7501s # * 7501s # * Represents the D-Bus property "Mood". 7501s # * 7501s # * 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. 7501s # */ 7501s # g_object_interface_install_property (iface, 7501s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_get_mood: (skip) 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * Gets the value of the "Mood" D-Bus property. 7501s # * 7501s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # const gchar * 7501s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 7501s # { 7501s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 7501s # 7501s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_dup_mood: (skip) 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * Gets a copy of the "Mood" D-Bus property. 7501s # * 7501s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 7501s # * 7501s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 7501s # */ 7501s # gchar * 7501s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 7501s # { 7501s # gchar *value; 7501s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 7501s # return value; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_set_mood: (skip) 7501s # * @object: A #ComAcmeCoyote. 7501s # * @value: The value to set. 7501s # * 7501s # * Sets the "Mood" D-Bus property to @value. 7501s # * 7501s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 7501s # */ 7501s # void 7501s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 7501s # { 7501s # g_object_set (G_OBJECT (object), "mood", value, NULL); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_emit_surprised: 7501s # * @object: A #ComAcmeCoyote. 7501s # * 7501s # * Emits the "Surprised" D-Bus signal. 7501s # */ 7501s # void 7501s # com_acme_coyote_emit_surprised ( 7501s # ComAcmeCoyote *object) 7501s # { 7501s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_run: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the Run() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # com_acme_coyote_call_run ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "Run", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_run_finish: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_call_run(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_run_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_run_sync: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_run_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "Run", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_sleep: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # com_acme_coyote_call_sleep ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "Sleep", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_sleep_finish: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_call_sleep(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_sleep_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_sleep_sync: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_sleep_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "Sleep", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_attack: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # com_acme_coyote_call_attack ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "Attack", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_attack_finish: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_call_attack(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_attack_finish ( 7501s # ComAcmeCoyote *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_call_attack_sync: 7501s # * @proxy: A #ComAcmeCoyoteProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # com_acme_coyote_call_attack_sync ( 7501s # ComAcmeCoyote *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "Attack", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_complete_run: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # com_acme_coyote_complete_run ( 7501s # ComAcmeCoyote *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_complete_sleep: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # com_acme_coyote_complete_sleep ( 7501s # ComAcmeCoyote *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_complete_attack: 7501s # * @object: A #ComAcmeCoyote. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # com_acme_coyote_complete_attack ( 7501s # ComAcmeCoyote *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteProxy: 7501s # * 7501s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteProxyClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #ComAcmeCoyoteProxy. 7501s # */ 7501s # 7501s # struct _ComAcmeCoyoteProxyPrivate 7501s # { 7501s # GData *qdata; 7501s # }; 7501s # 7501s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 7501s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # com_acme_coyote_proxy_finalize (GObject *object) 7501s # { 7501s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 7501s # g_datalist_clear (&proxy->priv->qdata); 7501s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_get_property (GObject *object, 7501s # guint prop_id, 7501s # GValue *value, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *variant; 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 7501s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 7501s # if (info->use_gvariant) 7501s # { 7501s # g_value_set_variant (value, variant); 7501s # } 7501s # else 7501s # { 7501s # if (variant != NULL) 7501s # g_dbus_gvariant_to_gvalue (variant, value); 7501s # } 7501s # if (variant != NULL) 7501s # g_variant_unref (variant); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 7501s # GAsyncResult *res, 7501s # gpointer user_data) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info = user_data; 7501s # GError *error; 7501s # GVariant *_ret; 7501s # error = NULL; 7501s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 7501s # if (!_ret) 7501s # { 7501s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 7501s # info->parent_struct.name, 7501s # error->message, g_quark_to_string (error->domain), error->code); 7501s # g_error_free (error); 7501s # } 7501s # else 7501s # { 7501s # g_variant_unref (_ret); 7501s # } 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_set_property (GObject *object, 7501s # guint prop_id, 7501s # const GValue *value, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *variant; 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 7501s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 7501s # g_dbus_proxy_call (G_DBUS_PROXY (object), 7501s # "org.freedesktop.DBus.Properties.Set", 7501s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 7501s # g_variant_unref (variant); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 7501s # const gchar *sender_name G_GNUC_UNUSED, 7501s # const gchar *signal_name, 7501s # GVariant *parameters) 7501s # { 7501s # _ExtendedGDBusSignalInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # gsize n; 7501s # guint signal_id; 7501s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 7501s # if (info == NULL) 7501s # return; 7501s # num_params = g_variant_n_children (parameters); 7501s # paramv = g_new0 (GValue, num_params + 1); 7501s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 7501s # g_value_set_object (¶mv[0], proxy); 7501s # g_variant_iter_init (&iter, parameters); 7501s # n = 1; 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 7501s # g_signal_emitv (paramv, signal_id, 0, NULL); 7501s # for (n = 0; n < num_params + 1; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 7501s # GVariant *changed_properties, 7501s # const gchar *const *invalidated_properties) 7501s # { 7501s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 7501s # guint n; 7501s # const gchar *key; 7501s # GVariantIter *iter; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # g_variant_get (changed_properties, "a{sv}", &iter); 7501s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 7501s # g_datalist_remove_data (&proxy->priv->qdata, key); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # g_variant_iter_free (iter); 7501s # for (n = 0; invalidated_properties[n] != NULL; n++) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 7501s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # } 7501s # 7501s # static const gchar * 7501s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 7501s # { 7501s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 7501s # GVariant *variant; 7501s # const gchar *value = NULL; 7501s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 7501s # if (variant != NULL) 7501s # { 7501s # value = g_variant_get_string (variant, NULL); 7501s # g_variant_unref (variant); 7501s # } 7501s # return value; 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 7501s # #else 7501s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 7501s # #endif 7501s # 7501s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusProxyClass *proxy_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 7501s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 7501s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 7501s # 7501s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7501s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 7501s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 7501s # 7501s # com_acme_coyote_override_properties (gobject_class, 1); 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 7501s # { 7501s # iface->get_mood = com_acme_coyote_proxy_get_mood; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # com_acme_coyote_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_proxy_new(). 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_sync: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_for_bus: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 7501s # * 7501s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # com_acme_coyote_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_for_bus_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_proxy_new_for_bus_sync: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return COM_ACME_COYOTE (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteSkeleton: 7501s # * 7501s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * ComAcmeCoyoteSkeletonClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #ComAcmeCoyoteSkeleton. 7501s # */ 7501s # 7501s # struct _ComAcmeCoyoteSkeletonPrivate 7501s # { 7501s # GValue *properties; 7501s # GList *changed_properties; 7501s # GSource *changed_properties_idle_source; 7501s # GMainContext *context; 7501s # GMutex lock; 7501s # }; 7501s # 7501s # static void 7501s # _com_acme_coyote_skeleton_handle_method_call ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name, 7501s # const gchar *method_name, 7501s # GVariant *parameters, 7501s # GDBusMethodInvocation *invocation, 7501s # gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # _ExtendedGDBusMethodInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # guint num_extra; 7501s # gsize n; 7501s # guint signal_id; 7501s # GValue return_value = G_VALUE_INIT; 7501s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7501s # g_assert (info != NULL); 7501s # num_params = g_variant_n_children (parameters); 7501s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7501s # n = 0; 7501s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 7501s # g_value_set_object (¶mv[n++], skeleton); 7501s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7501s # g_value_set_object (¶mv[n++], invocation); 7501s # if (info->pass_fdlist) 7501s # { 7501s # #ifdef G_OS_UNIX 7501s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7501s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7501s # #else 7501s # g_assert_not_reached (); 7501s # #endif 7501s # } 7501s # g_variant_iter_init (&iter, parameters); 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 7501s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7501s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7501s # if (!g_value_get_boolean (&return_value)) 7501s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7501s # g_value_unset (&return_value); 7501s # for (n = 0; n < num_params + num_extra; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static GVariant * 7501s # _com_acme_coyote_skeleton_handle_get_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *ret; 7501s # ret = NULL; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # g_value_init (&value, pspec->value_type); 7501s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7501s # g_value_unset (&value); 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static gboolean 7501s # _com_acme_coyote_skeleton_handle_set_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GVariant *variant, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # gboolean ret; 7501s # ret = FALSE; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # if (info->use_gvariant) 7501s # g_value_set_variant (&value, variant); 7501s # else 7501s # g_dbus_gvariant_to_gvalue (variant, &value); 7501s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # g_value_unset (&value); 7501s # ret = TRUE; 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 7501s # { 7501s # _com_acme_coyote_skeleton_handle_method_call, 7501s # _com_acme_coyote_skeleton_handle_get_property, 7501s # _com_acme_coyote_skeleton_handle_set_property, 7501s # {NULL} 7501s # }; 7501s # 7501s # static GDBusInterfaceInfo * 7501s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return com_acme_coyote_interface_info (); 7501s # } 7501s # 7501s # static GDBusInterfaceVTable * 7501s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 7501s # } 7501s # 7501s # static GVariant * 7501s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 7501s # 7501s # GVariantBuilder builder; 7501s # guint n; 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7501s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #else 7501s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #endif 7501s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 7501s # goto out; 7501s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 7501s # { 7501s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 7501s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7501s # { 7501s # GVariant *value; 7501s # 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); 7501s # if (value != NULL) 7501s # { 7501s # g_variant_take_ref (value); 7501s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7501s # g_variant_unref (value); 7501s # } 7501s # } 7501s # } 7501s # out: 7501s # return g_variant_builder_end (&builder); 7501s # } 7501s # 7501s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 7501s # gboolean emit_changed = FALSE; 7501s # 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # if (skeleton->priv->changed_properties_idle_source != NULL) 7501s # { 7501s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7501s # skeleton->priv->changed_properties_idle_source = NULL; 7501s # emit_changed = TRUE; 7501s # } 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # 7501s # if (emit_changed) 7501s # _com_acme_coyote_emit_changed (skeleton); 7501s # } 7501s # 7501s # static void 7501s # _com_acme_coyote_on_signal_surprised ( 7501s # ComAcmeCoyote *object) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # 7501s # GList *connections, *l; 7501s # GVariant *signal_variant; 7501s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7501s # 7501s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 7501s # for (l = connections; l != NULL; l = l->next) 7501s # { 7501s # GDBusConnection *connection = l->data; 7501s # g_dbus_connection_emit_signal (connection, 7501s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 7501s # signal_variant, NULL); 7501s # } 7501s # g_variant_unref (signal_variant); 7501s # g_list_free_full (connections, g_object_unref); 7501s # } 7501s # 7501s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # com_acme_coyote_skeleton_finalize (GObject *object) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # guint n; 7501s # for (n = 0; n < 1; n++) 7501s # g_value_unset (&skeleton->priv->properties[n]); 7501s # g_free (skeleton->priv->properties); 7501s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7501s # if (skeleton->priv->changed_properties_idle_source != NULL) 7501s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7501s # g_main_context_unref (skeleton->priv->context); 7501s # g_mutex_clear (&skeleton->priv->lock); 7501s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_get_property (GObject *object, 7501s # guint prop_id, 7501s # GValue *value, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # } 7501s # 7501s # static gboolean 7501s # _com_acme_coyote_emit_changed (gpointer user_data) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 7501s # GList *l; 7501s # GVariantBuilder builder; 7501s # GVariantBuilder invalidated_builder; 7501s # guint num_changes; 7501s # 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7501s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 7501s # #else 7501s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 7501s # #endif 7501s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 7501s # { 7501s # ChangedProperty *cp = l->data; 7501s # GVariant *variant; 7501s # const GValue *cur_value; 7501s # 7501s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 7501s # if (!_g_value_equal (cur_value, &cp->orig_value)) 7501s # { 7501s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 7501s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 7501s # g_variant_unref (variant); 7501s # num_changes++; 7501s # } 7501s # } 7501s # if (num_changes > 0) 7501s # { 7501s # GList *connections, *ll; 7501s # GVariant *signal_variant; 7501s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 7501s # &builder, &invalidated_builder)); 7501s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 7501s # for (ll = connections; ll != NULL; ll = ll->next) 7501s # { 7501s # GDBusConnection *connection = ll->data; 7501s # 7501s # g_dbus_connection_emit_signal (connection, 7501s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 7501s # "org.freedesktop.DBus.Properties", 7501s # "PropertiesChanged", 7501s # signal_variant, 7501s # NULL); 7501s # } 7501s # g_variant_unref (signal_variant); 7501s # g_list_free_full (connections, g_object_unref); 7501s # } 7501s # else 7501s # { 7501s # g_variant_builder_clear (&builder); 7501s # g_variant_builder_clear (&invalidated_builder); 7501s # } 7501s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7501s # skeleton->priv->changed_properties = NULL; 7501s # skeleton->priv->changed_properties_idle_source = NULL; 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # return FALSE; 7501s # } 7501s # 7501s # static void 7501s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 7501s # { 7501s # ChangedProperty *cp; 7501s # GList *l; 7501s # cp = NULL; 7501s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 7501s # { 7501s # ChangedProperty *i_cp = l->data; 7501s # if (i_cp->info == info) 7501s # { 7501s # cp = i_cp; 7501s # break; 7501s # } 7501s # } 7501s # if (cp == NULL) 7501s # { 7501s # cp = g_new0 (ChangedProperty, 1); 7501s # cp->prop_id = prop_id; 7501s # cp->info = info; 7501s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 7501s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 7501s # g_value_copy (orig_value, &cp->orig_value); 7501s # } 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_notify (GObject *object, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # if (skeleton->priv->changed_properties != NULL && 7501s # skeleton->priv->changed_properties_idle_source == NULL) 7501s # { 7501s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 7501s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 7501s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 7501s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 7501s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 7501s # g_source_unref (skeleton->priv->changed_properties_idle_source); 7501s # } 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_set_property (GObject *object, 7501s # guint prop_id, 7501s # const GValue *value, 7501s # GParamSpec *pspec) 7501s # { 7501s # const _ExtendedGDBusPropertyInfo *info; 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # g_assert (prop_id != 0 && prop_id - 1 < 1); 7501s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # g_object_freeze_notify (object); 7501s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 7501s # { 7501s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 7501s # info->emits_changed_signal) 7501s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 7501s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 7501s # g_object_notify_by_pspec (object, pspec); 7501s # } 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # g_object_thaw_notify (object); 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 7501s # #else 7501s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 7501s # #endif 7501s # 7501s # g_mutex_init (&skeleton->priv->lock); 7501s # skeleton->priv->context = g_main_context_ref_thread_default (); 7501s # skeleton->priv->properties = g_new0 (GValue, 1); 7501s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 7501s # } 7501s # 7501s # static const gchar * 7501s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 7501s # { 7501s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 7501s # const gchar *value; 7501s # g_mutex_lock (&skeleton->priv->lock); 7501s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 7501s # g_mutex_unlock (&skeleton->priv->lock); 7501s # return value; 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusInterfaceSkeletonClass *skeleton_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 7501s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 7501s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 7501s # gobject_class->notify = com_acme_coyote_skeleton_notify; 7501s # 7501s # 7501s # com_acme_coyote_override_properties (gobject_class, 1); 7501s # 7501s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7501s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 7501s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 7501s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 7501s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 7501s # { 7501s # iface->surprised = _com_acme_coyote_on_signal_surprised; 7501s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 7501s # } 7501s # 7501s # /** 7501s # * com_acme_coyote_skeleton_new: 7501s # * 7501s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 7501s # * 7501s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 7501s # */ 7501s # ComAcmeCoyote * 7501s # com_acme_coyote_skeleton_new (void) 7501s # { 7501s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ 7501s # * Code for interface org.project.Bar.Frobnicator 7501s # * ------------------------------------------------------------------------ 7501s # */ 7501s # 7501s # /** 7501s # * SECTION:OrgProjectBarFrobnicator 7501s # * @title: OrgProjectBarFrobnicator 7501s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 7501s # * 7501s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 7501s # */ 7501s # 7501s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 7501s # 7501s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "RandomMethod", 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "handle-random-method", 7501s # FALSE 7501s # }; 7501s # 7501s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 7501s # { 7501s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 7501s # NULL 7501s # }; 7501s # 7501s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 7501s # { 7501s # { 7501s # -1, 7501s # (gchar *) "org.project.Bar.Frobnicator", 7501s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 7501s # NULL, 7501s # NULL, 7501s # NULL 7501s # }, 7501s # "org-project-bar-frobnicator", 7501s # }; 7501s # 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_interface_info: 7501s # * 7501s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 7501s # * 7501s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 7501s # */ 7501s # GDBusInterfaceInfo * 7501s # org_project_bar_frobnicator_interface_info (void) 7501s # { 7501s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_override_properties: 7501s # * @klass: The class structure for a #GObject derived class. 7501s # * @property_id_begin: The property id to assign to the first overridden property. 7501s # * 7501s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 7501s # * The properties are overridden in the order they are defined. 7501s # * 7501s # * Returns: The last property id. 7501s # */ 7501s # guint 7501s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 7501s # { 7501s # return property_id_begin - 1; 7501s # } 7501s # 7501s # 7501s # inline static void 7501s # org_project_bar_frobnicator_method_marshal_random_method ( 7501s # GClosure *closure, 7501s # GValue *return_value, 7501s # unsigned int n_param_values, 7501s # const GValue *param_values, 7501s # void *invocation_hint, 7501s # void *marshal_data) 7501s # { 7501s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 7501s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 7501s # } 7501s # 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicator: 7501s # * 7501s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 7501s # */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorIface: 7501s # * @parent_iface: The parent interface. 7501s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 7501s # * 7501s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 7501s # */ 7501s # 7501s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 7501s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 7501s # { 7501s # /* GObject signals for incoming D-Bus method calls: */ 7501s # /** 7501s # * OrgProjectBarFrobnicator::handle-random-method: 7501s # * @object: A #OrgProjectBarFrobnicator. 7501s # * @invocation: A #GDBusMethodInvocation. 7501s # * 7501s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 7501s # * 7501s # * 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. 7501s # * 7501s # * 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. 7501s # */ 7501s # g_signal_new ("handle-random-method", 7501s # G_TYPE_FROM_INTERFACE (iface), 7501s # G_SIGNAL_RUN_LAST, 7501s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 7501s # g_signal_accumulator_true_handled, 7501s # NULL, 7501s # org_project_bar_frobnicator_method_marshal_random_method, 7501s # G_TYPE_BOOLEAN, 7501s # 1, 7501s # G_TYPE_DBUS_METHOD_INVOCATION); 7501s # 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_call_random_method: 7501s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 7501s # * 7501s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_call_random_method ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 7501s # "RandomMethod", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # callback, 7501s # user_data); 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_call_random_method_finish: 7501s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # org_project_bar_frobnicator_call_random_method_finish ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_call_random_method_sync: 7501s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL. 7501s # * 7501s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 7501s # * 7501s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 7501s # * 7501s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 7501s # */ 7501s # gboolean 7501s # org_project_bar_frobnicator_call_random_method_sync ( 7501s # OrgProjectBarFrobnicator *proxy, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GVariant *_ret; 7501s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 7501s # "RandomMethod", 7501s # g_variant_new ("()"), 7501s # G_DBUS_CALL_FLAGS_NONE, 7501s # -1, 7501s # cancellable, 7501s # error); 7501s # if (_ret == NULL) 7501s # goto _out; 7501s # g_variant_get (_ret, 7501s # "()"); 7501s # g_variant_unref (_ret); 7501s # _out: 7501s # return _ret != NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_complete_random_method: 7501s # * @object: A #OrgProjectBarFrobnicator. 7501s # * @invocation: (transfer full): A #GDBusMethodInvocation. 7501s # * 7501s # * 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. 7501s # * 7501s # * This method will free @invocation, you cannot use it afterwards. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_complete_random_method ( 7501s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 7501s # GDBusMethodInvocation *invocation) 7501s # { 7501s # g_dbus_method_invocation_return_value (invocation, 7501s # g_variant_new ("()")); 7501s # } 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorProxy: 7501s # * 7501s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorProxyClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #OrgProjectBarFrobnicatorProxy. 7501s # */ 7501s # 7501s # struct _OrgProjectBarFrobnicatorProxyPrivate 7501s # { 7501s # GData *qdata; 7501s # }; 7501s # 7501s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 7501s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 7501s # { 7501s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 7501s # g_datalist_clear (&proxy->priv->qdata); 7501s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 7501s # guint prop_id G_GNUC_UNUSED, 7501s # GValue *value G_GNUC_UNUSED, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 7501s # guint prop_id G_GNUC_UNUSED, 7501s # const GValue *value G_GNUC_UNUSED, 7501s # GParamSpec *pspec G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 7501s # const gchar *sender_name G_GNUC_UNUSED, 7501s # const gchar *signal_name, 7501s # GVariant *parameters) 7501s # { 7501s # _ExtendedGDBusSignalInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # gsize n; 7501s # guint signal_id; 7501s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 7501s # if (info == NULL) 7501s # return; 7501s # num_params = g_variant_n_children (parameters); 7501s # paramv = g_new0 (GValue, num_params + 1); 7501s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_value_set_object (¶mv[0], proxy); 7501s # g_variant_iter_init (&iter, parameters); 7501s # n = 1; 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_signal_emitv (paramv, signal_id, 0, NULL); 7501s # for (n = 0; n < num_params + 1; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 7501s # GVariant *changed_properties, 7501s # const gchar *const *invalidated_properties) 7501s # { 7501s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 7501s # guint n; 7501s # const gchar *key; 7501s # GVariantIter *iter; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # g_variant_get (changed_properties, "a{sv}", &iter); 7501s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 7501s # g_datalist_remove_data (&proxy->priv->qdata, key); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # g_variant_iter_free (iter); 7501s # for (n = 0; invalidated_properties[n] != NULL; n++) 7501s # { 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 7501s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 7501s # if (info != NULL) 7501s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 7501s # } 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 7501s # #else 7501s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 7501s # #endif 7501s # 7501s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusProxyClass *proxy_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 7501s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 7501s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 7501s # 7501s # proxy_class = G_DBUS_PROXY_CLASS (klass); 7501s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 7501s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_proxy_new ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_sync: 7501s # * @connection: A #GDBusConnection. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_sync ( 7501s # GDBusConnection *connection, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_for_bus: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 7501s # * @user_data: User data to pass to @callback. 7501s # * 7501s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 7501s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 7501s # */ 7501s # void 7501s # org_project_bar_frobnicator_proxy_new_for_bus ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GAsyncReadyCallback callback, 7501s # gpointer user_data) 7501s # { 7501s # 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); 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 7501s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 7501s # GAsyncResult *res, 7501s # GError **error) 7501s # { 7501s # GObject *ret; 7501s # GObject *source_object; 7501s # source_object = g_async_result_get_source_object (res); 7501s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 7501s # g_object_unref (source_object); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 7501s # * @bus_type: A #GBusType. 7501s # * @flags: Flags from the #GDBusProxyFlags enumeration. 7501s # * @name: A bus name (well-known or unique). 7501s # * @object_path: An object path. 7501s # * @cancellable: (nullable): A #GCancellable or %NULL. 7501s # * @error: Return location for error or %NULL 7501s # * 7501s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 7501s # * 7501s # * The calling thread is blocked until a reply is received. 7501s # * 7501s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 7501s # GBusType bus_type, 7501s # GDBusProxyFlags flags, 7501s # const gchar *name, 7501s # const gchar *object_path, 7501s # GCancellable *cancellable, 7501s # GError **error) 7501s # { 7501s # GInitable *ret; 7501s # 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); 7501s # if (ret != NULL) 7501s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 7501s # else 7501s # return NULL; 7501s # } 7501s # 7501s # 7501s # /* ------------------------------------------------------------------------ */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorSkeleton: 7501s # * 7501s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 7501s # */ 7501s # 7501s # /** 7501s # * OrgProjectBarFrobnicatorSkeletonClass: 7501s # * @parent_class: The parent class. 7501s # * 7501s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 7501s # */ 7501s # 7501s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 7501s # { 7501s # GValue *properties; 7501s # GList *changed_properties; 7501s # GSource *changed_properties_idle_source; 7501s # GMainContext *context; 7501s # GMutex lock; 7501s # }; 7501s # 7501s # static void 7501s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name, 7501s # const gchar *method_name, 7501s # GVariant *parameters, 7501s # GDBusMethodInvocation *invocation, 7501s # gpointer user_data) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 7501s # _ExtendedGDBusMethodInfo *info; 7501s # GVariantIter iter; 7501s # GVariant *child; 7501s # GValue *paramv; 7501s # gsize num_params; 7501s # guint num_extra; 7501s # gsize n; 7501s # guint signal_id; 7501s # GValue return_value = G_VALUE_INIT; 7501s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 7501s # g_assert (info != NULL); 7501s # num_params = g_variant_n_children (parameters); 7501s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 7501s # n = 0; 7501s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_value_set_object (¶mv[n++], skeleton); 7501s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 7501s # g_value_set_object (¶mv[n++], invocation); 7501s # if (info->pass_fdlist) 7501s # { 7501s # #ifdef G_OS_UNIX 7501s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 7501s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 7501s # #else 7501s # g_assert_not_reached (); 7501s # #endif 7501s # } 7501s # g_variant_iter_init (&iter, parameters); 7501s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 7501s # { 7501s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 7501s # if (arg_info->use_gvariant) 7501s # { 7501s # g_value_init (¶mv[n], G_TYPE_VARIANT); 7501s # g_value_set_variant (¶mv[n], child); 7501s # n++; 7501s # } 7501s # else 7501s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 7501s # g_variant_unref (child); 7501s # } 7501s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 7501s # g_value_init (&return_value, G_TYPE_BOOLEAN); 7501s # g_signal_emitv (paramv, signal_id, 0, &return_value); 7501s # if (!g_value_get_boolean (&return_value)) 7501s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 7501s # g_value_unset (&return_value); 7501s # for (n = 0; n < num_params + num_extra; n++) 7501s # g_value_unset (¶mv[n]); 7501s # g_free (paramv); 7501s # } 7501s # 7501s # static GVariant * 7501s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # GVariant *ret; 7501s # ret = NULL; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # g_value_init (&value, pspec->value_type); 7501s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 7501s # g_value_unset (&value); 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static gboolean 7501s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 7501s # GDBusConnection *connection G_GNUC_UNUSED, 7501s # const gchar *sender G_GNUC_UNUSED, 7501s # const gchar *object_path G_GNUC_UNUSED, 7501s # const gchar *interface_name G_GNUC_UNUSED, 7501s # const gchar *property_name, 7501s # GVariant *variant, 7501s # GError **error, 7501s # gpointer user_data) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 7501s # GValue value = G_VALUE_INIT; 7501s # GParamSpec *pspec; 7501s # _ExtendedGDBusPropertyInfo *info; 7501s # gboolean ret; 7501s # ret = FALSE; 7501s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 7501s # g_assert (info != NULL); 7501s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 7501s # if (pspec == NULL) 7501s # { 7501s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 7501s # } 7501s # else 7501s # { 7501s # if (info->use_gvariant) 7501s # g_value_set_variant (&value, variant); 7501s # else 7501s # g_dbus_gvariant_to_gvalue (variant, &value); 7501s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 7501s # g_value_unset (&value); 7501s # ret = TRUE; 7501s # } 7501s # return ret; 7501s # } 7501s # 7501s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 7501s # { 7501s # _org_project_bar_frobnicator_skeleton_handle_method_call, 7501s # _org_project_bar_frobnicator_skeleton_handle_get_property, 7501s # _org_project_bar_frobnicator_skeleton_handle_set_property, 7501s # {NULL} 7501s # }; 7501s # 7501s # static GDBusInterfaceInfo * 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return org_project_bar_frobnicator_interface_info (); 7501s # } 7501s # 7501s # static GDBusInterfaceVTable * 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 7501s # { 7501s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 7501s # } 7501s # 7501s # static GVariant * 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 7501s # 7501s # GVariantBuilder builder; 7501s # guint n; 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 7501s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #else 7501s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 7501s # #endif 7501s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 7501s # goto out; 7501s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 7501s # { 7501s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 7501s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 7501s # { 7501s # GVariant *value; 7501s # 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); 7501s # if (value != NULL) 7501s # { 7501s # g_variant_take_ref (value); 7501s # g_variant_builder_add (&builder, "{sv}", info->name, value); 7501s # g_variant_unref (value); 7501s # } 7501s # } 7501s # } 7501s # out: 7501s # return g_variant_builder_end (&builder); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 7501s # 7501s # #else 7501s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 7501s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 7501s # 7501s # #endif 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 7501s # { 7501s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 7501s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 7501s # if (skeleton->priv->changed_properties_idle_source != NULL) 7501s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 7501s # g_main_context_unref (skeleton->priv->context); 7501s # g_mutex_clear (&skeleton->priv->lock); 7501s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 7501s # { 7501s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 7501s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 7501s # #else 7501s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 7501s # #endif 7501s # 7501s # g_mutex_init (&skeleton->priv->lock); 7501s # skeleton->priv->context = g_main_context_ref_thread_default (); 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 7501s # { 7501s # GObjectClass *gobject_class; 7501s # GDBusInterfaceSkeletonClass *skeleton_class; 7501s # 7501s # gobject_class = G_OBJECT_CLASS (klass); 7501s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 7501s # 7501s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 7501s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 7501s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 7501s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 7501s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 7501s # 7501s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 7501s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 7501s # #endif 7501s # } 7501s # 7501s # static void 7501s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 7501s # { 7501s # } 7501s # 7501s # /** 7501s # * org_project_bar_frobnicator_skeleton_new: 7501s # * 7501s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 7501s # * 7501s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 7501s # */ 7501s # OrgProjectBarFrobnicator * 7501s # org_project_bar_frobnicator_skeleton_new (void) 7501s # { 7501s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 7501s # } 7501s # Error: 7504s # Executing: glib/codegen.py.test 7505s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 7505s # gdbus-codegen: /usr/bin/gdbus-codegen 7505s # tmpdir: /tmp/tmpovtqpzgy 7505s # /tmp/tmpovtqpzgy/tmp0meqw940.xml: 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpovtqpzgy/tmp0meqw940.xml', '--output', '-', '--header'] 7505s # Return code: 0 7505s # Output: 7505s # /* 7505s # * This file is generated by gdbus-codegen, do not modify it. 7505s # * 7505s # * The license of this code is the same as for the D-Bus interface description 7505s # * it was derived from. Note that it links to GLib, so must comply with the 7505s # * LGPL linking clauses. 7505s # */ 7505s # 7505s # #ifndef __STDOUT__ 7505s # #define __STDOUT__ 7505s # 7505s # #include 7505s # 7505s # G_BEGIN_DECLS 7505s # 7505s # 7505s # /* ------------------------------------------------------------------------ */ 7505s # /* Declarations for FDPassing */ 7505s # 7505s # #define TYPE_FDPASSING (fdpassing_get_type ()) 7505s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 7505s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 7505s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 7505s # 7505s # struct _FDPassing; 7505s # typedef struct _FDPassing FDPassing; 7505s # typedef struct _FDPassingIface FDPassingIface; 7505s # 7505s # struct _FDPassingIface 7505s # { 7505s # GTypeInterface parent_iface; 7505s # 7505s # gboolean (*handle_hello_fd) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # const gchar *arg_greeting); 7505s # 7505s # gboolean (*handle_no_annotation) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale); 7505s # 7505s # gboolean (*handle_no_annotation_nested) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GVariant *arg_files); 7505s # 7505s # }; 7505s # 7505s # GType fdpassing_get_type (void) G_GNUC_CONST; 7505s # 7505s # GDBusInterfaceInfo *fdpassing_interface_info (void); 7505s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 7505s # 7505s # 7505s # /* D-Bus method call completion functions: */ 7505s # void fdpassing_complete_hello_fd ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # const gchar *response); 7505s # 7505s # void fdpassing_complete_no_annotation ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GVariant *response, 7505s # const gchar *response_locale); 7505s # 7505s # void fdpassing_complete_no_annotation_nested ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation); 7505s # 7505s # 7505s # 7505s # /* D-Bus method calls: */ 7505s # void fdpassing_call_hello_fd ( 7505s # FDPassing *proxy, 7505s # const gchar *arg_greeting, 7505s # GUnixFDList *fd_list, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_hello_fd_finish ( 7505s # FDPassing *proxy, 7505s # gchar **out_response, 7505s # GUnixFDList **out_fd_list, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_hello_fd_sync ( 7505s # FDPassing *proxy, 7505s # const gchar *arg_greeting, 7505s # GUnixFDList *fd_list, 7505s # gchar **out_response, 7505s # GUnixFDList **out_fd_list, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_call_no_annotation ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_no_annotation_finish ( 7505s # FDPassing *proxy, 7505s # GVariant **out_response, 7505s # gchar **out_response_locale, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_no_annotation_sync ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale, 7505s # GVariant **out_response, 7505s # gchar **out_response_locale, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_call_no_annotation_nested ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_files, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_no_annotation_nested_finish ( 7505s # FDPassing *proxy, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_no_annotation_nested_sync ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_files, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # 7505s # 7505s # /* ---- */ 7505s # 7505s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 7505s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 7505s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 7505s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 7505s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 7505s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 7505s # 7505s # typedef struct _FDPassingProxy FDPassingProxy; 7505s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 7505s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 7505s # 7505s # struct _FDPassingProxy 7505s # { 7505s # /*< private >*/ 7505s # GDBusProxy parent_instance; 7505s # FDPassingProxyPrivate *priv; 7505s # }; 7505s # 7505s # struct _FDPassingProxyClass 7505s # { 7505s # GDBusProxyClass parent_class; 7505s # }; 7505s # 7505s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 7505s # 7505s # #if GLIB_CHECK_VERSION(2, 44, 0) 7505s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 7505s # #endif 7505s # 7505s # void fdpassing_proxy_new ( 7505s # GDBusConnection *connection, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # FDPassing *fdpassing_proxy_new_finish ( 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # FDPassing *fdpassing_proxy_new_sync ( 7505s # GDBusConnection *connection, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_proxy_new_for_bus ( 7505s # GBusType bus_type, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 7505s # GBusType bus_type, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # 7505s # /* ---- */ 7505s # 7505s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 7505s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 7505s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 7505s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 7505s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 7505s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 7505s # 7505s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 7505s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 7505s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 7505s # 7505s # struct _FDPassingSkeleton 7505s # { 7505s # /*< private >*/ 7505s # GDBusInterfaceSkeleton parent_instance; 7505s # FDPassingSkeletonPrivate *priv; 7505s # }; 7505s # 7505s # struct _FDPassingSkeletonClass 7505s # { 7505s # GDBusInterfaceSkeletonClass parent_class; 7505s # }; 7505s # 7505s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 7505s # 7505s # #if GLIB_CHECK_VERSION(2, 44, 0) 7505s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 7505s # #endif 7505s # 7505s # FDPassing *fdpassing_skeleton_new (void); 7505s # 7505s # 7505s # G_END_DECLS 7505s # 7505s # #endif /* __STDOUT__ */ 7505s # Error: 7505s # 7505s # /tmp/tmpovtqpzgy/tmp7sbbf_oa.xml: 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpovtqpzgy/tmp7sbbf_oa.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 7505s # Return code: 0 7505s # Output: 7505s # /* 7505s # * This file is generated by gdbus-codegen, do not modify it. 7505s # * 7505s # * The license of this code is the same as for the D-Bus interface description 7505s # * it was derived from. Note that it links to GLib, so must comply with the 7505s # * LGPL linking clauses. 7505s # */ 7505s # 7505s # #ifndef __STDOUT__ 7505s # #define __STDOUT__ 7505s # 7505s # #include 7505s # 7505s # G_BEGIN_DECLS 7505s # 7505s # 7505s # /* ------------------------------------------------------------------------ */ 7505s # /* Declarations for FDPassing */ 7505s # 7505s # #define TYPE_FDPASSING (fdpassing_get_type ()) 7505s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 7505s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 7505s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 7505s # 7505s # struct _FDPassing; 7505s # typedef struct _FDPassing FDPassing; 7505s # typedef struct _FDPassingIface FDPassingIface; 7505s # 7505s # struct _FDPassingIface 7505s # { 7505s # GTypeInterface parent_iface; 7505s # 7505s # gboolean (*handle_hello_fd) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # const gchar *arg_greeting); 7505s # 7505s # gboolean (*handle_no_annotation) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale); 7505s # 7505s # gboolean (*handle_no_annotation_nested) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GVariant *arg_files); 7505s # 7505s # }; 7505s # 7505s # GType fdpassing_get_type (void) G_GNUC_CONST; 7505s # 7505s # GDBusInterfaceInfo *fdpassing_interface_info (void); 7505s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 7505s # 7505s # 7505s # /* D-Bus method call completion functions: */ 7505s # void fdpassing_complete_hello_fd ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # const gchar *response); 7505s # 7505s # void fdpassing_complete_no_annotation ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GVariant *response, 7505s # const gchar *response_locale); 7505s # 7505s # void fdpassing_complete_no_annotation_nested ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation); 7505s # 7505s # 7505s # 7505s # /* D-Bus method calls: */ 7505s # void fdpassing_call_hello_fd ( 7505s # FDPassing *proxy, 7505s # const gchar *arg_greeting, 7505s # GUnixFDList *fd_list, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_hello_fd_finish ( 7505s # FDPassing *proxy, 7505s # gchar **out_response, 7505s # GUnixFDList **out_fd_list, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_hello_fd_sync ( 7505s # FDPassing *proxy, 7505s # const gchar *arg_greeting, 7505s # GUnixFDList *fd_list, 7505s # gchar **out_response, 7505s # GUnixFDList **out_fd_list, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_call_no_annotation ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_no_annotation_finish ( 7505s # FDPassing *proxy, 7505s # GVariant **out_response, 7505s # gchar **out_response_locale, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_no_annotation_sync ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale, 7505s # GVariant **out_response, 7505s # gchar **out_response_locale, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_call_no_annotation_nested ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_files, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_no_annotation_nested_finish ( 7505s # FDPassing *proxy, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_no_annotation_nested_sync ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_files, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # 7505s # 7505s # /* ---- */ 7505s # 7505s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 7505s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 7505s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 7505s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 7505s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 7505s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 7505s # 7505s # typedef struct _FDPassingProxy FDPassingProxy; 7505s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 7505s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 7505s # 7505s # struct _FDPassingProxy 7505s # { 7505s # /*< private >*/ 7505s # GDBusProxy parent_instance; 7505s # FDPassingProxyPrivate *priv; 7505s # }; 7505s # 7505s # struct _FDPassingProxyClass 7505s # { 7505s # GDBusProxyClass parent_class; 7505s # }; 7505s # 7505s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 7505s # 7505s # #if GLIB_CHECK_VERSION(2, 44, 0) 7505s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 7505s # #endif 7505s # 7505s # void fdpassing_proxy_new ( 7505s # GDBusConnection *connection, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # FDPassing *fdpassing_proxy_new_finish ( 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # FDPassing *fdpassing_proxy_new_sync ( 7505s # GDBusConnection *connection, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_proxy_new_for_bus ( 7505s # GBusType bus_type, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 7505s # GBusType bus_type, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # 7505s # /* ---- */ 7505s # 7505s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 7505s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 7505s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 7505s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 7505s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 7505s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 7505s # 7505s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 7505s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 7505s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 7505s # 7505s # struct _FDPassingSkeleton 7505s # { 7505s # /*< private >*/ 7505s # GDBusInterfaceSkeleton parent_instance; 7505s # FDPassingSkeletonPrivate *priv; 7505s # }; 7505s # 7505s # struct _FDPassingSkeletonClass 7505s # { 7505s # GDBusInterfaceSkeletonClass parent_class; 7505s # }; 7505s # 7505s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 7505s # 7505s # #if GLIB_CHECK_VERSION(2, 44, 0) 7505s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 7505s # #endif 7505s # 7505s # FDPassing *fdpassing_skeleton_new (void); 7505s # 7505s # 7505s # G_END_DECLS 7505s # 7505s # #endif /* __STDOUT__ */ 7505s # Error: 7505s # 7505s # /tmp/tmpovtqpzgy/tmpv8y0_u6p.xml: 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # 7505s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpovtqpzgy/tmpv8y0_u6p.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 7505s # Return code: 0 7505s # Output: 7505s # /* 7505s # * This file is generated by gdbus-codegen, do not modify it. 7505s # * 7505s # * The license of this code is the same as for the D-Bus interface description 7505s # * it was derived from. Note that it links to GLib, so must comply with the 7505s # * LGPL linking clauses. 7505s # */ 7505s # 7505s # #ifndef __STDOUT__ 7505s # #define __STDOUT__ 7505s # 7505s # #include 7505s # 7505s # G_BEGIN_DECLS 7505s # 7505s # 7505s # /* ------------------------------------------------------------------------ */ 7505s # /* Declarations for FDPassing */ 7505s # 7505s # #define TYPE_FDPASSING (fdpassing_get_type ()) 7505s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 7505s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 7505s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 7505s # 7505s # struct _FDPassing; 7505s # typedef struct _FDPassing FDPassing; 7505s # typedef struct _FDPassingIface FDPassingIface; 7505s # 7505s # struct _FDPassingIface 7505s # { 7505s # GTypeInterface parent_iface; 7505s # 7505s # gboolean (*handle_hello_fd) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # const gchar *arg_greeting); 7505s # 7505s # gboolean (*handle_no_annotation) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale); 7505s # 7505s # gboolean (*handle_no_annotation_nested) ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # GVariant *arg_files); 7505s # 7505s # }; 7505s # 7505s # GType fdpassing_get_type (void) G_GNUC_CONST; 7505s # 7505s # GDBusInterfaceInfo *fdpassing_interface_info (void); 7505s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 7505s # 7505s # 7505s # /* D-Bus method call completion functions: */ 7505s # void fdpassing_complete_hello_fd ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # const gchar *response); 7505s # 7505s # void fdpassing_complete_no_annotation ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list, 7505s # GVariant *response, 7505s # const gchar *response_locale); 7505s # 7505s # void fdpassing_complete_no_annotation_nested ( 7505s # FDPassing *object, 7505s # GDBusMethodInvocation *invocation, 7505s # GUnixFDList *fd_list); 7505s # 7505s # 7505s # 7505s # /* D-Bus method calls: */ 7505s # void fdpassing_call_hello_fd ( 7505s # FDPassing *proxy, 7505s # const gchar *arg_greeting, 7505s # GDBusCallFlags call_flags, 7505s # gint timeout_msec, 7505s # GUnixFDList *fd_list, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_hello_fd_finish ( 7505s # FDPassing *proxy, 7505s # gchar **out_response, 7505s # GUnixFDList **out_fd_list, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_hello_fd_sync ( 7505s # FDPassing *proxy, 7505s # const gchar *arg_greeting, 7505s # GDBusCallFlags call_flags, 7505s # gint timeout_msec, 7505s # GUnixFDList *fd_list, 7505s # gchar **out_response, 7505s # GUnixFDList **out_fd_list, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_call_no_annotation ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale, 7505s # GDBusCallFlags call_flags, 7505s # gint timeout_msec, 7505s # GUnixFDList *fd_list, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_no_annotation_finish ( 7505s # FDPassing *proxy, 7505s # GVariant **out_response, 7505s # gchar **out_response_locale, 7505s # GUnixFDList **out_fd_list, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_no_annotation_sync ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_greeting, 7505s # const gchar *arg_greeting_locale, 7505s # GDBusCallFlags call_flags, 7505s # gint timeout_msec, 7505s # GUnixFDList *fd_list, 7505s # GVariant **out_response, 7505s # gchar **out_response_locale, 7505s # GUnixFDList **out_fd_list, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_call_no_annotation_nested ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_files, 7505s # GDBusCallFlags call_flags, 7505s # gint timeout_msec, 7505s # GUnixFDList *fd_list, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # 7505s # gboolean fdpassing_call_no_annotation_nested_finish ( 7505s # FDPassing *proxy, 7505s # GUnixFDList **out_fd_list, 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # 7505s # gboolean fdpassing_call_no_annotation_nested_sync ( 7505s # FDPassing *proxy, 7505s # GVariant *arg_files, 7505s # GDBusCallFlags call_flags, 7505s # gint timeout_msec, 7505s # GUnixFDList *fd_list, 7505s # GUnixFDList **out_fd_list, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # 7505s # 7505s # /* ---- */ 7505s # 7505s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 7505s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 7505s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 7505s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 7505s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 7505s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 7505s # 7505s # typedef struct _FDPassingProxy FDPassingProxy; 7505s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 7505s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 7505s # 7505s # struct _FDPassingProxy 7505s # { 7505s # /*< private >*/ 7505s # GDBusProxy parent_instance; 7505s # FDPassingProxyPrivate *priv; 7505s # }; 7505s # 7505s # struct _FDPassingProxyClass 7505s # { 7505s # GDBusProxyClass parent_class; 7505s # }; 7505s # 7505s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 7505s # 7505s # #if GLIB_CHECK_VERSION(2, 44, 0) 7505s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 7505s # #endif 7505s # 7505s # void fdpassing_proxy_new ( 7505s # GDBusConnection *connection, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # FDPassing *fdpassing_proxy_new_finish ( 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # FDPassing *fdpassing_proxy_new_sync ( 7505s # GDBusConnection *connection, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # void fdpassing_proxy_new_for_bus ( 7505s # GBusType bus_type, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GAsyncReadyCallback callback, 7505s # gpointer user_data); 7505s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 7505s # GAsyncResult *res, 7505s # GError **error); 7505s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 7505s # GBusType bus_type, 7505s # GDBusProxyFlags flags, 7505s # const gchar *name, 7505s # const gchar *object_path, 7505s # GCancellable *cancellable, 7505s # GError **error); 7505s # 7505s # 7505s # /* ---- */ 7505s # 7505s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 7505s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 7505s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 7505s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 7505s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 7505s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 7505s # 7505s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 7505s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 7505s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 7505s # 7505s # struct _FDPassingSkeleton 7505s # { 7505s # /*< private >*/ 7505s # GDBusInterfaceSkeleton parent_instance; 7505s # FDPassingSkeletonPrivate *priv; 7505s # }; 7505s # 7505s # struct _FDPassingSkeletonClass 7505s # { 7505s # GDBusInterfaceSkeletonClass parent_class; 7505s # }; 7505s # 7505s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 7505s # 7505s # #if GLIB_CHECK_VERSION(2, 44, 0) 7505s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 7505s # #endif 7505s # 7505s # FDPassing *fdpassing_skeleton_new (void); 7505s # 7505s # 7505s # G_END_DECLS 7505s # 7505s # #endif /* __STDOUT__ */ 7505s # Error: 7505s 1..39 7506s ok - glib/codegen.py.test 7506s # Running test: glib/repository.test 7506s TAP version 14 7506s # random seed: R02S7a007fd469c3303c21087da83949e053 7506s 1..23 7506s # Start of repository tests 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/basic/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/basic/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/basic/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/basic/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/basic/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/basic/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/basic/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/basic/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/basic/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/basic/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 7506s ok 1 /repository/basic 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/info/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/info/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/info/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/info/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/info/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/info/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/info/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/info/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/info/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/info/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/info summary: Test retrieving some basic info blobs from a typelib 7506s ok 2 /repository/info 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/dependencies/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/dependencies/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/dependencies/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 7506s ok 3 /repository/dependencies 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/arg-info/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/arg-info/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/arg-info/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 7506s ok 4 /repository/arg-info 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/callable-info/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/callable-info/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/callable-info/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 7506s ok 5 /repository/callable-info 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/callback-info/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/callback-info/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/callback-info/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 7506s ok 6 /repository/callback-info 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/char-types/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/char-types/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/char-types/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 7506s ok 7 /repository/char-types 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/constructor-return-type/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 7506s ok 8 /repository/constructor-return-type 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/enum-info-c-identifier/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 7506s ok 9 /repository/enum-info-c-identifier 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/enum-info-static-methods/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/enum-info-static-methods summary: Test an enum with methods 7506s ok 10 /repository/enum-info-static-methods 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/error-quark/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/error-quark/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/error-quark/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/error-quark summary: Test finding an error quark by error domain 7506s ok 11 /repository/error-quark 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/flags-info-c-identifier/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 7506s ok 12 /repository/flags-info-c-identifier 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/fundamental-ref-func/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 7506s ok 13 /repository/fundamental-ref-func 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/instance-method-ownership-transfer/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 7506s ok 14 /repository/instance-method-ownership-transfer 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/object-gtype-interfaces/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 7506s ok 15 /repository/object-gtype-interfaces 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/signal-info-with-array-length-arg/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 7506s ok 16 /repository/signal-info-with-array-length-arg 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/type-info-name/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 7506s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 7506s ok 17 /repository/type-info-name 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-no-invoker/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 7506s ok 18 /repository/vfunc-info-with-no-invoker 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 7506s ok 19 /repository/vfunc-info-with-invoker-on-interface 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 7506s ok 20 /repository/vfunc-info-with-invoker-on-object 7506s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/home 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/cache 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/system-config2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/config 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/system-data2 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/data 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/state 7506s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/find-by-gtype/.dirs/runtime 7506s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7506s # /repository/find-by-gtype summary: Test finding a GType 7507s ok 21 /repository/find-by-gtype 7507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/home 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/cache 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/system-config2 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/config 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/system-data2 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/data 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/state 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/loaded-namespaces/.dirs/runtime 7507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7507s # /repository/loaded-namespaces summary: Test listing loaded namespaces 7507s ok 22 /repository/loaded-namespaces 7507s # Start of base-info tests 7507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/home 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/cache 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/system-config2 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/config 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/system-data2 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/data 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/state 7507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_P3ZU52/repository/base-info/clear/.dirs/runtime 7507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7507s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 7507s ok 23 /repository/base-info/clear 7507s # End of base-info tests 7507s # End of repository tests 7507s ok - glib/repository.test 7507s # Running test: glib/atomic.test 7507s TAP version 14 7507s # random seed: R02S064d6717ea3d994ebc3a53a7fa27c4d6 7507s 1..2 7507s # Start of atomic tests 7507s ok 1 /atomic/types 7508s ok 2 /atomic/threaded 7508s # slow test /atomic/threaded executed in 1.27 secs 7508s # End of atomic tests 7508s ok - glib/atomic.test 7508s # Running test: glib/dump.test 7508s TAP version 14 7508s # random seed: R02Sba7743ec3d665533cef785a5ddd11db6 7508s 1..4 7508s # Start of dump tests 7508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/home 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/cache 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/system-config1:/tmp/test_dump_Z9B352/dump/empty-file/.dirs/system-config2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/config 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/system-data1:/tmp/test_dump_Z9B352/dump/empty-file/.dirs/system-data2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/data 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/state 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_Z9B352/dump/empty-file/.dirs/runtime 7508s ok 1 /dump/empty-file 7508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/home 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/cache 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/system-config2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/config 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/system-data2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/data 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/state 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_Z9B352/dump/missing-get-type/.dirs/runtime 7508s Invalid GType function: 'does_not_exist_get_type' 7508s ok 2 /dump/missing-get-type 7508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/home 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/cache 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_Z9B352/dump/missing-quark/.dirs/system-config2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/config 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_Z9B352/dump/missing-quark/.dirs/system-data2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/data 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/state 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_Z9B352/dump/missing-quark/.dirs/runtime 7508s Invalid error quark function: 'does_not_exist_error' 7508s ok 3 /dump/missing-quark 7508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_Z9B352/dump/basic/.dirs/home 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_Z9B352/dump/basic/.dirs/cache 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_Z9B352/dump/basic/.dirs/system-config1:/tmp/test_dump_Z9B352/dump/basic/.dirs/system-config2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_Z9B352/dump/basic/.dirs/config 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_Z9B352/dump/basic/.dirs/system-data1:/tmp/test_dump_Z9B352/dump/basic/.dirs/system-data2 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_Z9B352/dump/basic/.dirs/data 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_Z9B352/dump/basic/.dirs/state 7508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_Z9B352/dump/basic/.dirs/runtime 7508s ok 4 /dump/basic 7508s # End of dump tests 7509s ok - glib/dump.test 7509s # Running test: glib/macros-c-17.test 7509s TAP version 14 7509s # random seed: R02S2303e7a2837704aeff7d9d9ac9ca2ac7 7509s 1..4 7509s # Start of C tests 7509s ok 1 /C/standard-17 7509s # End of C tests 7509s # Start of alignof tests 7509s ok 2 /alignof/fallback 7509s # End of alignof tests 7509s # Start of assert tests 7509s ok 3 /assert/static 7509s # End of assert tests 7509s # Start of struct tests 7509s ok 4 /struct/sizeof_member 7509s # End of struct tests 7509s ok - glib/macros-c-17.test 7509s # Running test: glib/io-channel.test 7509s TAP version 14 7509s # random seed: R02S2e99b8483d49bccc785da3d53c9f2342 7509s 1..2 7509s # Start of io-channel tests 7509s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/home 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/cache 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/system-config2 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/config 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/system-data2 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/data 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/state 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_E49S52/io-channel/read-write/.dirs/runtime 7509s # Line one 7509s # 7509s # Line two 7509s # 7509s # Line three 7509s # 7509s # /* Hello */ 7509s # 7509s # \x1234\x567890\x6666 7509s # 7509s # read 62 bytes, wrote 62 bytes 7509s ok 1 /io-channel/read-write 7509s # Start of read-line tests 7509s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/home 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/cache 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/system-config2 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/config 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/system-data2 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/data 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/state 7509s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_E49S52/io-channel/read-line/embedded-nuls/.dirs/runtime 7509s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 7509s ok 2 /io-channel/read-line/embedded-nuls 7509s # End of read-line tests 7509s # End of io-channel tests 7509s ok - glib/io-channel.test 7509s # Running test: glib/charset.test 7509s TAP version 14 7509s # random seed: R02S0f3de99f9c4dd6cc2965ba97d9436747 7509s 1..2 7509s # Start of charset tests 7509s # Test 0 7509s # Test 1 7509s # Test 2 7509s # Test 3 7509s ok 1 /charset/language_names_with_category 7509s # Executing: glib/charset.test 7509s ok 2 /charset/language_names_with_category_async 7509s # End of charset tests 7509s ok - glib/charset.test 7509s # Running test: glib/basic-signals.test 7510s TAP version 14 7510s # random seed: R02Sdaf9f811ec1b9cd1dcd551fbf7459f92 7510s 1..1 7510s # Start of gobject tests 7510s ok 1 /gobject/basic-signals 7510s # End of gobject tests 7510s ok - glib/basic-signals.test 7510s # Running test: glib/gdbus-proxy-unique-name.test 7510s TAP version 14 7510s # random seed: R02S6097de89932de030801d6bb93bc7be3f 7510s 1..1 7510s # Start of gdbus tests 7510s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/home 7510s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/cache 7510s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/system-config2 7510s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/config 7510s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/system-data2 7510s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/data 7510s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/state 7510s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_OX5Z52/gdbus/proxy-unique-name/.dirs/runtime 7511s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7511s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7511s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7511s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7511s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7511s ok 1 /gdbus/proxy-unique-name 7511s # slow test /gdbus/proxy-unique-name executed in 1.16 secs 7511s # End of gdbus tests 7511s ok - glib/gdbus-proxy-unique-name.test 7511s # Running test: glib/inet-address.test 7511s TAP version 14 7511s # random seed: R02S794b02460f7ea5a44afb37909990b906 7511s 1..11 7511s # Start of inet-address tests 7511s ok 1 /inet-address/parse 7511s ok 2 /inet-address/any 7511s ok 3 /inet-address/loopback 7511s ok 4 /inet-address/bytes 7511s ok 5 /inet-address/property 7511s # End of inet-address tests 7511s # Start of socket-address tests 7511s ok 6 /socket-address/basic 7511s ok 7 /socket-address/to-string 7511s # End of socket-address tests 7511s # Start of address-mask tests 7511s ok 8 /address-mask/parse 7511s ok 9 /address-mask/property 7511s ok 10 /address-mask/equal 7511s ok 11 /address-mask/match 7511s # End of address-mask tests 7511s ok - glib/inet-address.test 7512s # Running test: glib/pollable.test 7512s TAP version 14 7512s # random seed: R02S56e7717db53ebba34e65a2080c8bf30a 7512s 1..6 7512s # Start of pollable tests 7512s ok 1 /pollable/converter 7512s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 7512s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5556a85beae0 and GSocketClientAsyncConnectData 0x5556a85bac00 7512s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7512s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7512s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5556a85c3a20 for GSocketClientAsyncConnectData 0x5556a85bac00 7512s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7512s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7512s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7512s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7512s ok 2 /pollable/socket 7512s # Start of unix tests 7512s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 7512s ok 3 /pollable/unix/pipe 7512s # /pollable/unix/pty summary: Test that PTYs are considered pollable 7512s ok 4 /pollable/unix/pty 7512s # /pollable/unix/file summary: Test that regular files are not considered pollable 7512s ok 5 /pollable/unix/file 7512s # /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 7512s ok 6 /pollable/unix/nulldev 7512s # End of unix tests 7512s # End of pollable tests 7512s ok - glib/pollable.test 7512s # Running test: glib/pathbuf.test 7512s TAP version 14 7512s # random seed: R02S2b3947be064589bfa2b0a3d14c68a520 7512s 1..3 7512s # Start of pathbuf tests 7512s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/home 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/cache 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/system-config2 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/config 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/system-data2 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/data 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/state 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_GIW352/pathbuf/init/.dirs/runtime 7512s # Initializing empty path buf 7512s # Initializing with empty path 7512s # Initializing with full path 7512s # Initializing with no path 7512s # Allocating GPathBuf on the heap 7512s ok 1 /pathbuf/init 7512s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/home 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/cache 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/system-config2 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/config 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/system-data2 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/data 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/state 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_GIW352/pathbuf/push-pop/.dirs/runtime 7512s # Pushing relative path component 7512s # Pushing absolute path component 7512s # Popping a path component 7512s # Can't pop the last element of a path buffer 7512s ok 2 /pathbuf/push-pop 7512s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/home 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/cache 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/system-config2 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/config 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/system-data2 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/data 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/state 7512s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_GIW352/pathbuf/filename-extension/.dirs/runtime 7512s ok 3 /pathbuf/filename-extension 7512s # End of pathbuf tests 7512s ok - glib/pathbuf.test 7513s # Running test: glib/gdbus-address-get-session.test 7513s TAP version 14 7513s # random seed: R02Scbef0b66948c2d201fe7c1d8d2fa386f 7513s 1..2 7513s # Start of gdbus tests 7513s ok 1 /gdbus/x11-autolaunch 7513s ok 2 /gdbus/xdg-runtime 7513s # End of gdbus tests 7513s ok - glib/gdbus-address-get-session.test 7514s # Running test: glib/gmenumodel.test 7514s TAP version 14 7514s # random seed: R02S8f0dd481afc0a6a63258bd1ddb12c3fc 7514s 1..15 7514s # Start of gmenu tests 7514s # Executing: glib/gmenumodel.test 7519s # Executing: glib/gmenumodel.test 7524s # Executing: glib/gmenumodel.test 7528s ok 1 /gmenu/equality 7528s # slow test /gmenu/equality executed in 14.23 secs 7530s # Executing: glib/gmenumodel.test 7534s # Executing: glib/gmenumodel.test 7539s # Executing: glib/gmenumodel.test 7544s # Executing: glib/gmenumodel.test 7547s ok 2 /gmenu/random 7547s # slow test /gmenu/random executed in 18.46 secs 7547s ok 3 /gmenu/attributes 7547s ok 4 /gmenu/links 7547s ok 5 /gmenu/mutable 7547s ok 6 /gmenu/convenience 7547s ok 7 /gmenu/menuitem 7547s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 7547s ok 8 /gmenu/input-validation 7547s # Start of dbus tests 7549s # Executing: glib/gmenumodel.test 7551s ok 9 /gmenu/dbus/roundtrip 7551s # slow test /gmenu/dbus/roundtrip executed in 3.81 secs 7551s ok 10 /gmenu/dbus/subscriptions 7554s # Executing: glib/gmenumodel.test 7557s not ok - Test timed out after 300 seconds 7559s # Executing: glib/gmenumodel.test 7564s # Executing: glib/gmenumodel.test 7569s # Executing: glib/gmenumodel.test 7573s ok 11 /gmenu/dbus/threaded 7573s # slow test /gmenu/dbus/threaded executed in 21.49 secs 7573s # Start of peer tests 7574s # Executing: glib/gmenumodel.test 7575s ok 12 /gmenu/dbus/peer/roundtrip 7575s # slow test /gmenu/dbus/peer/roundtrip executed in 2.53 secs 7576s ok 13 /gmenu/dbus/peer/subscriptions 7576s # End of peer tests 7576s # Start of export tests 7576s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 7576s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 7576s ok 14 /gmenu/dbus/export/error-handling 7576s # End of export tests 7576s # End of dbus tests 7576s # Start of attributes tests 7576s ok 15 /gmenu/attributes/iterate 7576s # End of attributes tests 7576s # End of gmenu tests 7576s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7576s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7576s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7576s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7576s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7576s ok - glib/gmenumodel.test 7576s # Running test: glib/gsocketclient-slow.test 7576s TAP version 14 7576s # random seed: R02Se8965237716ce7b8afd145788dce9071 7576s 1..4 7576s # Start of socket-client tests 7576s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 7576s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 7576s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5558effd4a70 and GSocketClientAsyncConnectData 0x5558effcf0d0 7576s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7576s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7576s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5558effd8600 for GSocketClientAsyncConnectData 0x5558effcf0d0 7576s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7577s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 7577s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7577s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 7577s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7577s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7577s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5558effd8600 for GSocketClientAsyncConnectData 0x5558effcf0d0 7577s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 7578s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 7578s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 7578s ok 1 /socket-client/connection-fail 7578s # slow test /socket-client/connection-fail executed in 1.44 secs 7578s # Start of happy-eyeballs tests 7578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5558effd7320 and GSocketClientAsyncConnectData 0x5558effd7f70 7578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7578s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5558effdbaf0 for GSocketClientAsyncConnectData 0x5558effd7f70 7578s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7578s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 7578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7578s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7578s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7578s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7578s ok 2 /socket-client/happy-eyeballs/slow 7578s # slow test /socket-client/happy-eyeballs/slow executed in 0.72 secs 7578s # Start of cancellation tests 7578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5558effd7c50 and GSocketClientAsyncConnectData 0x5558effdba20 7578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7578s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 7578s ok 3 /socket-client/happy-eyeballs/cancellation/instant 7578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5558effd7170 and GSocketClientAsyncConnectData 0x5558effdb630 7578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7579s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5558effdc1f0 for GSocketClientAsyncConnectData 0x5558effdb630 7579s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7579s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 7579s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7579s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7579s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7579s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 7579s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 7579s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.62 secs 7579s # End of cancellation tests 7579s # End of happy-eyeballs tests 7579s # End of socket-client tests 7579s ok - glib/gsocketclient-slow.test 7579s # Running test: glib/signals-refcount3.test 7579s # Executing: glib/signals-refcount3.test 7579s TAP version 14 7579s # random seed: R02Sc5e9ef4627b7cbb4c4f46e65dd03dcab 7579s 1..1 7579s # Start of gobject tests 7579s # Start of refcount tests 7579s # init 0x5557def81dc0 7579s # 7579s # init 0x5557def7e310 7579s # 7584s # Executing: glib/signals-refcount3.test 7584s # dispose 0x5557def81dc0! 7584s # 7584s # dispose 0x5557def7e310! 7584s # 7584s ok 1 /gobject/refcount/signals 7584s # slow test /gobject/refcount/signals executed in 5.03 secs 7584s # End of refcount tests 7584s # End of gobject tests 7584s ok - glib/signals-refcount3.test 7585s # Running test: glib/bytes.test 7585s TAP version 14 7585s # random seed: R02S54e3347a7245dc206390b144cdba2f53 7585s 1..21 7585s # Start of bytes tests 7585s ok 1 /bytes/new 7585s ok 2 /bytes/new-take 7585s ok 3 /bytes/new-static 7585s ok 4 /bytes/new-with-free-func 7585s ok 5 /bytes/new-from-bytes 7585s ok 6 /bytes/new-from-bytes-slice 7585s ok 7 /bytes/new-from-bytes-shared-ref 7585s ok 8 /bytes/hash 7585s ok 9 /bytes/equal 7585s ok 10 /bytes/compare 7585s ok 11 /bytes/null 7585s ok 12 /bytes/get-region 7585s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 7585s ok 13 /bytes/unref-null 7585s # Start of to-data tests 7585s ok 14 /bytes/to-data/transferred 7585s ok 15 /bytes/to-data/two-refs 7585s ok 16 /bytes/to-data/non-malloc 7585s ok 17 /bytes/to-data/different-free-func 7585s # End of to-data tests 7585s # Start of to-array tests 7585s ok - glib/bytes.test 7585s ok 18 /bytes/to-array/transferred 7585s ok 19 /bytes/to-array/two-refs 7585s ok 20 /bytes/to-array/non-malloc 7585s # Start of transferred tests 7585s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 7585s ok 21 /bytes/to-array/transferred/oversize 7585s # End of transferred tests 7585s # End of to-array tests 7585s # End of bytes tests 7585s # Running test: glib/mem-overflow.test 7585s TAP version 14 7585s # random seed: R02S64208435aaa69184a52788b8dbf378ee 7585s 1..2 7585s # Start of mem tests 7588s ok 1 /mem/overflow 7588s # slow test /mem/overflow executed in 2.89 secs 7588s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 7588s ok 2 /mem/empty-alloc 7588s # Start of overflow tests 7588s # Start of subprocess tests 7588s # End of subprocess tests 7588s # End of overflow tests 7588s # Start of empty-alloc tests 7588s # End of empty-alloc tests 7588s # End of mem tests 7588s ok - glib/mem-overflow.test 7588s # Running test: glib/type-flags.test 7588s TAP version 14 7588s # random seed: R02Sba9ecde7f6ca4c0b2b0132fc0c5f4bfa 7588s 1..4 7588s # Start of type tests 7588s # Start of flags tests 7588s ok 1 /type/flags/interface 7588s ok 2 /type/flags/final 7588s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 7588s ok 3 /type/flags/deprecated 7588s # Start of final tests 7588s ok 4 /type/flags/final/instance-check 7588s # End of final tests 7588s # End of flags tests 7588s # End of type tests 7589s ok - glib/type-flags.test 7589s # Running test: glib/gnotification.test 7589s TAP version 14 7589s # random seed: R02Se65d93b89ac3f485d6cb8990b0576aeb 7589s 1..2 7589s # Start of gnotification tests 7589s # Executing: glib/gnotification.test 7590s ok 1 /gnotification/basic 7590s # slow test /gnotification/basic executed in 0.81 secs 7590s ok 2 /gnotification/properties 7590s # End of gnotification tests 7590s ok - glib/gnotification.test 7590s # Running test: glib/dynamictests.test 7590s TAP version 14 7590s # random seed: R02S7f98fc33ff5ad3949a77c996098fa591 7590s 1..2 7590s # Start of GObject tests 7590s ok 1 /GObject/threaded-dynamic-ref-unref-init 7590s ok 2 /GObject/dynamic-interface-properties 7590s # End of GObject tests 7590s ok - glib/dynamictests.test 7590s # Running test: glib/param.test 7590s TAP version 14 7590s # random seed: R02S84856e593a5df03d79554356571ac4a8 7591s 1..32 7591s # Start of param tests 7591s ok 1 /param/value 7591s ok 2 /param/strings 7591s ok 3 /param/qdata 7591s ok 4 /param/validate 7591s ok 5 /param/convert 7591s ok 6 /param/implement # SKIP Skipping slow /param/implement test 7591s ok 7 /param/default 7591s ok 8 /param/is-valid-name 7591s # Start of invalid-name tests 7591s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 7593s ok 9 /param/invalid-name/colon 7593s # slow test /param/invalid-name/colon executed in 1.07 secs 7593s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 7594s ok 10 /param/invalid-name/first-char 7594s # slow test /param/invalid-name/first-char executed in 1.03 secs 7594s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 7594s # Executing: glib/param.test 7595s ok 11 /param/invalid-name/empty 7595s # slow test /param/invalid-name/empty executed in 1.07 secs 7595s # End of invalid-name tests 7595s # Start of implement tests 7595s # Start of subprocess tests 7595s # End of subprocess tests 7595s # End of implement tests 7595s # End of param tests 7595s # Start of value tests 7595s ok 12 /value/transform 7595s # End of value tests 7595s # Start of paramspec tests 7595s ok 13 /paramspec/char 7595s ok 14 /paramspec/uchar 7595s ok 15 /paramspec/int 7595s ok 16 /paramspec/uint 7595s ok 17 /paramspec/long 7595s ok 18 /paramspec/ulong 7595s ok 19 /paramspec/int64 7595s ok 20 /paramspec/uint64 7595s ok 21 /paramspec/float 7595s ok 22 /paramspec/double 7595s ok 23 /paramspec/unichar 7595s ok 24 /paramspec/param 7595s ok 25 /paramspec/null-param 7595s ok 26 /paramspec/string 7595s ok 27 /paramspec/override 7595s ok 28 /paramspec/gtype 7595s ok 29 /paramspec/variant 7595s ok 30 /paramspec/custom 7595s ok 31 /paramspec/pool 7595s # Start of variant tests 7595s ok 32 /paramspec/variant/cmp 7595s # End of variant tests 7595s # End of paramspec tests 7595s ok - glib/param.test 7595s # Running test: glib/notify-init2.test 7595s TAP version 14 7595s # random seed: R02S7b6e14ed288736837f143524b02942f2 7595s 1..1 7595s # Start of properties tests 7595s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 7595s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 7595s ok 1 /properties/notify-in-init2 7595s # End of properties tests 7595s ok - glib/notify-init2.test 7595s # Running test: glib/mount-operation.test 7595s TAP version 14 7595s # random seed: R02Sb29aa77059729a142c0e7d4d8d7f3694 7595s 1..2 7595s # Start of mount-operation tests 7595s ok 1 /mount-operation/construction 7595s ok 2 /mount-operation/properties 7595s # End of mount-operation tests 7595s ok - glib/mount-operation.test 7595s # Running test: glib/gdbus-proxy.test 7595s TAP version 14 7595s # random seed: R02Sa41234bbbd4a8cf1a6f1778235adc073 7596s 1..5 7596s # Start of gdbus tests 7596s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/home 7596s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/cache 7596s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/system-config2 7596s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/config 7596s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/system-data2 7596s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/data 7596s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/state 7596s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/.dirs/runtime 7598s ok 1 /gdbus/proxy 7598s # slow test /gdbus/proxy executed in 2.77 secs 7598s # Start of proxy tests 7598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/home 7598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/cache 7598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/system-config2 7598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/config 7598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/system-data2 7598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/data 7598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/state 7598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-properties/.dirs/runtime 7599s ok 2 /gdbus/proxy/no-properties 7599s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/home 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/cache 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/system-config2 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/config 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/system-data2 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/data 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/state 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/wellknown-noauto/.dirs/runtime 7599s ok 3 /gdbus/proxy/wellknown-noauto 7599s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/home 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/cache 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/system-config2 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/config 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/system-data2 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/data 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/state 7599s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/async/.dirs/runtime 7599s # Executing: glib/gdbus-proxy.test 7601s ok 4 /gdbus/proxy/async 7601s # slow test /gdbus/proxy/async executed in 2.55 secs 7601s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/home 7601s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/cache 7601s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/system-config2 7601s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/config 7601s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/system-data2 7601s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/data 7601s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/state 7601s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_3QT252/gdbus/proxy/no-match-rule/.dirs/runtime 7601s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 7601s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 7604s ok 5 /gdbus/proxy/no-match-rule 7604s # slow test /gdbus/proxy/no-match-rule executed in 2.68 secs 7604s # End of proxy tests 7604s # End of gdbus tests 7604s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7604s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7604s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7604s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7604s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7604s ok - glib/gdbus-proxy.test 7604s # Running test: glib/gdbus-peer.test 7604s TAP version 14 7604s # random seed: R02S98ca6e9a5ed7c8ab03152da1b618ee3d 7604s # Executing: glib/gdbus-peer.test 7604s 1..12 7604s # Start of gdbus tests 7604s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/home 7604s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/cache 7604s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/system-config2 7604s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/config 7604s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/system-data2 7604s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/data 7604s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/state 7604s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/.dirs/runtime 7604s # Testing with unix:dir address 7605s # Testing with unix:tmpdir address 7606s # Testing with unix:path address 7606s ok 1 /gdbus/peer-to-peer 7606s # slow test /gdbus/peer-to-peer executed in 1.77 secs 7606s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/home 7606s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/cache 7606s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/system-config2 7606s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/config 7606s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/system-data2 7606s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/data 7606s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/state 7606s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/delayed-message-processing/.dirs/runtime 7606s # Testing with unix:dir address 7607s ok 2 /gdbus/delayed-message-processing 7607s # slow test /gdbus/delayed-message-processing executed in 0.60 secs 7607s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/home 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/cache 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/system-config2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/config 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/system-data2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/data 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/state 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/nonce-tcp/.dirs/runtime 7607s ok 3 /gdbus/nonce-tcp 7607s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/home 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/cache 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/system-config2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/config 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/system-data2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/data 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/state 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/tcp-anonymous/.dirs/runtime 7607s ok 4 /gdbus/tcp-anonymous 7607s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/home 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/cache 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/system-config2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/config 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/system-data2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/data 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/state 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/credentials/.dirs/runtime 7607s ok 5 /gdbus/credentials 7607s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/home 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/cache 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/system-config2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/config 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/system-data2 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/data 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/state 7607s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/codegen-peer-to-peer/.dirs/runtime 7607s # Testing with unix:dir address 7607s # Machine ID: c389fed981af42aea8a3401e89906034 7608s ok 6 /gdbus/codegen-peer-to-peer 7608s # slow test /gdbus/codegen-peer-to-peer executed in 1.20 secs 7608s # Start of peer-to-peer tests 7608s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/home 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/cache 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/system-config2 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/config 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/system-data2 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/data 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/state 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/signals/.dirs/runtime 7608s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 7608s # Testing with unix:dir address 7608s ok 7 /gdbus/peer-to-peer/signals 7608s # Start of invalid tests 7608s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/home 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/cache 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/config 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/data 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/state 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/server/.dirs/runtime 7608s ok 8 /gdbus/peer-to-peer/invalid/server 7608s # Start of conn tests 7608s # Start of stream tests 7608s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 7608s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 7609s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 7609s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 7609s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 7609s # End of stream tests 7609s # Start of addr tests 7609s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 7609s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 7609s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 7609s # Executing: glib/gdbus-peer.test 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 7609s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_I88752/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 7609s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 7609s # End of addr tests 7609s # End of conn tests 7609s # End of invalid tests 7609s # End of peer-to-peer tests 7609s # End of gdbus tests 7609s ok - glib/gdbus-peer.test 7610s # Running test: glib/cond.test 7610s TAP version 14 7610s # random seed: R02Sb6e29f1ccaf7c30e4d030ffddea5a6c1 7610s 1..4 7610s # Start of thread tests 7610s ok 1 /thread/cond1 7610s ok 2 /thread/cond2 7610s # Start of cond tests 7611s ok 3 /thread/cond/wait-until 7611s # slow test /thread/cond/wait-until executed in 1.02 secs 7611s # Start of wait-until tests 7611s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 7611s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 7612s ok 4 /thread/cond/wait-until/contended-and-interrupted 7612s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.11 secs 7612s # End of wait-until tests 7612s # End of cond tests 7612s # End of thread tests 7612s ok - glib/cond.test 7612s # Running test: glib/fileutils.test 7612s TAP version 14 7612s # random seed: R02S4cfb9b9fa06bb1ae5e311308f223b97f 7612s 1..27 7612s # Start of fileutils tests 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/paths/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/paths/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/paths/.dirs/runtime 7612s ok 1 /fileutils/paths 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/build-path/.dirs/runtime 7612s ok 2 /fileutils/build-path 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/build-pathv/.dirs/runtime 7612s ok 3 /fileutils/build-pathv 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/build-filename/.dirs/runtime 7612s ok 4 /fileutils/build-filename 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/build-filenamev/.dirs/runtime 7612s ok 5 /fileutils/build-filenamev 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents/.dirs/runtime 7612s # We do not have CAP_DAC_OVERRIDE or equivalent 7612s # Checking g_mkdir_with_parents() in subdir ./hum/ 7612s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 7612s ok 6 /fileutils/mkdir-with-parents 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/mkdir-with-parents-permission/.dirs/runtime 7612s # We do not have CAP_DAC_OVERRIDE or equivalent 7612s ok 7 /fileutils/mkdir-with-parents-permission 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/format-size-for-display/.dirs/runtime 7612s ok 8 /fileutils/format-size-for-display 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/errors/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/errors/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/errors/.dirs/runtime 7612s ok 9 /fileutils/errors 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/basename/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/basename/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/basename/.dirs/runtime 7612s ok 10 /fileutils/basename 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/get-basename/.dirs/runtime 7612s ok 11 /fileutils/get-basename 7612s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/home 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/cache 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/system-config2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/config 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/system-data2 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/data 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/state 7612s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/dirname/.dirs/runtime 7612s ok 12 /fileutils/dirname 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/dir-make-tmp/.dirs/runtime 7613s ok 13 /fileutils/dir-make-tmp 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/file-open-tmp/.dirs/runtime 7613s ok 14 /fileutils/file-open-tmp 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/file-test/.dirs/runtime 7613s ok 15 /fileutils/file-test 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/mkstemp/.dirs/runtime 7613s ok 16 /fileutils/mkstemp 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/mkdtemp/.dirs/runtime 7613s ok 17 /fileutils/mkdtemp 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/get-contents/.dirs/runtime 7613s ok 18 /fileutils/get-contents 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/get-contents-large-file/.dirs/runtime 7613s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/set-contents/.dirs/runtime 7613s ok 20 /fileutils/set-contents 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/.dirs/runtime 7613s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 7613s # Flags 0 and test 0 7613s # Flags 0 and test 1 7613s # Flags 0 and test 2 7613s # Flags 0 and test 3 7613s # Flags 0 and test 4 7613s # Flags 0 and test 5 7613s # Flags 1 and test 0 7613s # Flags 1 and test 1 7613s # Flags 1 and test 2 7613s # Flags 1 and test 3 7613s # Flags 1 and test 4 7613s # Flags 1 and test 5 7613s # Flags 2 and test 0 7613s # Flags 2 and test 1 7613s # Flags 2 and test 2 7613s # Flags 2 and test 3 7613s # Flags 2 and test 4 7613s # Flags 2 and test 5 7613s # Flags 3 and test 0 7613s # Flags 3 and test 1 7613s # Flags 3 and test 2 7613s # Flags 3 and test 3 7613s # Flags 3 and test 4 7613s # Flags 3 and test 5 7613s # Flags 4 and test 0 7613s # Flags 4 and test 1 7613s # Flags 4 and test 2 7613s # Flags 4 and test 3 7613s # Flags 4 and test 4 7613s # Flags 4 and test 5 7613s # Flags 5 and test 0 7613s # Flags 5 and test 1 7613s # Flags 5 and test 2 7613s # Flags 5 and test 3 7613s # Flags 5 and test 4 7613s # Flags 5 and test 5 7613s # Flags 6 and test 0 7613s # Flags 6 and test 1 7613s # Flags 6 and test 2 7613s # Flags 6 and test 3 7613s # Flags 6 and test 4 7613s # Flags 6 and test 5 7613s ok 21 /fileutils/set-contents-full 7613s # slow test /fileutils/set-contents-full executed in 0.74 secs 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/read-link/.dirs/runtime 7613s ok 22 /fileutils/read-link 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/stdio-wrappers/.dirs/runtime 7613s # We do not have CAP_DAC_OVERRIDE or equivalent 7613s ok 23 /fileutils/stdio-wrappers 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/fopen-modes/.dirs/runtime 7613s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 7613s # Testing fopen() mode 'w' 7613s # Testing fopen() mode 'r' 7613s # Testing fopen() mode 'a' 7613s # Testing fopen() mode 'w+' 7613s # Testing fopen() mode 'r+' 7613s # Testing fopen() mode 'a+' 7613s # Testing fopen() mode 'wb' 7613s # Testing fopen() mode 'rb' 7613s # Testing fopen() mode 'ab' 7613s # Testing fopen() mode 'w+b' 7613s # Testing fopen() mode 'r+b' 7613s # Testing fopen() mode 'a+b' 7613s # Testing fopen() mode 'wb+' 7613s # Testing fopen() mode 'rb+' 7613s # Testing fopen() mode 'ab+' 7613s ok 24 /fileutils/fopen-modes 7613s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/home 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/cache 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/system-config2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/config 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/system-data2 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/data 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/state 7613s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/clear-fd/.dirs/runtime 7613s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 7613s # Will be closed by autocleanup: 3, -42 7613s # Testing error handling 7614s ok 25 /fileutils/clear-fd 7614s # Start of set-contents-full tests 7614s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/home 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/cache 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/system-config2 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/config 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/system-data2 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/data 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/state 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-file/.dirs/runtime 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 7614s ok 26 /fileutils/set-contents-full/read-only-file 7614s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/home 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/cache 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/config 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/data 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/state 7614s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KUO852/fileutils/set-contents-full/read-only-directory/.dirs/runtime 7614s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 7614s # Flags 0 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s # Flags 1 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s # Flags 2 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s # Flags 3 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s # Flags 4 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s # Flags 5 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s # Flags 6 7614s # We do not have CAP_DAC_OVERRIDE or equivalent 7614s ok 27 /fileutils/set-contents-full/read-only-directory 7614s # End of set-contents-full tests 7614s # Start of clear-fd tests 7614s # Start of subprocess tests 7614s # End of subprocess tests 7614s # End of clear-fd tests 7614s # End of fileutils tests 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852/glib-file-set-contents-full-rodir-AGEZ52: Directory not empty 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852/glib-file-set-contents-full-rodir-KR2Y52: Directory not empty 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852/glib-file-set-contents-full-rodir-8YUZ52: Directory not empty 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852/glib-file-set-contents-full-rodir-PVA152: Directory not empty 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852/glib-file-set-contents-full-rodir-783R52: Directory not empty 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852/glib-file-set-contents-full-rodir-VF9Z52: Directory not empty 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852/glib-file-set-contents-full-rodir-VFJS52: Directory not empty 7614s Unable to clean up temporary directory /tmp/test_fileutils_KUO852: Directory not empty 7614s ok - glib/fileutils.test 7614s # Running test: glib/signals-refcount2.test 7614s TAP version 14 7614s # random seed: R02S08aee61ad77aa0d952a3fa8c4a448678 7614s 1..1 7614s # Start of gobject tests 7614s # Start of refcount tests 7614s # init 0x5563bb9c7dc0 7614s # 7614s # init 0x5563bb9c4310 7614s # 7614s # Executing: glib/signals-refcount2.test 7619s # dispose 0x5563bb9c7dc0! 7619s # 7619s # dispose 0x5563bb9c4310! 7619s # 7619s ok 1 /gobject/refcount/signals 7619s # slow test /gobject/refcount/signals executed in 5.04 secs 7619s # End of refcount tests 7619s # End of gobject tests 7619s ok - glib/signals-refcount2.test 7619s # Running test: glib/string.test 7619s # Executing: glib/string.test 7619s TAP version 14 7619s # random seed: R02S2e9139ea789fca0118ce7cf5d6e120d7 7619s 1..23 7619s # Start of string tests 7619s ok 1 /string/test-string-chunks 7619s ok 2 /string/test-string-chunk-insert 7619s ok 3 /string/test-string-new 7619s ok 4 /string/test-string-printf 7619s ok 5 /string/test-string-assign 7619s ok 6 /string/test-string-append-c 7619s ok 7 /string/test-string-append 7619s ok 8 /string/test-string-append-vprintf 7620s ok 9 /string/test-string-prepend-c 7620s ok 10 /string/test-string-prepend 7620s ok 11 /string/test-string-insert 7620s ok 12 /string/test-string-insert-unichar 7620s ok 13 /string/test-string-equal 7620s ok 14 /string/test-string-truncate 7620s ok 15 /string/test-string-overwrite 7620s ok 16 /string/test-string-nul-handling 7620s ok 17 /string/test-string-up-down 7620s ok 18 /string/test-string-set-size 7620s ok 19 /string/test-string-to-bytes 7620s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 7620s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 7620s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 7620s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 7620s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 7620s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 7620s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 7620s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 7620s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 7620s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 7620s # 5: Replacing "o" with "" (limit 0) in "food for foals" 7620s # -> 4 replacements, "fd fr fals" 7620s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 7620s # -> 3 replacements, "aaaaaaaaa" 7620s # 7: Replacing "a" with "" (limit 0) in "aaa" 7620s # -> 3 replacements, "" 7620s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 7620s # -> 1 replacements, "bba" 7620s # 9: Replacing "" with "bar" (limit 0) in "foo" 7620s # -> 4 replacements, "barfbarobarobar" 7620s # 10: Replacing "" with "bar" (limit 1) in "foo" 7620s # -> 1 replacements, "barfoo" 7620s # 11: Replacing "" with "bar" (limit 2) in "foo" 7620s # -> 2 replacements, "barfbaroo" 7620s # 12: Replacing "" with "bar" (limit 3) in "foo" 7620s # -> 3 replacements, "barfbarobaro" 7620s # 13: Replacing "" with "bar" (limit 4) in "foo" 7620s # -> 4 replacements, "barfbarobarobar" 7620s # 14: Replacing "" with "bar" (limit 5) in "foo" 7620s # -> 4 replacements, "barfbarobarobar" 7620s # 15: Replacing "" with "x" (limit 0) in "" 7620s # -> 1 replacements, "x" 7620s # 16: Replacing "" with "" (limit 0) in "" 7620s # -> 1 replacements, "" 7620s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 7620s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 7620s ok 20 /string/test-string-replace 7620s ok 21 /string/test-string-steal 7620s ok 22 /string/test-string-new-take 7620s # Start of test-string-new-take tests 7620s ok 23 /string/test-string-new-take/null 7620s # End of test-string-new-take tests 7620s # End of string tests 7620s ok - glib/string.test 7620s # Running test: glib/convert.test 7620s TAP version 14 7620s # random seed: R02S9a1af5ce7a131d7697ee9426591bd503 7620s 1..14 7620s # Start of conversion tests 7620s ok 1 /conversion/no-conv 7620s ok 2 /conversion/iconv-state 7620s ok 3 /conversion/illegal-sequence 7620s ok 4 /conversion/byte-order 7620s ok 5 /conversion/unicode 7620s ok 6 /conversion/filename-utf8 7620s ok 7 /conversion/filename-display 7620s ok 8 /conversion/convert-embedded-nul 7620s # Start of locale-to-utf8 tests 7620s ok 9 /conversion/locale-to-utf8/embedded-nul 7620s # Start of embedded-nul tests 7620s # Start of subprocess tests 7620s # End of subprocess tests 7620s # End of embedded-nul tests 7620s # End of locale-to-utf8 tests 7620s # Start of locale-from-utf8 tests 7620s ok 10 /conversion/locale-from-utf8/embedded-nul 7620s # Start of embedded-nul tests 7620s # Start of subprocess tests 7620s # End of subprocess tests 7620s # End of embedded-nul tests 7620s # End of locale-from-utf8 tests 7620s # Start of filename-to-utf8 tests 7621s ok 11 /conversion/filename-to-utf8/embedded-nul 7621s # Start of embedded-nul tests 7621s # Start of subprocess tests 7621s # End of subprocess tests 7621s # End of embedded-nul tests 7621s # End of filename-to-utf8 tests 7621s # Start of filename-from-utf8 tests 7621s ok 12 /conversion/filename-from-utf8/embedded-nul 7621s # Start of embedded-nul tests 7621s # Start of subprocess tests 7621s # End of subprocess tests 7621s # End of embedded-nul tests 7621s # End of filename-from-utf8 tests 7621s # Start of filename-from-uri tests 7621s ok 13 /conversion/filename-from-uri/query-is-ignored 7621s ok 14 /conversion/filename-from-uri/fragment-is-ignored 7621s # End of filename-from-uri tests 7621s # End of conversion tests 7621s ok - glib/convert.test 7621s # Running test: glib/markup-subparser.test 7621s TAP version 14 7621s # random seed: R02Scf7bec16783388ad80f6397f59ba3b97 7621s 1..14 7621s # Start of glib tests 7621s # Start of markup tests 7621s # Start of subparser tests 7621s # Start of success tests 7621s ok 1 /glib/markup/subparser/success/0 7621s ok 2 /glib/markup/subparser/success/1 7621s ok 3 /glib/markup/subparser/success/2 7621s ok 4 /glib/markup/subparser/success/3 7621s ok 5 /glib/markup/subparser/success/4 7621s ok 6 /glib/markup/subparser/success/5 7621s ok 7 /glib/markup/subparser/success/6 7621s # End of success tests 7621s # Start of failure tests 7621s ok 8 /glib/markup/subparser/failure/0 7621s ok 9 /glib/markup/subparser/failure/1 7621s ok 10 /glib/markup/subparser/failure/2 7621s ok 11 /glib/markup/subparser/failure/3 7621s ok 12 /glib/markup/subparser/failure/4 7621s ok 13 /glib/markup/subparser/failure/5 7621s ok 14 /glib/markup/subparser/failure/6 7621s # End of failure tests 7621s # End of subparser tests 7621s # End of markup tests 7621s # End of glib tests 7621s ok - glib/markup-subparser.test 7621s # Running test: glib/appmonitor.test 7621s TAP version 14 7621s # random seed: R02S3560f7088ee43a09682ac85627ad039e 7621s 1..1 7621s # Start of monitor tests 7621s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/home 7621s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/cache 7621s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_ECB252/monitor/app/.dirs/system-config2 7621s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/config 7621s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_ECB252/monitor/app/.dirs/system-data2 7621s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/data 7621s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/state 7621s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_ECB252/monitor/app/.dirs/runtime 7621s # Using data directory: /tmp/test_appmonitor_ECB252/monitor/app/.dirs/data 7622s ok 1 /monitor/app 7622s # End of monitor tests 7622s ok - glib/appmonitor.test 7622s # Running test: glib/cxx.test 7622s TAP version 14 7622s # random seed: R02S4dcd72f6983885f0be76ef0d1954bd58 7622s 1..2 7622s # Start of gtask tests 7622s # 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. 7622s ok 1 /gtask/name 7622s # Start of name tests 7622s # 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. 7622s ok 2 /gtask/name/macro-wrapper 7622s # End of name tests 7622s # End of gtask tests 7622s ok - glib/cxx.test 7622s # Running test: glib/hostutils.test 7622s TAP version 14 7622s # random seed: R02S4cf08fb9a50bf39fc1d72d90ca31df38 7622s 1..3 7622s # Start of hostutils tests 7622s ok 1 /hostutils/to_ascii 7622s ok 2 /hostutils/to_unicode 7622s ok 3 /hostutils/is_ip_addr 7622s # End of hostutils tests 7622s ok - glib/hostutils.test 7622s # Running test: glib/win32-appinfo.test 7623s TAP version 14 7623s # random seed: R02S58d23478f484220d4b7e9ae5289c5cc1 7623s 1..5 7623s # Start of appinfo tests 7623s ok 1 /appinfo/utf16-strfuncs 7623s ok 2 /appinfo/win32-extract-executable 7623s ok 3 /appinfo/win32-rundll32-fixup 7623s ok 4 /appinfo/win32-parse-filename 7623s ok 5 /appinfo/win32-utf16-conversion-fail 7623s # Start of subprocess tests 7623s # End of subprocess tests 7623s # End of appinfo tests 7623s ok - glib/win32-appinfo.test 7623s # Running test: glib/macros-c-89.test 7623s TAP version 14 7623s # random seed: R02Se9fecdca3f2778b2ae9de659170e0cb8 7623s 1..4 7623s # Start of C tests 7623s ok 1 /C/standard-89 7623s # End of C tests 7623s # Start of alignof tests 7623s ok 2 /alignof/fallback 7623s # End of alignof tests 7623s # Start of assert tests 7623s ok 3 /assert/static 7623s # End of assert tests 7623s # Start of struct tests 7623s ok 4 /struct/sizeof_member 7623s # End of struct tests 7623s ok - glib/macros-c-89.test 7623s # Running test: glib/bitlock.test 7623s TAP version 14 7623s # random seed: R02S0150b5a99a7cd3fbdd9e89f898617bfd 7623s 1..1 7623s # Start of bitlock tests 7623s # Start of performance tests 7623s # max perf: iterations per second 7623s ok 1 /bitlock/performance/uncontended 7623s # End of performance tests 7623s # End of bitlock tests 7623s ok - glib/bitlock.test 7623s # Running test: glib/hmac.test 7624s TAP version 14 7624s # random seed: R02Sac3f483a8866a9891f46de55ec56099d 7624s 1..37 7624s # Start of hmac tests 7624s ok 1 /hmac/sha1-1 7624s ok 2 /hmac/sha1-2 7624s ok 3 /hmac/sha1-3 7624s ok 4 /hmac/sha1-4 7624s ok 5 /hmac/sha1-5 7624s ok 6 /hmac/sha1-6 7624s ok 7 /hmac/sha1-7 7624s ok 8 /hmac/sha256-1 7624s ok 9 /hmac/sha256-2 7624s ok 10 /hmac/sha256-3 7624s ok 11 /hmac/sha256-4 7624s ok 12 /hmac/sha256-5 7624s ok 13 /hmac/sha256-6 7624s ok 14 /hmac/sha384-1 7624s ok 15 /hmac/sha384-2 7624s ok 16 /hmac/sha384-3 7624s ok 17 /hmac/sha384-4 7624s ok 18 /hmac/sha384-5 7624s ok 19 /hmac/sha384-6 7624s ok 20 /hmac/sha512-1 7624s ok 21 /hmac/sha512-2 7624s ok 22 /hmac/sha512-3 7624s ok 23 /hmac/sha512-4 7624s ok 24 /hmac/sha512-5 7624s ok 25 /hmac/sha512-6 7624s ok 26 /hmac/md5-1 7624s ok 27 /hmac/md5-2 7624s ok 28 /hmac/md5-3 7624s ok 29 /hmac/md5-4 7624s ok 30 /hmac/md5-5 7624s ok 31 /hmac/md5-6 7624s ok 32 /hmac/md5-7 7624s ok 33 /hmac/ref-unref 7624s ok 34 /hmac/copy 7624s ok - glib/hmac.test 7624s ok 35 /hmac/for-data 7624s ok 36 /hmac/for-string 7624s ok 37 /hmac/for-bytes 7624s # End of hmac tests 7624s # Running test: glib/genmarshal.py.test 7624s # Executing: glib/genmarshal.py.test 7629s # Executing: glib/genmarshal.py.test 7630s TAP version 13 7630s ok 1 __main__.TestGenmarshal.test_empty_list 7630s # glib-genmarshal: /usr/bin/glib-genmarshal 7630s # tmpdir: /tmp/tmpibrktjwb 7630s # /tmp/tmpibrktjwb/tmpl1zyygys.list: 7630s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpibrktjwb/tmpl1zyygys.list', '--header', '--quiet'] 7630s # Return code: 0 7630s # Output: 7630s # /* 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. */ 7630s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7630s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7630s # 7630s # #include 7630s # 7630s # G_BEGIN_DECLS 7630s # 7630s # 7630s # G_END_DECLS 7630s # 7630s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 7630s # Error: 7630s # 7630s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpibrktjwb/tmpl1zyygys.list', '--body', '--quiet'] 7630s # Return code: 0 7630s # Output: 7630s # /* 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. */ 7630s # #include 7630s # 7630s # #ifdef G_ENABLE_DEBUG 7630s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7630s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7630s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7630s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7630s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7630s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7630s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7630s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7630s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7630s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7630s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7630s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7630s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7630s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7630s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7630s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7630s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7630s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7630s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7630s # #else /* !G_ENABLE_DEBUG */ 7630s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7630s # * Do not access GValues directly in your code. Instead, use the 7630s # * g_value_get_*() functions 7630s # */ 7630s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7630s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7630s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7630s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7630s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7630s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7630s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7630s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7630s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7630s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7630s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7630s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7630s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7630s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7630s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7630s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7630s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7630s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7630s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7630s # #endif /* !G_ENABLE_DEBUG */ 7630s # Error: 7631s ok 2 __main__.TestGenmarshal.test_help 7631s # glib-genmarshal: /usr/bin/glib-genmarshal 7631s # tmpdir: /tmp/tmpadpetfzh 7631s # Running: ['/usr/bin/glib-genmarshal', '--help'] 7631s # Return code: 0 7631s # Output: 7631s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 7631s # [--internal] [--valist-marshallers] [-v] 7631s # [--g-fatal-warnings] [--include-header [HEADER]] 7631s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 7631s # [--prototypes] [--header] [--body] [--stdinc | 7631s # --nostdinc] [--quiet | --verbose] 7631s # [FILE ...] 7631s # 7631s # Generate signal marshallers for GObject 7631s # 7631s # positional arguments: 7631s # FILE Files with lists of marshallers to generate, or "-" 7631s # for standard input 7631s # 7631s # options: 7631s # -h, --help show this help message and exit 7631s # --prefix STRING Specify marshaller prefix 7631s # --output FILE Write output into the specified file 7631s # --skip-source Skip source location comments 7631s # --internal Mark generated functions as internal 7631s # --valist-marshallers Generate va_list marshallers 7631s # -v, --version Print version information, and exit 7631s # --g-fatal-warnings Make warnings fatal 7631s # --include-header [HEADER] 7631s # Include the specified header in the body 7631s # --pragma-once Use "pragma once" as the inclusion guard 7631s # -D CPP_DEFINES Pre-processor define 7631s # -U CPP_UNDEFINES Pre-processor undefine 7631s # --prototypes Generate the marshallers prototype in the C code 7631s # --header Generate C headers 7631s # --body Generate C code 7631s # --stdinc Include standard marshallers 7631s # --nostdinc Use standard marshallers 7631s # --quiet Only print warnings and errors 7631s # --verbose Be verbose, and include debugging information 7631s # Error: 7633s ok 3 __main__.TestGenmarshal.test_no_args 7633s # glib-genmarshal: /usr/bin/glib-genmarshal 7633s # tmpdir: /tmp/tmpawd4cgok 7633s # Running: ['/usr/bin/glib-genmarshal'] 7633s # Return code: 0 7633s # Output: 7633s # 7633s # Error: 7634s # Executing: glib/genmarshal.py.test 7635s ok 4 __main__.TestGenmarshal.test_void_boolean 7635s # glib-genmarshal: /usr/bin/glib-genmarshal 7635s # tmpdir: /tmp/tmp2it86gm7 7635s # /tmp/tmp2it86gm7/tmpiwxvngni.list: VOID:BOOLEAN 7635s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp2it86gm7/tmpiwxvngni.list', '--header', '--quiet'] 7635s # Return code: 0 7635s # Output: 7635s # /* 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. */ 7635s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7635s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7635s # 7635s # #include 7635s # 7635s # G_BEGIN_DECLS 7635s # 7635s # /* VOID:BOOLEAN (/tmp/tmp2it86gm7/tmpiwxvngni.list:1) */ 7635s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 7635s # 7635s # 7635s # G_END_DECLS 7635s # 7635s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 7635s # Error: 7635s # 7635s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp2it86gm7/tmpiwxvngni.list', '--body', '--quiet'] 7635s # Return code: 0 7635s # Output: 7635s # /* 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. */ 7635s # #include 7635s # 7635s # #ifdef G_ENABLE_DEBUG 7635s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7635s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7635s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7635s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7635s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7635s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7635s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7635s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7635s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7635s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7635s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7635s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7635s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7635s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7635s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7635s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7635s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7635s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7635s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7635s # #else /* !G_ENABLE_DEBUG */ 7635s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7635s # * Do not access GValues directly in your code. Instead, use the 7635s # * g_value_get_*() functions 7635s # */ 7635s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7635s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7635s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7635s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7635s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7635s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7635s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7635s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7635s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7635s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7635s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7635s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7635s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7635s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7635s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7635s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7635s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7635s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7635s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7635s # #endif /* !G_ENABLE_DEBUG */ 7635s # Error: 7637s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 7637s # glib-genmarshal: /usr/bin/glib-genmarshal 7637s # tmpdir: /tmp/tmp586q0quu 7637s # /tmp/tmp586q0quu/tmpt2e1_nh4.list: VOID:BOOLEAN,INT64 7637s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp586q0quu/tmpt2e1_nh4.list', '--header', '--quiet'] 7637s # Return code: 0 7637s # Output: 7637s # /* 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. */ 7637s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7637s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7637s # 7637s # #include 7637s # 7637s # G_BEGIN_DECLS 7637s # 7637s # /* VOID:BOOLEAN,INT64 (/tmp/tmp586q0quu/tmpt2e1_nh4.list:1) */ 7637s # extern 7637s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 7637s # GValue *return_value, 7637s # guint n_param_values, 7637s # const GValue *param_values, 7637s # gpointer invocation_hint, 7637s # gpointer marshal_data); 7637s # 7637s # 7637s # G_END_DECLS 7637s # 7637s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 7637s # Error: 7637s # 7637s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp586q0quu/tmpt2e1_nh4.list', '--body', '--quiet'] 7637s # Return code: 0 7637s # Output: 7637s # /* 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. */ 7637s # #include 7637s # 7637s # #ifdef G_ENABLE_DEBUG 7637s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7637s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7637s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7637s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7637s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7637s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7637s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7637s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7637s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7637s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7637s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7637s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7637s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7637s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7637s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7637s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7637s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7637s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7637s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7637s # #else /* !G_ENABLE_DEBUG */ 7637s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7637s # * Do not access GValues directly in your code. Instead, use the 7637s # * g_value_get_*() functions 7637s # */ 7637s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7637s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7637s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7637s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7637s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7637s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7637s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7637s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7637s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7637s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7637s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7637s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7637s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7637s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7637s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7637s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7637s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7637s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7637s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7637s # #endif /* !G_ENABLE_DEBUG */ 7637s # 7637s # /* VOID:BOOLEAN,INT64 (/tmp/tmp586q0quu/tmpt2e1_nh4.list:1) */ 7637s # void 7637s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 7637s # GValue *return_value G_GNUC_UNUSED, 7637s # guint n_param_values, 7637s # const GValue *param_values, 7637s # gpointer invocation_hint G_GNUC_UNUSED, 7637s # gpointer marshal_data) 7637s # { 7637s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 7637s # gboolean arg1, 7637s # gint64 arg2, 7637s # gpointer data2); 7637s # GCClosure *cc = (GCClosure *) closure; 7637s # gpointer data1, data2; 7637s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 7637s # 7637s # g_return_if_fail (n_param_values == 3); 7637s # 7637s # if (G_CCLOSURE_SWAP_DATA (closure)) 7637s # { 7637s # data1 = closure->data; 7637s # data2 = g_value_peek_pointer (param_values + 0); 7637s # } 7637s # else 7637s # { 7637s # data1 = g_value_peek_pointer (param_values + 0); 7637s # data2 = closure->data; 7637s # } 7637s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 7637s # 7637s # callback (data1, 7637s # g_marshal_value_peek_boolean (param_values + 1), 7637s # g_marshal_value_peek_int64 (param_values + 2), 7637s # data2); 7637s # } 7637s # Error: 7639s # Executing: glib/genmarshal.py.test 7640s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 7640s # glib-genmarshal: /usr/bin/glib-genmarshal 7640s # tmpdir: /tmp/tmpzli6hwnn 7640s # /tmp/tmpzli6hwnn/tmpbrzdz_yo.list: VOID:PARAM 7640s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpzli6hwnn/tmpbrzdz_yo.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 7640s # Return code: 0 7640s # Output: 7640s # /* 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. */ 7640s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7640s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7640s # 7640s # G_BEGIN_DECLS 7640s # 7640s # /* VOID:PARAM (/tmp/tmpzli6hwnn/tmpbrzdz_yo.list:1) */ 7640s # extern 7640s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 7640s # GValue *return_value, 7640s # guint n_param_values, 7640s # const GValue *param_values, 7640s # gpointer invocation_hint, 7640s # gpointer marshal_data); 7640s # extern 7640s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 7640s # GValue *return_value, 7640s # gpointer instance, 7640s # va_list args, 7640s # gpointer marshal_data, 7640s # int n_params, 7640s # GType *param_types); 7640s # 7640s # 7640s # G_END_DECLS 7640s # 7640s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 7640s # Error: 7640s # 7640s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpzli6hwnn/tmpbrzdz_yo.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 7640s # Return code: 0 7640s # Output: 7640s # /* 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. */ 7640s # #ifdef G_ENABLE_DEBUG 7640s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7640s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7640s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7640s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7640s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7640s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7640s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7640s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7640s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7640s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7640s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7640s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7640s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7640s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7640s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7640s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7640s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7640s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7640s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7640s # #else /* !G_ENABLE_DEBUG */ 7640s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7640s # * Do not access GValues directly in your code. Instead, use the 7640s # * g_value_get_*() functions 7640s # */ 7640s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7640s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7640s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7640s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7640s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7640s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7640s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7640s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7640s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7640s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7640s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7640s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7640s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7640s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7640s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7640s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7640s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7640s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7640s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7640s # #endif /* !G_ENABLE_DEBUG */ 7640s # 7640s # /* VOID:PARAM (/tmp/tmpzli6hwnn/tmpbrzdz_yo.list:1) */ 7640s # void 7640s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 7640s # GValue *return_value G_GNUC_UNUSED, 7640s # guint n_param_values, 7640s # const GValue *param_values, 7640s # gpointer invocation_hint G_GNUC_UNUSED, 7640s # gpointer marshal_data) 7640s # { 7640s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 7640s # gpointer arg1, 7640s # gpointer data2); 7640s # GCClosure *cc = (GCClosure *) closure; 7640s # gpointer data1, data2; 7640s # GMarshalFunc_VOID__PARAM callback; 7640s # 7640s # g_return_if_fail (n_param_values == 2); 7640s # 7640s # if (G_CCLOSURE_SWAP_DATA (closure)) 7640s # { 7640s # data1 = closure->data; 7640s # data2 = g_value_peek_pointer (param_values + 0); 7640s # } 7640s # else 7640s # { 7640s # data1 = g_value_peek_pointer (param_values + 0); 7640s # data2 = closure->data; 7640s # } 7640s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 7640s # 7640s # callback (data1, 7640s # g_marshal_value_peek_param (param_values + 1), 7640s # data2); 7640s # } 7640s # 7640s # void 7640s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 7640s # GValue *return_value G_GNUC_UNUSED, 7640s # gpointer instance, 7640s # va_list args, 7640s # gpointer marshal_data, 7640s # int n_params, 7640s # GType *param_types) 7640s # { 7640s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 7640s # gpointer arg1, 7640s # gpointer data2); 7640s # GCClosure *cc = (GCClosure *) closure; 7640s # gpointer data1, data2; 7640s # GMarshalFunc_VOID__PARAM callback; 7640s # gpointer arg0; 7640s # va_list args_copy; 7640s # 7640s # va_copy (args_copy, args); 7640s # arg0 = (gpointer) va_arg (args_copy, gpointer); 7640s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 7640s # arg0 = g_param_spec_ref (arg0); 7640s # va_end (args_copy); 7640s # 7640s # 7640s # if (G_CCLOSURE_SWAP_DATA (closure)) 7640s # { 7640s # data1 = closure->data; 7640s # data2 = instance; 7640s # } 7640s # else 7640s # { 7640s # data1 = instance; 7640s # data2 = closure->data; 7640s # } 7640s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 7640s # 7640s # callback (data1, 7640s # arg0, 7640s # data2); 7640s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 7640s # g_param_spec_unref (arg0); 7640s # } 7640s # Error: 7643s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 7643s # glib-genmarshal: /usr/bin/glib-genmarshal 7643s # tmpdir: /tmp/tmpjz2tfosw 7643s # /tmp/tmpjz2tfosw/tmpr0xgfg92.list: VOID:STRING 7643s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpjz2tfosw/tmpr0xgfg92.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 7643s # Return code: 0 7643s # Output: 7643s # /* 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. */ 7643s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7643s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7643s # 7643s # G_BEGIN_DECLS 7643s # 7643s # /* VOID:STRING (/tmp/tmpjz2tfosw/tmpr0xgfg92.list:1) */ 7643s # extern 7643s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 7643s # GValue *return_value, 7643s # guint n_param_values, 7643s # const GValue *param_values, 7643s # gpointer invocation_hint, 7643s # gpointer marshal_data); 7643s # extern 7643s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 7643s # GValue *return_value, 7643s # gpointer instance, 7643s # va_list args, 7643s # gpointer marshal_data, 7643s # int n_params, 7643s # GType *param_types); 7643s # 7643s # 7643s # G_END_DECLS 7643s # 7643s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 7643s # Error: 7643s # 7643s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpjz2tfosw/tmpr0xgfg92.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 7643s # Return code: 0 7643s # Output: 7643s # /* 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. */ 7643s # #ifdef G_ENABLE_DEBUG 7643s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7643s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7643s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7643s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7643s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7643s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7643s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7643s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7643s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7643s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7643s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7643s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7643s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7643s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7643s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7643s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7643s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7643s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7643s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7643s # #else /* !G_ENABLE_DEBUG */ 7643s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7643s # * Do not access GValues directly in your code. Instead, use the 7643s # * g_value_get_*() functions 7643s # */ 7643s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7643s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7643s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7643s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7643s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7643s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7643s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7643s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7643s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7643s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7643s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7643s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7643s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7643s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7643s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7643s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7643s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7643s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7643s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7643s # #endif /* !G_ENABLE_DEBUG */ 7643s # 7643s # /* VOID:STRING (/tmp/tmpjz2tfosw/tmpr0xgfg92.list:1) */ 7643s # void 7643s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 7643s # GValue *return_value G_GNUC_UNUSED, 7643s # guint n_param_values, 7643s # const GValue *param_values, 7643s # gpointer invocation_hint G_GNUC_UNUSED, 7643s # gpointer marshal_data) 7643s # { 7643s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 7643s # gpointer arg1, 7643s # gpointer data2); 7643s # GCClosure *cc = (GCClosure *) closure; 7643s # gpointer data1, data2; 7643s # GMarshalFunc_VOID__STRING callback; 7643s # 7643s # g_return_if_fail (n_param_values == 2); 7643s # 7643s # if (G_CCLOSURE_SWAP_DATA (closure)) 7643s # { 7643s # data1 = closure->data; 7643s # data2 = g_value_peek_pointer (param_values + 0); 7643s # } 7643s # else 7643s # { 7643s # data1 = g_value_peek_pointer (param_values + 0); 7643s # data2 = closure->data; 7643s # } 7643s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 7643s # 7643s # callback (data1, 7643s # g_marshal_value_peek_string (param_values + 1), 7643s # data2); 7643s # } 7643s # 7643s # void 7643s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 7643s # GValue *return_value G_GNUC_UNUSED, 7643s # gpointer instance, 7643s # va_list args, 7643s # gpointer marshal_data, 7643s # int n_params, 7643s # GType *param_types) 7643s # { 7643s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 7643s # gpointer arg1, 7643s # gpointer data2); 7643s # GCClosure *cc = (GCClosure *) closure; 7643s # gpointer data1, data2; 7643s # GMarshalFunc_VOID__STRING callback; 7643s # gpointer arg0; 7643s # va_list args_copy; 7643s # 7643s # va_copy (args_copy, args); 7643s # arg0 = (gpointer) va_arg (args_copy, gpointer); 7643s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 7643s # arg0 = g_strdup (arg0); 7643s # va_end (args_copy); 7643s # 7643s # 7643s # if (G_CCLOSURE_SWAP_DATA (closure)) 7643s # { 7643s # data1 = closure->data; 7643s # data2 = instance; 7643s # } 7643s # else 7643s # { 7643s # data1 = instance; 7643s # data2 = closure->data; 7643s # } 7643s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 7643s # 7643s # callback (data1, 7643s # arg0, 7643s # data2); 7643s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 7643s # g_free (arg0); 7643s # } 7643s # Error: 7644s # Executing: glib/genmarshal.py.test 7646s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 7646s # glib-genmarshal: /usr/bin/glib-genmarshal 7646s # tmpdir: /tmp/tmpxqq4s6q6 7646s # /tmp/tmpxqq4s6q6/tmpxascs2ox.list: VOID:VARIANT 7646s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpxqq4s6q6/tmpxascs2ox.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 7646s # Return code: 0 7646s # Output: 7646s # /* 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. */ 7646s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7646s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 7646s # 7646s # G_BEGIN_DECLS 7646s # 7646s # /* VOID:VARIANT (/tmp/tmpxqq4s6q6/tmpxascs2ox.list:1) */ 7646s # extern 7646s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 7646s # GValue *return_value, 7646s # guint n_param_values, 7646s # const GValue *param_values, 7646s # gpointer invocation_hint, 7646s # gpointer marshal_data); 7646s # extern 7646s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 7646s # GValue *return_value, 7646s # gpointer instance, 7646s # va_list args, 7646s # gpointer marshal_data, 7646s # int n_params, 7646s # GType *param_types); 7646s # 7646s # 7646s # G_END_DECLS 7646s # 7646s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 7646s # Error: 7646s # 7646s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpxqq4s6q6/tmpxascs2ox.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 7646s # Return code: 0 7646s # Output: 7646s # /* 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. */ 7646s # #ifdef G_ENABLE_DEBUG 7646s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 7646s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 7646s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 7646s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 7646s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 7646s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 7646s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 7646s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 7646s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 7646s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 7646s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 7646s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 7646s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 7646s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 7646s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 7646s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 7646s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 7646s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 7646s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 7646s # #else /* !G_ENABLE_DEBUG */ 7646s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 7646s # * Do not access GValues directly in your code. Instead, use the 7646s # * g_value_get_*() functions 7646s # */ 7646s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 7646s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 7646s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 7646s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 7646s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 7646s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 7646s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 7646s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 7646s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 7646s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 7646s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 7646s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 7646s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 7646s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 7646s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 7646s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 7646s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 7646s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 7646s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 7646s # #endif /* !G_ENABLE_DEBUG */ 7646s # 7646s # /* VOID:VARIANT (/tmp/tmpxqq4s6q6/tmpxascs2ox.list:1) */ 7646s # void 7646s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 7646s # GValue *return_value G_GNUC_UNUSED, 7646s # guint n_param_values, 7646s # const GValue *param_values, 7646s # gpointer invocation_hint G_GNUC_UNUSED, 7646s # gpointer marshal_data) 7646s # { 7646s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 7646s # gpointer arg1, 7646s # gpointer data2); 7646s # GCClosure *cc = (GCClosure *) closure; 7646s # gpointer data1, data2; 7646s # GMarshalFunc_VOID__VARIANT callback; 7646s # 7646s # g_return_if_fail (n_param_values == 2); 7646s # 7646s # if (G_CCLOSURE_SWAP_DATA (closure)) 7646s # { 7646s # data1 = closure->data; 7646s # data2 = g_value_peek_pointer (param_values + 0); 7646s # } 7646s # else 7646s # { 7646s # data1 = g_value_peek_pointer (param_values + 0); 7646s # data2 = closure->data; 7646s # } 7646s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 7646s # 7646s # callback (data1, 7646s # g_marshal_value_peek_variant (param_values + 1), 7646s # data2); 7646s # } 7646s # 7646s # void 7646s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 7646s # GValue *return_value G_GNUC_UNUSED, 7646s # gpointer instance, 7646s # va_list args, 7646s # gpointer marshal_data, 7646s # int n_params, 7646s # GType *param_types) 7646s # { 7646s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 7646s # gpointer arg1, 7646s # gpointer data2); 7646s # GCClosure *cc = (GCClosure *) closure; 7646s # gpointer data1, data2; 7646s # GMarshalFunc_VOID__VARIANT callback; 7646s # gpointer arg0; 7646s # va_list args_copy; 7646s # 7646s # va_copy (args_copy, args); 7646s # arg0 = (gpointer) va_arg (args_copy, gpointer); 7646s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 7646s # arg0 = g_variant_ref_sink (arg0); 7646s # va_end (args_copy); 7646s # 7646s # 7646s # if (G_CCLOSURE_SWAP_DATA (closure)) 7646s # { 7646s # data1 = closure->data; 7646s # data2 = instance; 7646s # } 7646s # else 7646s # { 7646s # data1 = instance; 7646s # data2 = closure->data; 7646s # } 7646s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 7646s # 7646s # callback (data1, 7646s # arg0, 7646s # data2); 7646s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 7646s # g_variant_unref (arg0); 7646s # } 7646s # Error: 7646s 1..8 7646s ok - glib/genmarshal.py.test 7646s # Running test: glib/sandbox.test 7646s TAP version 14 7646s # random seed: R02Se84f49362b3543ef5aa43ef96cf9f1f4 7646s 1..4 7646s # Start of sandbox tests 7646s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/home 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/cache 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_JHWU52/sandbox/none/.dirs/system-config2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/config 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_JHWU52/sandbox/none/.dirs/system-data2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/data 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/state 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_JHWU52/sandbox/none/.dirs/runtime 7646s ok 1 /sandbox/none 7646s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/home 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/cache 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/system-config2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/config 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/system-data2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/data 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/state 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_JHWU52/sandbox/snap/.dirs/runtime 7646s # Created snap.yaml in /tmp/test_sandbox_JHWU52/snap/current/meta/snap.yaml 7646s ok 2 /sandbox/snap 7646s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/home 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/cache 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/system-config2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/config 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/system-data2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/data 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/state 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_JHWU52/sandbox/classic-snap/.dirs/runtime 7646s # Created snap.yaml in /tmp/test_sandbox_JHWU52/snap/current/meta/snap.yaml 7646s ok 3 /sandbox/classic-snap 7646s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/home 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/cache 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/system-config2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/config 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/system-data2 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/data 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/state 7646s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/runtime 7646s # Creating .flatpak-info in /tmp/test_sandbox_JHWU52/sandbox/flatpak/.dirs/runtime/.flatpak-info 7646s ok 4 /sandbox/flatpak 7646s # End of sandbox tests 7646s ok - glib/sandbox.test 7646s # Running test: glib/thread-pool.test 7646s TAP version 14 7646s # random seed: R02S43b23314c1f18b0c1c8378c5c562dac7 7646s 1..5 7646s # Start of thread_pool tests 7646s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 7646s ok 1 /thread_pool/shared 7646s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 7646s ok 2 /thread_pool/exclusive 7646s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 7646s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 7646s ok 3 /thread_pool/create_shared_after_exclusive 7646s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 7646s ok 4 /thread_pool/create_full 7646s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 7646s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 7647s ok 5 /thread_pool/create_exclusive_after_shared 7647s # End of thread_pool tests 7647s ok - glib/thread-pool.test 7647s # Running test: glib/properties-refcount3.test 7647s TAP version 14 7647s # random seed: R02Sa740c8c9a90ee9508c732d93d8416a7c 7647s 1..1 7647s # Start of gobject tests 7647s # Start of refcount tests 7649s # Executing: glib/properties-refcount3.test 7654s # Executing: glib/properties-refcount3.test 7659s # Executing: glib/properties-refcount3.test 7664s # Executing: glib/properties-refcount3.test 7669s # Executing: glib/properties-refcount3.test 7674s # Executing: glib/properties-refcount3.test 7677s # 7677s # stopping 7677s # 7677s # stopped 7677s # 7677s # 2929138 58404 7677s # 7677s ok 1 /gobject/refcount/properties-3 7677s # slow test /gobject/refcount/properties-3 executed in 30.04 secs 7677s # End of refcount tests 7677s # End of gobject tests 7677s ok - glib/properties-refcount3.test 7677s # Running test: glib/memory-monitor.test 7677s TAP version 14 7677s # random seed: R02S8d154ca8e317712f3e67c3c0bb722f62 7677s 1..1 7677s # Start of memory-monitor tests 7677s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 7677s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ?gio-memory-monitor? 7677s ok 1 /memory-monitor/default 7677s # End of memory-monitor tests 7677s ok - glib/memory-monitor.test 7677s # Running test: glib/application-command-line.test 7678s TAP version 14 7678s # random seed: R02S598d9418c85b39a885e5f6ba8f41b6f8 7678s 1..1 7678s # Start of application-command-line tests 7678s ok 1 /application-command-line/basic-properties 7678s # End of application-command-line tests 7678s ok - glib/application-command-line.test 7678s # Running test: glib/defaultiface.test 7678s TAP version 14 7678s # random seed: R02Sd5bf1db6adeca8d474dd93fc2b6eb9cf 7678s 1..2 7678s # Start of gobject tests 7678s ok 1 /gobject/static-iface 7678s ok 2 /gobject/dynamic-iface 7678s # End of gobject tests 7678s ok - glib/defaultiface.test 7678s # Running test: glib/socket-address.test 7678s TAP version 14 7678s # random seed: R02S59270fb6c8ddc2a2adb78a7eafa76b68 7678s 1..2 7678s # Start of socket tests 7678s # Start of address tests 7678s # Start of unix tests 7678s ok 1 /socket/address/unix/construct 7678s ok 2 /socket/address/unix/to-string 7678s # End of unix tests 7678s # End of address tests 7678s # End of socket tests 7678s ok - glib/socket-address.test 7678s # Running test: glib/gdbus-proxy-threads.test 7678s TAP version 14 7678s # random seed: R02Sd60a97c529d3cc6b578ffc3b56f7b1e0 7678s 1..1 7678s # Start of gdbus tests 7678s # Start of proxy tests 7678s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/home 7678s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/cache 7678s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/system-config2 7678s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/config 7678s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/system-data2 7678s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/data 7678s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/state 7678s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_T4MA62/gdbus/proxy/vs-threads/.dirs/runtime 7679s # Executing: glib/gdbus-proxy-threads.test 7684s # Executing: glib/gdbus-proxy-threads.test 7689s # Executing: glib/gdbus-proxy-threads.test 7694s # Executing: glib/gdbus-proxy-threads.test 7699s # Executing: glib/gdbus-proxy-threads.test 7704s # Executing: glib/gdbus-proxy-threads.test 7708s ok 1 /gdbus/proxy/vs-threads 7708s # slow test /gdbus/proxy/vs-threads executed in 30.17 secs 7708s # End of proxy tests 7708s # End of gdbus tests 7709s cleaning up pid 10171 7709s ok - glib/gdbus-proxy-threads.test 7709s # Running test: glib/memory-output-stream.test 7709s TAP version 14 7709s # random seed: R02Se40b3a6c568caf81ad4552c9189ea4f7 7709s 1..10 7709s # Start of memory-output-stream tests 7709s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 7709s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 7709s ok 1 /memory-output-stream/truncate 7709s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 7709s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 7709s ok 2 /memory-output-stream/get-data-size 7709s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 7709s ok 3 /memory-output-stream/properties 7709s ok 4 /memory-output-stream/write-bytes 7709s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 7709s ok 5 /memory-output-stream/write-null 7709s ok 6 /memory-output-stream/writev 7709s ok 7 /memory-output-stream/writev_nonblocking 7709s ok 8 /memory-output-stream/steal_as_bytes 7709s # Start of seek tests 7709s ok 9 /memory-output-stream/seek/fixed 7709s ok 10 /memory-output-stream/seek/resizable 7709s # End of seek tests 7709s # End of memory-output-stream tests 7709s ok - glib/memory-output-stream.test 7709s # Running test: glib/basics-gobject.test 7709s TAP version 14 7709s # random seed: R02Sfc8dcc0d3c056835195e644ea45b741f 7709s 1..1 7709s # Start of gobject tests 7709s # private data during initialization: 54321 == 54321 7709s # MAIN: emit test-signal: 7709s # ::test_signal default_handler called 7709s # ::test_signal default_handler called 7709s # ::test_signal default_handler called 7709s # signal return: "" 7709s # MAIN: call iface print-string on test and derived object: 7709s # Iface-FOO: "iface-string-from-test-type" from 0x556130ba9250 7709s # Iface-BAR: "iface-string-from-derived-type" from 0x556130b9e820 7709s # chaining: 7709s # Iface-FOO: "iface-string-from-derived-type" from 0x556130b9e820 7709s # private data after initialization: 54321 == 54321 7709s ok 1 /gobject/basics 7709s # End of gobject tests 7709s ok - glib/basics-gobject.test 7709s # Running test: glib/flags.test 7709s # Executing: glib/flags.test 7709s TAP version 14 7709s # random seed: R02S8d9f562fcd9b897768aaf9e49b4433c0 7709s 1..1 7709s # Start of gobject tests 7709s # Start of flags tests 7709s ok 1 /gobject/flags/validate 7709s # End of flags tests 7709s # End of gobject tests 7709s ok - glib/flags.test 7709s # Running test: glib/contenttype.test 7710s TAP version 14 7710s # random seed: R02S194bd3187c465b4c58411a9ee0f7c0e7 7710s 1..14 7710s # Start of contenttype tests 7710s ok 1 /contenttype/guess 7710s ok 2 /contenttype/guess_svg_from_data 7710s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 7710s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 7710s ok 5 /contenttype/unknown 7710s ok 6 /contenttype/subtype 7710s ok 7 /contenttype/list 7710s ok 8 /contenttype/executable 7710s ok 9 /contenttype/description 7710s ok 10 /contenttype/icon 7710s ok 11 /contenttype/symbolic-icon 7710s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 7710s ok 12 /contenttype/tree 7710s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 7710s ok 13 /contenttype/tree_invalid_encoding 7710s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 7710s ok 14 /contenttype/test_type_is_a_special_case 7710s # End of contenttype tests 7710s ok - glib/contenttype.test 7710s # Running test: glib/gdbus-export.test 7710s TAP version 14 7710s # random seed: R02S77bd8a2d73ad4e60312dfa48190d1c35 7710s 1..7 7710s # Start of gdbus tests 7710s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/home 7710s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/cache 7710s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/system-config2 7710s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/config 7710s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/system-data2 7710s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/data 7710s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/state 7710s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration/.dirs/runtime 7711s ok 1 /gdbus/object-registration 7711s # slow test /gdbus/object-registration executed in 1.21 secs 7711s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/home 7711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/cache 7711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/system-config2 7711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/config 7711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/system-data2 7711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/data 7711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/state 7711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures/.dirs/runtime 7712s ok 2 /gdbus/object-registration-with-closures 7712s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/home 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/cache 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/system-config2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/config 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/system-data2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/data 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/state 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_9L1T52/gdbus/object-registration-with-closures2/.dirs/runtime 7712s ok 3 /gdbus/object-registration-with-closures2 7712s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/home 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/cache 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/system-config2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/config 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/system-data2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/data 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/state 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_9L1T52/gdbus/registered-interfaces/.dirs/runtime 7712s ok 4 /gdbus/registered-interfaces 7712s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/home 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/cache 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/system-config2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/config 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/system-data2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/data 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/state 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_9L1T52/gdbus/async-properties/.dirs/runtime 7712s ok 5 /gdbus/async-properties 7712s # Start of threaded-unregistration tests 7712s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/home 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/cache 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/system-config2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/config 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/system-data2 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/data 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/state 7712s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/object/.dirs/runtime 7712s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 7712s # /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 7714s # Executing: glib/gdbus-export.test 7719s # Executing: glib/gdbus-export.test 7724s # Executing: glib/gdbus-export.test 7729s # Executing: glib/gdbus-export.test 7734s # Executing: glib/gdbus-export.test 7739s # Executing: glib/gdbus-export.test 7742s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (1000 iterations with unregistration first, 0 with call first); skipping test 7742s # slow test /gdbus/threaded-unregistration/object executed in 29.50 secs 7742s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/home 7742s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/cache 7742s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/system-config2 7742s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/config 7742s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/system-data2 7742s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/data 7742s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/state 7742s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_9L1T52/gdbus/threaded-unregistration/subtree/.dirs/runtime 7742s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 7742s # /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 7744s # Executing: glib/gdbus-export.test 7749s # Executing: glib/gdbus-export.test 7754s # Executing: glib/gdbus-export.test 7759s # Executing: glib/gdbus-export.test 7764s # Executing: glib/gdbus-export.test 7769s # Executing: glib/gdbus-export.test 7772s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (1000 iterations with unregistration first, 0 with call first); skipping test 7772s # slow test /gdbus/threaded-unregistration/subtree executed in 29.95 secs 7772s # End of threaded-unregistration tests 7772s # End of gdbus tests 7772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7772s ok - glib/gdbus-export.test 7772s # Running test: glib/option-context.test 7772s TAP version 14 7772s # random seed: R02S52f53a1dba2caecb5c531de01cbcd247 7772s 1..58 7772s # Start of option tests 7772s ok 1 /option/basic 7772s ok 2 /option/translate 7772s ok 3 /option/strict-posix 7772s # Start of help tests 7772s ok 4 /option/help/options 7772s ok 5 /option/help/no-options 7772s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 7772s ok 6 /option/help/no-help-options 7772s # Usage: 7772s # /usr/libexec/installed-tests/glib/option-context [OPTION?] blabla 7772s # 7772s # Summary 7772s # 7772s # Help Options: 7772s # -h, --help Show help options 7772s # 7772s # Application Options: 7772s # -t, --test=Argument to use in test (deprecated) Test tests 7772s # --test2 Tests also 7772s # 7772s # Description 7772s # 7772s ok 7 /option/help/deprecated 7772s # End of help tests 7772s # Start of group tests 7772s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 7773s ok 8 /option/group/captions 7773s # slow test /option/group/captions executed in 1.14 secs 7773s ok 9 /option/group/main 7773s ok 10 /option/group/error-hook 7773s ok 11 /option/group/parse 7773s # Start of captions tests 7773s # Start of subprocess tests 7773s # End of subprocess tests 7773s # End of captions tests 7773s # End of group tests 7773s # Start of restoration tests 7773s ok 12 /option/restoration/int 7773s ok 13 /option/restoration/string 7773s ok 14 /option/restoration/boolean 7773s # End of restoration tests 7773s # Start of arg tests 7773s ok 15 /option/arg/reverse-string 7773s ok 16 /option/arg/optional-int 7773s # Start of repetition tests 7773s ok 17 /option/arg/repetition/int 7773s ok 18 /option/arg/repetition/string 7773s ok 19 /option/arg/repetition/filename 7773s ok 20 /option/arg/repetition/double 7773s ok 21 /option/arg/repetition/locale 7773s ok 22 /option/arg/repetition/int64 7773s # End of repetition tests 7773s # Start of array tests 7773s ok 23 /option/arg/array/string 7773s # End of array tests 7773s # Start of callback tests 7773s ok 24 /option/arg/callback/string 7773s ok 25 /option/arg/callback/count 7773s ok 26 /option/arg/callback/optional1 7773s ok 27 /option/arg/callback/optional2 7773s ok 28 /option/arg/callback/optional3 7773s ok 29 /option/arg/callback/optional4 7773s ok 30 /option/arg/callback/optional5 7773s ok 31 /option/arg/callback/optional6 7773s ok 32 /option/arg/callback/optional7 7773s ok 33 /option/arg/callback/optional8 7773s # End of callback tests 7773s # Start of remaining tests 7773s ok 34 /option/arg/remaining/callback 7773s ok 35 /option/arg/remaining/callback-false 7773s ok 36 /option/arg/remaining/non-option 7773s ok 37 /option/arg/remaining/separator 7773s ok 38 /option/arg/remaining/array 7773s # End of remaining tests 7773s # Start of ignore tests 7773s ok 39 /option/arg/ignore/long 7773s ok 40 /option/arg/ignore/short 7773s ok 41 /option/arg/ignore/arg 7773s # End of ignore tests 7773s # Start of rest tests 7773s ok 42 /option/arg/rest/non-option 7773s ok 43 /option/arg/rest/separator1 7773s ok 44 /option/arg/rest/separator2 7773s ok 45 /option/arg/rest/separator3 7773s ok 46 /option/arg/rest/separator4 7773s ok 47 /option/arg/rest/separator5 7773s # End of rest tests 7773s # End of arg tests 7773s # Start of context tests 7773s ok 48 /option/context/add 7773s ok 49 /option/context/empty2 7773s ok 50 /option/context/empty3 7773s # End of context tests 7773s # Start of bug tests 7773s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 7773s ok 51 /option/bug/unknown-short 7773s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 7773s ok 52 /option/bug/lonely-dash 7773s ok 53 /option/bug/triple-dash 7773s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 7773s ok 54 /option/bug/missing-arg 7773s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 7773s ok 55 /option/bug/dash-arg 7773s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 7773s ok 56 /option/bug/short-remaining 7773s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 7773s ok 57 /option/bug/double-free 7773s ok 58 /option/bug/double-zero 7773s # End of bug tests 7773s # End of option tests 7773s ok - glib/option-context.test 7773s # Running test: glib/fdo-notification-backend.test 7773s TAP version 14 7773s # random seed: R02S4f0f7032a91a5f72f7ef7216d0becf22 7773s 1..2 7773s # Start of fdo-notification-backend tests 7773s # Test constructing a GFdoNotificationBackend 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s ok 1 /fdo-notification-backend/construction 7774s # slow test /fdo-notification-backend/construction executed in 0.66 secs 7774s # Start of dbus tests 7774s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7774s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7774s # Executing: glib/fdo-notification-backend.test 7775s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7775s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7775s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7775s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7775s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7775s ok 2 /fdo-notification-backend/dbus/activate-action 7775s # slow test /fdo-notification-backend/dbus/activate-action executed in 0.69 secs 7775s # End of dbus tests 7775s # End of fdo-notification-backend tests 7775s ok - glib/fdo-notification-backend.test 7775s # Running test: glib/timer.test 7775s TAP version 14 7775s # random seed: R02S271c606a5196bc8ab88af3d342c058f1 7775s 1..10 7775s # Start of timer tests 7775s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 7775s ok 2 /timer/stop 7775s ok 3 /timer/continue 7775s ok 4 /timer/reset 7775s ok 5 /timer/is_active 7775s # End of timer tests 7775s # Start of timeval tests 7775s ok 6 /timeval/add 7775s ok 7 /timeval/from-iso8601 7775s ok 8 /timeval/to-iso8601 7775s # Start of to-iso8601 tests 7775s ok 9 /timeval/to-iso8601/overflow 7775s # End of to-iso8601 tests 7775s # End of timeval tests 7775s # Start of usleep tests 7775s ok 10 /usleep/with-zero-wait 7775s # End of usleep tests 7775s ok - glib/timer.test 7775s # Running test: glib/search-utils.test 7775s TAP version 14 7775s # random seed: R02S09780a78c87c270266083f07e4ca0123 7775s # GLib-DEBUG: Current user locale: C.UTF-8 7775s 1..6 7775s # Start of search tests 7775s # GLib-DEBUG: Started 7775s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 7775s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 7775s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 7775s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 7775s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 7775s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 7775s ok 1 /search/basic 7775s # GLib-DEBUG: Started 7775s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 7775s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 7775s # GLib-DEBUG: 'ele' - 'élève' should match: OK 7775s # GLib-DEBUG: 'AzaÃs' - 'Azais' should NOT match: OK 7775s # GLib-DEBUG: 'Azais' - 'AzaÃs' should match: OK 7775s ok 2 /search/composed 7775s # GLib-DEBUG: Started 7775s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 7775s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 7775s ok 3 /search/decomposed 7775s # GLib-DEBUG: Started 7775s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 7775s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 7775s ok 4 /search/turkish 7775s # GLib-DEBUG: Started 7775s # GLib-DEBUG: 'jor' - 'J?rgen' should match: OK 7775s # GLib-DEBUG: 'Jo?r' - 'Jorgen' should NOT match: OK 7775s # GLib-DEBUG: 'jor' - 'Jo?rgen' should match: OK 7775s ok 5 /search/c_locale_unicode 7775s # GLib-DEBUG: Started 7775s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 7775s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 7775s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 7775s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 7775s ok 6 /search/multi_words 7775s # End of search tests 7775s ok - glib/search-utils.test 7775s # Running test: glib/gdbus-connection-flush.test 7776s TAP version 14 7776s # random seed: R02S4718efe65bc67dcb2dcc2b920e7df384 7776s 1..2 7776s # Start of gdbus tests 7776s # Start of connection tests 7776s # Start of flush tests 7776s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/home 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/cache 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/system-config2 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/config 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/system-data2 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/data 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/state 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/busy/.dirs/runtime 7776s ok 1 /gdbus/connection/flush/busy 7776s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/home 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/cache 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/system-config2 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/config 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/system-data2 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/data 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/state 7776s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_25TX52/gdbus/connection/flush/idle/.dirs/runtime 7776s ok 2 /gdbus/connection/flush/idle 7776s # End of flush tests 7776s # End of connection tests 7776s # End of gdbus tests 7776s ok - glib/gdbus-connection-flush.test 7776s # Running test: glib/gobject-query.py.test 7778s TAP version 13 7778s ok 1 __main__.TestGobjectQuery.test_froots 7778s # gobject-query: /usr/bin/gobject-query 7778s # tmpdir: /tmp/tmpets9hgq4 7778s # Running: ['/usr/bin/gobject-query', 'froots'] 7778s # Return code: 0 7778s # Output: 7778s # ├void 7778s # ├GInterface 7778s # │ â””GTypePlugin 7778s # ├gchar 7778s # ├guchar 7778s # ├gboolean 7778s # ├gint 7778s # ├guint 7778s # ├glong 7778s # ├gulong 7778s # ├gint64 7778s # ├guint64 7778s # ├GEnum 7778s # ├GFlags 7778s # ├gfloat 7778s # ├gdouble 7778s # ├gchararray 7778s # ├gpointer 7778s # │ â””GType 7778s # ├GBoxed 7778s # │ â””GValueArray 7778s # ├GParam 7778s # │ ├GParamChar 7778s # │ ├GParamUChar 7778s # │ ├GParamBoolean 7778s # │ ├GParamInt 7778s # │ ├GParamUInt 7778s # │ ├GParamLong 7778s # │ ├GParamULong 7778s # │ ├GParamInt64 7778s # │ ├GParamUInt64 7778s # │ ├GParamUnichar 7778s # │ ├GParamEnum 7778s # │ ├GParamFlags 7778s # │ ├GParamFloat 7778s # │ ├GParamDouble 7778s # │ ├GParamString 7778s # │ ├GParamParam 7778s # │ ├GParamBoxed 7778s # │ ├GParamPointer 7778s # │ ├GParamValueArray 7778s # │ ├GParamObject 7778s # │ ├GParamOverride 7778s # │ ├GParamGType 7778s # │ â””GParamVariant 7778s # ├GObject 7778s # â””GVariant 7778s # Error: 7778s ok 2 __main__.TestGobjectQuery.test_help 7778s # gobject-query: /usr/bin/gobject-query 7778s # tmpdir: /tmp/tmpsg5581z6 7778s # Running: ['/usr/bin/gobject-query', '--help'] 7778s # Return code: 0 7778s # Output: 7778s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 7778s # -r specify root type 7778s # -n don't descend type tree 7778s # -h show help 7778s # -b specify indent string 7778s # -i specify incremental indent string 7778s # -s specify line spacing 7778s # qualifiers: 7778s # froots iterate over fundamental roots 7778s # tree print type tree 7778s # Error: 7778s ok 3 __main__.TestGobjectQuery.test_tree 7778s # gobject-query: /usr/bin/gobject-query 7778s # tmpdir: /tmp/tmphoqsg76l 7778s # Running: ['/usr/bin/gobject-query', 'tree'] 7778s # Return code: 0 7778s # Output: 7778s # GObject 7778s # Error: 7779s ok 4 __main__.TestGobjectQuery.test_version 7779s # gobject-query: /usr/bin/gobject-query 7779s # tmpdir: /tmp/tmpvrd92h6r 7779s # Running: ['/usr/bin/gobject-query', '--version'] 7779s # Return code: 0 7779s # Output: 7779s # 2.84.1 7779s # Error: 7779s 1..4 7779s ok - glib/gobject-query.py.test 7779s # Running test: glib/mainloop.test 7779s TAP version 14 7779s # random seed: R02S3c0d8b343ce23aeb19d7ac1c4bf58717 7779s 1..45 7779s # Start of maincontext tests 7779s ok 1 /maincontext/basic 7779s # Executing: glib/mainloop.test 7780s # Add same-priority sources: 611 7780s # Find each source: 46 7781s # Remove in random order: 345 7781s ok 2 /maincontext/nsources_same_priority 7781s # slow test /maincontext/nsources_same_priority executed in 1.51 secs 7781s # Add different-priority sources: 363 7781s # Find each source: 39 7782s # Remove in random order: 294 7782s ok 3 /maincontext/nsources_different_priority 7782s # slow test /maincontext/nsources_different_priority executed in 1.13 secs 7784s # Executing: glib/mainloop.test 7786s # Add sources from threads: 3947 7789s # Executing: glib/mainloop.test 7790s # Remove sources from threads: 3873 7790s ok 4 /maincontext/nsources_threadpool 7790s # slow test /maincontext/nsources_threadpool executed in 7.91 secs 7790s ok 5 /maincontext/source_finalization 7790s # /maincontext/idle-once summary: Test g_idle_add_once() works 7790s ok 6 /maincontext/idle-once 7790s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 7790s ok 7 /maincontext/timeout-once 7790s # Start of source_finalization_from_source tests 7790s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 8 /maincontext/source_finalization_from_source/0 7790s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 9 /maincontext/source_finalization_from_source/1 7790s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 10 /maincontext/source_finalization_from_source/2 7790s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 11 /maincontext/source_finalization_from_source/3 7790s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 12 /maincontext/source_finalization_from_source/4 7790s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 13 /maincontext/source_finalization_from_source/5 7790s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 14 /maincontext/source_finalization_from_source/6 7790s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 15 /maincontext/source_finalization_from_source/7 7790s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 16 /maincontext/source_finalization_from_source/8 7790s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 7790s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 7790s ok 17 /maincontext/source_finalization_from_source/9 7790s # End of source_finalization_from_source tests 7790s # Start of source_finalization_from_dispatch tests 7790s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 7790s ok 18 /maincontext/source_finalization_from_dispatch/0 7790s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 7790s ok 19 /maincontext/source_finalization_from_dispatch/1 7790s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 7790s ok 20 /maincontext/source_finalization_from_dispatch/2 7790s # End of source_finalization_from_dispatch tests 7790s # End of maincontext tests 7790s # Start of mainloop tests 7790s ok 21 /mainloop/basic 7790s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 7790s ok 23 /mainloop/priorities 7790s ok 24 /mainloop/invoke 7790s # slow test /mainloop/invoke executed in 0.51 secs 7792s ok 25 /mainloop/child_sources 7792s # slow test /mainloop/child_sources executed in 1.46 secs 7794s # Executing: glib/mainloop.test 7794s ok 26 /mainloop/recursive_child_sources 7794s # slow test /mainloop/recursive_child_sources executed in 2.79 secs 7794s ok 27 /mainloop/recursive_loop_child_sources 7794s ok 28 /mainloop/swapping_child_sources 7794s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 7794s ok 29 /mainloop/blocked_child_sources 7795s ok 30 /mainloop/source_time 7795s # slow test /mainloop/source_time executed in 1.01 secs 7795s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 7796s ok 31 /mainloop/overflow 7796s ok 32 /mainloop/ready-time 7796s # slow test /mainloop/ready-time executed in 0.51 secs 7796s ok 33 /mainloop/wakeup 7796s ok 34 /mainloop/remove-invalid 7796s ok 35 /mainloop/unref-while-pending 7799s # Executing: glib/mainloop.test 7804s # Executing: glib/mainloop.test 7809s # Executing: glib/mainloop.test 7814s # Executing: glib/mainloop.test 7819s # Executing: glib/mainloop.test 7823s ok 36 /mainloop/unix-fd 7823s # slow test /mainloop/unix-fd executed in 27.27 secs 7823s ok 37 /mainloop/unix-fd-source 7823s ok 38 /mainloop/source-unix-fd-api 7824s ok 39 /mainloop/wait 7824s ok 40 /mainloop/unix-file-poll 7824s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 7824s ok 41 /mainloop/unix-fd-priority 7824s ok 42 /mainloop/nfds 7824s ok 43 /mainloop/steal-fd 7824s # Start of ownerless-polling tests 7824s ok 44 /mainloop/ownerless-polling/attach-first 7824s ok 45 /mainloop/ownerless-polling/pop-first 7824s # End of ownerless-polling tests 7824s # End of mainloop tests 7824s ok - glib/mainloop.test 7824s # Running test: glib/deprecated-properties.test 7824s TAP version 14 7824s # random seed: R02Sc4f60cee21592b35c8c2dea9d845f231 7824s 1..3 7824s # Start of deprecated-properties tests 7824s # Executing: glib/deprecated-properties.test 7825s ok 1 /deprecated-properties/construct 7825s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 7825s ok 2 /deprecated-properties/default-construct 7825s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 7825s ok 3 /deprecated-properties/set 7825s # End of deprecated-properties tests 7825s ok - glib/deprecated-properties.test 7825s # Running test: glib/struct-info.test 7825s TAP version 14 7825s # random seed: R02S70c768df3967933974c8e987704f84c7 7825s 1..4 7825s # Start of struct-info tests 7825s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/home 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/cache 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/system-config2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/config 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/system-data2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/data 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/state 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_2CW152/struct-info/field-iterators/.dirs/runtime 7825s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7825s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 7825s ok 1 /struct-info/field-iterators 7825s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/home 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/cache 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/system-config2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/config 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/system-data2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/data 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/state 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_2CW152/struct-info/sizeof-gvalue/.dirs/runtime 7825s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7825s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 7825s ok 2 /struct-info/sizeof-gvalue 7825s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/home 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/config 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/data 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/state 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_2CW152/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 7825s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7825s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 7825s ok 3 /struct-info/is-pointer-for-struct-method-arg 7825s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/home 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/cache 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/system-config2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/config 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/system-data2 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/data 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/state 7825s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_2CW152/struct-info/boxed/.dirs/runtime 7825s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 7825s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 7825s ok 4 /struct-info/boxed 7825s # End of struct-info tests 7826s ok - glib/struct-info.test 7826s # Running test: glib/async-close-output-stream.test 7826s TAP version 14 7826s # random seed: R02Sd01ddf13688333e48d5bf92f2cf4d5ab 7826s 1..3 7826s # Start of close-async tests 7826s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 7826s ok 1 /close-async/without-flush 7826s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 7826s ok 2 /close-async/with-flush 7826s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 7826s ok 3 /close-async/with-async-flush 7826s # End of close-async tests 7826s ok - glib/async-close-output-stream.test 7826s # Running test: glib/utils-isolated.test 7826s TAP version 14 7826s # random seed: R02Sc0e24188001ac1c0b4a33c28236f9bbc 7826s 1..11 7826s # Start of utils-isolated tests 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/tmp-dir/.dirs/runtime 7826s ok 1 /utils-isolated/tmp-dir 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/home-dir/.dirs/runtime 7826s ok 2 /utils-isolated/home-dir 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-cache-dir/.dirs/runtime 7826s ok 3 /utils-isolated/user-cache-dir 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-config-dirs/.dirs/runtime 7826s ok 4 /utils-isolated/system-config-dirs 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-config-dir/.dirs/runtime 7826s ok 5 /utils-isolated/user-config-dir 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/system-data-dirs/.dirs/runtime 7826s ok 6 /utils-isolated/system-data-dirs 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-data-dir/.dirs/runtime 7826s ok 7 /utils-isolated/user-data-dir 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-state-dir/.dirs/runtime 7826s ok 8 /utils-isolated/user-state-dir 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/user-runtime-dir/.dirs/runtime 7826s ok 9 /utils-isolated/user-runtime-dir 7826s # Start of cleanup tests 7826s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/home 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/cache 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/system-config2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/config 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/system-data2 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/data 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/state 7826s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/runtime 7826s Unable to clean up temporary directory /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 7826s Unable to clean up temporary directory /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 7826s Unable to clean up temporary directory /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/handles-errors: Directory not empty 7827s ok 10 /utils-isolated/cleanup/handles-errors 7827s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 7827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 7827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 7827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 7827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 7827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 7827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 7827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 7827s Unable to clean up temporary directory /tmp/test_utils-isolated_PJIC62/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 7827s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 7827s # End of cleanup tests 7827s # End of utils-isolated tests 7827s ok - glib/utils-isolated.test 7827s # Running test: glib/closure.test 7827s TAP version 14 7827s # random seed: R02S5902156144f8399324168349b64f5873 7827s 1..6 7827s # Start of closure tests 7827s ok 1 /closure/idle 7827s ok 2 /closure/timeout 7827s ok 3 /closure/iochannel 7827s ok 4 /closure/child 7827s ok 5 /closure/fd 7827s ok 6 /closure/signal 7827s # End of closure tests 7827s ok - glib/closure.test 7827s # Running test: glib/network-monitor-race.test 7827s TAP version 14 7827s # random seed: R02Sbaf2ece3641d41aaa542c99d56df0580 7827s 1..1 7827s # Start of network-monitor tests 7827s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 7829s # Executing: glib/network-monitor-race.test 7834s # Executing: glib/network-monitor-race.test 7838s ok 1 /network-monitor/create-in-thread 7838s # slow test /network-monitor/create-in-thread executed in 10.22 secs 7838s # End of network-monitor tests 7838s ok - glib/network-monitor-race.test 7838s # Running test: glib/objects-refcount1.test 7838s TAP version 14 7838s # random seed: R02S9404bdefdd3036d0342a1cffa7994162 7838s 1..1 7838s # Start of gobject tests 7838s # Start of refcount tests 7838s # init 0x5557dd577d20 7838s # 7838s # init 0x5557dd570590 7838s # 7839s # Executing: glib/objects-refcount1.test 7843s # dispose 0x5557dd577d20! 7843s # 7843s # dispose 0x5557dd570590! 7843s # 7843s ok 1 /gobject/refcount/object-basics 7843s # slow test /gobject/refcount/object-basics executed in 5.10 secs 7843s # End of refcount tests 7843s # End of gobject tests 7843s ok - glib/objects-refcount1.test 7843s # Running test: glib/array-test.test 7843s TAP version 14 7843s # random seed: R02Sa895509bc957c0fc04f61f6e198842af 7843s 1..113 7843s # Start of array tests 7843s ok 1 /array/ref-count 7843s ok 2 /array/steal 7843s ok 3 /array/clear-func 7843s ok 4 /array/binary-search 7843s # /array/copy-sized summary: Test that copying a newly-allocated sized array works. 7843s ok 5 /array/copy-sized 7843s ok 6 /array/overflow-append-vals 7844s ok 7 /array/overflow-set-size 7844s # Start of new tests 7844s ok 8 /array/new/zero-terminated 7844s ok 9 /array/new/take 7844s ok 10 /array/new/take-zero-terminated 7844s # Start of take tests 7844s ok 11 /array/new/take/empty 7844s ok 12 /array/new/take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 7844s # End of take tests 7844s # End of new tests 7844s # Start of set-size tests 7844s ok 13 /array/set-size/non-zero-terminated-no-clear 7844s ok 14 /array/set-size/non-zero-terminated-clear 7844s ok 15 /array/set-size/zero-terminated-no-clear 7844s ok 16 /array/set-size/zero-terminated-clear 7844s # Start of sized tests 7844s ok 17 /array/set-size/sized/non-zero-terminated-no-clear 7844s ok 18 /array/set-size/sized/non-zero-terminated-clear 7844s ok 19 /array/set-size/sized/zero-terminated-no-clear 7844s ok 20 /array/set-size/sized/zero-terminated-clear 7844s # End of sized tests 7844s # End of set-size tests 7844s # Start of append-val tests 7844s ok 21 /array/append-val/non-zero-terminated-no-clear 7844s ok 22 /array/append-val/non-zero-terminated-clear 7844s ok 23 /array/append-val/zero-terminated-no-clear 7844s ok 24 /array/append-val/zero-terminated-clear 7844s # End of append-val tests 7844s # Start of prepend-val tests 7844s ok 25 /array/prepend-val/non-zero-terminated-no-clear 7844s ok 26 /array/prepend-val/non-zero-terminated-clear 7844s ok 27 /array/prepend-val/zero-terminated-no-clear 7844s ok 28 /array/prepend-val/zero-terminated-clear 7844s # End of prepend-val tests 7844s # Start of prepend-vals tests 7844s ok 29 /array/prepend-vals/non-zero-terminated-no-clear 7844s ok 30 /array/prepend-vals/non-zero-terminated-clear 7844s ok 31 /array/prepend-vals/zero-terminated-no-clear 7844s ok 32 /array/prepend-vals/zero-terminated-clear 7844s # End of prepend-vals tests 7844s # Start of insert-vals tests 7844s ok 33 /array/insert-vals/non-zero-terminated-no-clear 7844s ok 34 /array/insert-vals/non-zero-terminated-clear 7844s ok 35 /array/insert-vals/zero-terminated-no-clear 7844s ok 36 /array/insert-vals/zero-terminated-clear 7844s # End of insert-vals tests 7844s # Start of remove-index tests 7844s ok 37 /array/remove-index/non-zero-terminated-no-clear 7844s ok 38 /array/remove-index/non-zero-terminated-clear 7844s ok 39 /array/remove-index/zero-terminated-no-clear 7844s ok 40 /array/remove-index/zero-terminated-clear 7844s # End of remove-index tests 7844s # Start of remove-index-fast tests 7844s ok 41 /array/remove-index-fast/non-zero-terminated-no-clear 7844s ok 42 /array/remove-index-fast/non-zero-terminated-clear 7844s ok 43 /array/remove-index-fast/zero-terminated-no-clear 7844s ok 44 /array/remove-index-fast/zero-terminated-clear 7844s # End of remove-index-fast tests 7844s # Start of remove-range tests 7844s ok 45 /array/remove-range/non-zero-terminated-no-clear 7844s ok 46 /array/remove-range/non-zero-terminated-clear 7844s ok 47 /array/remove-range/zero-terminated-no-clear 7844s ok 48 /array/remove-range/zero-terminated-clear 7844s # End of remove-range tests 7844s # Start of copy tests 7844s ok 49 /array/copy/non-zero-terminated-no-clear 7844s ok 50 /array/copy/non-zero-terminated-clear 7844s ok 51 /array/copy/zero-terminated-no-clear 7844s ok 52 /array/copy/zero-terminated-clear 7844s # End of copy tests 7844s # Start of sort tests 7844s ok 53 /array/sort/non-zero-terminated-no-clear 7844s ok 54 /array/sort/non-zero-terminated-clear 7844s ok 55 /array/sort/zero-terminated-no-clear 7844s ok 56 /array/sort/zero-terminated-clear 7844s # End of sort tests 7844s # Start of sort-with-data tests 7844s ok 57 /array/sort-with-data/non-zero-terminated-no-clear 7844s ok 58 /array/sort-with-data/non-zero-terminated-clear 7844s ok 59 /array/sort-with-data/zero-terminated-no-clear 7844s ok 60 /array/sort-with-data/zero-terminated-clear 7844s # End of sort-with-data tests 7844s # End of array tests 7844s # Start of pointerarray tests 7844s ok 61 /pointerarray/add 7844s ok 62 /pointerarray/insert 7844s ok 63 /pointerarray/new-take 7844s ok 64 /pointerarray/new-take-null-terminated 7844s # Executing: glib/array-test.test 7844s ok 65 /pointerarray/new-from-array 7844s ok 66 /pointerarray/new-from-null-terminated-array 7844s ok 67 /pointerarray/free-func 7844s ok 68 /pointerarray/array_extend_and_steal 7844s ok 69 /pointerarray/sort 7844s ok 70 /pointerarray/sort-with-data 7844s ok 71 /pointerarray/sort-values 7844s ok 72 /pointerarray/sort-values-with-data 7844s ok 73 /pointerarray/remove-range 7844s ok 74 /pointerarray/steal 7844s # Start of free tests 7844s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 7844s ok 75 /pointerarray/free/null-terminated 7844s # End of free tests 7844s # Start of new-take tests 7844s ok 76 /pointerarray/new-take/empty 7844s ok 77 /pointerarray/new-take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 7844s ok 78 /pointerarray/new-take/with-free-func 7844s # End of new-take tests 7844s # Start of new-take-null-terminated tests 7844s ok 79 /pointerarray/new-take-null-terminated/empty 7845s ok 80 /pointerarray/new-take-null-terminated/with-free-func 7845s ok 81 /pointerarray/new-take-null-terminated/from-gstrv 7845s # End of new-take-null-terminated tests 7845s # Start of new-from-array tests 7845s ok 82 /pointerarray/new-from-array/empty 7845s ok 83 /pointerarray/new-from-array/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 7845s ok 84 /pointerarray/new-from-array/with-copy-and-free-func 7845s # End of new-from-array tests 7845s # Start of new-from-null-terminated-array tests 7845s ok 85 /pointerarray/new-from-null-terminated-array/empty 7845s ok 86 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 7845s ok 87 /pointerarray/new-from-null-terminated-array/from-gstrv 7845s # End of new-from-null-terminated-array tests 7845s # Start of ref-count tests 7845s ok 88 /pointerarray/ref-count/not-null-terminated 7845s ok 89 /pointerarray/ref-count/null-terminated 7845s # End of ref-count tests 7845s # Start of array_copy tests 7845s # /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 7845s ok 90 /pointerarray/array_copy/not-null-terminated 7845s # /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 7845s ok 91 /pointerarray/array_copy/null-terminated 7845s # End of array_copy tests 7845s # Start of array_extend tests 7845s ok 92 /pointerarray/array_extend/not-null-terminated 7845s ok 93 /pointerarray/array_extend/null-terminated 7845s # End of array_extend tests 7845s # Start of sort tests 7845s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 7845s ok 94 /pointerarray/sort/example 7845s # End of sort tests 7845s # Start of sort-with-data tests 7845s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 7845s ok 95 /pointerarray/sort-with-data/example 7845s # End of sort-with-data tests 7845s # Start of sort-values tests 7845s ok 96 /pointerarray/sort-values/example 7845s # End of sort-values tests 7845s # Start of sort-values-with-data tests 7845s ok 97 /pointerarray/sort-values-with-data/example 7845s # End of sort-values-with-data tests 7845s # Start of find tests 7845s ok 98 /pointerarray/find/empty 7845s ok 99 /pointerarray/find/non-empty 7845s # End of find tests 7845s # Start of steal_index tests 7845s ok 100 /pointerarray/steal_index/not-null-terminated 7845s ok 101 /pointerarray/steal_index/null-terminated 7845s # End of steal_index tests 7845s # End of pointerarray tests 7845s # Start of bytearray tests 7845s ok 102 /bytearray/steal 7845s ok 103 /bytearray/append 7845s ok 104 /bytearray/prepend 7845s ok 105 /bytearray/remove 7845s ok 106 /bytearray/remove-fast 7845s ok 107 /bytearray/remove-range 7845s ok 108 /bytearray/ref-count 7845s ok 109 /bytearray/sort 7845s ok 110 /bytearray/sort-with-data 7845s ok 111 /bytearray/new-take 7845s ok 112 /bytearray/new-take-overflow # SKIP Overflow test requires G_MAXSIZE > G_MAXUINT. 7845s ok 113 /bytearray/free-to-bytes 7845s # End of bytearray tests 7845s ok - glib/array-test.test 7845s # Running test: glib/filter-streams.test 7845s TAP version 14 7845s # random seed: R02S693518d233d0b6859be67ff923aa13b2 7845s 1..4 7845s # Start of filter-stream tests 7845s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 7845s ok 1 /filter-stream/input 7845s ok 2 /filter-stream/output 7845s ok 3 /filter-stream/async-input 7845s ok 4 /filter-stream/async-output 7845s # End of filter-stream tests 7845s ok - glib/filter-streams.test 7845s # Running test: glib/collate.test 7846s TAP version 14 7846s # random seed: R02S2fea7636a528e236a251d6594b9a6c87 7846s 1..9 7846s # Start of unicode tests 7846s # Start of collate tests 7846s ok 1 /unicode/collate/0 7846s ok 2 /unicode/collate/1 7846s ok 3 /unicode/collate/2 7846s # End of collate tests 7846s # Start of collate-key tests 7846s ok 4 /unicode/collate-key/0 7846s ok 5 /unicode/collate-key/1 7846s ok 6 /unicode/collate-key/2 7846s # End of collate-key tests 7846s # Start of collate-filename tests 7846s ok 7 /unicode/collate-filename/0 7846s ok 8 /unicode/collate-filename/1 7846s ok 9 /unicode/collate-filename/2 7846s # End of collate-filename tests 7846s # End of unicode tests 7846s ok - glib/collate.test 7846s # Running test: glib/proxy-test.test 7846s TAP version 14 7846s # random seed: R02S5b612271aab96fecb15a0eca3cd2e4bb 7846s 1..11 7846s # Start of proxy tests 7846s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ?gio-proxy-resolver? 7846s ok 1 /proxy/direct_sync 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e878b0 and GSocketClientAsyncConnectData 0x556272e86de0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e881e0 for GSocketClientAsyncConnectData 0x556272e86de0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7846s ok 2 /proxy/direct_async 7846s ok 3 /proxy/single_sync 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87d50 and GSocketClientAsyncConnectData 0x556272e86de0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e888b0 for GSocketClientAsyncConnectData 0x556272e86de0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7846s ok 4 /proxy/single_async 7846s ok 5 /proxy/multiple_sync 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87fe0 and GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89c10 for GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89bb0 for GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7846s ok 6 /proxy/multiple_async 7846s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 7846s ok 7 /proxy/invalid-uris-sync 7846s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87ba0 and GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 7846s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87d50 and GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 7846s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87ba0 and GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e88240 for GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87d50 and GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89e40 for GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7846s ok 8 /proxy/invalid-uris-async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e878b0 and GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 7846s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 7846s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e8a470 and GSocketClientAsyncConnectData 0x556272e88130 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89c10 for GSocketClientAsyncConnectData 0x556272e88130 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 7846s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87ba0 and GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89e40 for GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7846s ok 9 /proxy/dns 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e878b0 and GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89330 for GSocketClientAsyncConnectData 0x556272e87f70 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 7846s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e87ba0 and GSocketClientAsyncConnectData 0x556272e87e10 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89330 for GSocketClientAsyncConnectData 0x556272e87e10 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 7846s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 7846s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556272e878b0 and GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 7846s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556272e89b50 for GSocketClientAsyncConnectData 0x556272e89dd0 7846s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 7846s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 7846s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 7846s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 7846s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 7846s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 7846s ok 10 /proxy/override 7846s ok 11 /proxy/enumerator-ports 7846s # End of proxy tests 7846s ok - glib/proxy-test.test 7847s # Running test: glib/trash.test 7847s TAP version 14 7847s # random seed: R02S12ff96f9234085fe2dea39f118a89072 7847s 1..3 7847s # Start of trash tests 7847s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 7847s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 7847s # File: /tmp/test-trashQ5IX52 (parent st_dev: 64769) 7847s # Home: /home/ubuntu (st_dev: 64769) 7847s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 7847s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 7847s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 7847s ok 3 /trash/long-filename 7847s # End of trash tests 7847s ok - glib/trash.test 7847s # Running test: glib/thread-pool-slow.test 7847s TAP version 14 7847s # random seed: R02S58ee4086ba7d2553a2150a21225f9ccb 7847s 1..7 7847s # Start of threadpool tests 7847s ok 1 /threadpool/functions 7848s ok 2 /threadpool/stop-unused 7848s # slow test /threadpool/stop-unused executed in 0.61 secs 7848s ok 3 /threadpool/pools 7848s # [unsorted] ===> pushed new thread with id:3, number of threads:1, unprocessed:1 7848s # [unsorted] ===> pushed new thread with id:9, number of threads:2, unprocessed:1 7848s # [unsorted] ===> pushed new thread with id:56, number of threads:3, unprocessed:2 7848s # [unsorted] ===> pushed new thread with id:94, number of threads:4, unprocessed:3 7848s # [unsorted] ===> pushed new thread with id:89, number of threads:5, unprocessed:4 7848s # [unsorted] ===> pushed new thread with id:56, number of threads:6, unprocessed:5 7848s # [unsorted] ===> pushed new thread with id:81, number of threads:7, unprocessed:0 7848s # [unsorted] ===> pushed new thread with id:91, number of threads:8, unprocessed:1 7848s # [unsorted] ===> pushed new thread with id:7, number of threads:9, unprocessed:2 7848s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:3 7848s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:2 7848s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:0 7848s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:0 7848s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:0 7848s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:0 7848s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:0 7848s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:1 7848s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:2 7848s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:2 7848s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:3 7848s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:4 7848s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:5 7848s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:6 7848s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:7 7848s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:8 7848s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:9 7848s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:10 7848s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:11 7848s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:8 7848s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:9 7848s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:10 7848s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:11 7848s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:12 7848s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:13 7848s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:14 7848s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:13 7848s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:14 7848s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:15 7848s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:16 7848s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:17 7848s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:18 7848s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:19 7848s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:20 7848s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:21 7848s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:22 7848s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:23 7848s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:24 7848s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:25 7848s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:26 7848s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:27 7848s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:28 7848s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:29 7848s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:28 7848s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:26 7848s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:25 7848s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:26 7848s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:27 7848s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:28 7848s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:29 7848s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:30 7848s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:31 7848s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:32 7848s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:33 7848s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:34 7848s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:35 7848s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:36 7848s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:37 7848s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:35 7848s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:36 7848s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:37 7848s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:38 7848s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:39 7848s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:40 7848s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:41 7848s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:42 7848s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:43 7848s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:44 7848s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:45 7848s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:46 7848s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:47 7848s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:48 7848s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:49 7848s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:50 7848s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:51 7848s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:52 7848s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:51 7848s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:49 7848s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:48 7848s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:49 7848s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:50 7848s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:51 7848s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:52 7848s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:53 7848s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:54 7848s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:55 7848s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:56 7848s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:57 7848s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:58 7848s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:56 7848s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:57 7848s ok 4 /threadpool/no-sort 7848s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:1 7848s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:2 7848s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:3 7848s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:4 7848s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:5 7848s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:6 7848s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:7 7848s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:8 7848s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:9 7848s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:10 7848s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:11 7848s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:12 7848s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:13 7848s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:14 7848s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:15 7848s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:16 7848s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:17 7848s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:18 7848s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:19 7848s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:20 7848s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:21 7848s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:22 7848s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:23 7848s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:24 7848s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:25 7848s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:26 7848s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:27 7848s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:28 7848s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:29 7848s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:30 7848s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:31 7848s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:32 7848s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:33 7848s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:34 7848s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:35 7848s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:36 7848s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:37 7848s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:38 7848s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:39 7848s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:40 7848s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:41 7848s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:42 7848s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:43 7848s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:44 7848s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:45 7848s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:46 7848s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:47 7848s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:48 7848s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:49 7848s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:50 7848s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:51 7848s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:52 7848s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:53 7848s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:54 7848s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:55 7848s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:56 7848s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:57 7848s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:58 7848s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:59 7848s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:60 7848s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:61 7848s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:62 7848s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:63 7848s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:64 7848s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:65 7848s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:66 7848s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:67 7848s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:68 7848s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:69 7848s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:70 7848s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:71 7848s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:72 7848s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:73 7848s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:74 7848s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:75 7848s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:76 7848s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:77 7848s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:78 7848s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:79 7848s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:80 7848s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:81 7848s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:82 7848s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:83 7848s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:84 7848s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:85 7848s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:86 7848s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:87 7848s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:88 7848s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:89 7848s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:90 7848s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:91 7848s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:92 7848s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:93 7848s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:94 7848s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:95 7848s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:96 7848s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:97 7848s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:98 7848s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:99 7848s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:100 7848s # Starting thread pool processing 7848s ok 5 /threadpool/sort 7849s ok 6 /threadpool/stop-unused-multiple 7849s # slow test /threadpool/stop-unused-multiple executed in 0.80 secs 7849s # Pool idle thread count: 0, unprocessed jobs: 39 7849s # Executing: glib/thread-pool-slow.test 7849s # Pool idle thread count: 0, unprocessed jobs: 0 7849s # Pool idle thread count: 0, unprocessed jobs: 0 7850s # Pool idle thread count: 10, unprocessed jobs: 0 7850s # Pool idle thread count: 10, unprocessed jobs: 0 7850s # Pool idle thread count: 10, unprocessed jobs: 0 7850s # Pool idle thread count: 10, unprocessed jobs: 0 7851s # Pool idle thread count: 10, unprocessed jobs: 0 7851s # Pool idle thread count: 10, unprocessed jobs: 0 7851s # Pool idle thread count: 10, unprocessed jobs: 0 7851s # Pool idle thread count: 10, unprocessed jobs: 0 7852s # Pool idle thread count: 10, unprocessed jobs: 0 7852s # Pool idle thread count: 10, unprocessed jobs: 0 7852s # Pool idle thread count: 10, unprocessed jobs: 0 7852s # Pool idle thread count: 10, unprocessed jobs: 0 7853s # Pool idle thread count: 10, unprocessed jobs: 0 7853s # Pool idle thread count: 10, unprocessed jobs: 0 7853s # Pool idle thread count: 10, unprocessed jobs: 0 7853s # Pool idle thread count: 10, unprocessed jobs: 0 7854s # Pool idle thread count: 10, unprocessed jobs: 0 7854s # Pool idle thread count: 10, unprocessed jobs: 0 7854s # Executing: glib/thread-pool-slow.test 7854s # Pool idle thread count: 10, unprocessed jobs: 0 7854s # Pool idle thread count: 10, unprocessed jobs: 0 7855s # Pool idle thread count: 10, unprocessed jobs: 0 7855s # Pool idle thread count: 10, unprocessed jobs: 0 7855s # Pool idle thread count: 10, unprocessed jobs: 0 7855s # Pool idle thread count: 10, unprocessed jobs: 0 7856s # Pool idle thread count: 10, unprocessed jobs: 0 7856s # Pool idle thread count: 10, unprocessed jobs: 0 7856s # Pool idle thread count: 10, unprocessed jobs: 0 7856s # Pool idle thread count: 10, unprocessed jobs: 0 7857s # Pool idle thread count: 10, unprocessed jobs: 0 7857s # Pool idle thread count: 10, unprocessed jobs: 0 7857s # Pool idle thread count: 10, unprocessed jobs: 0 7857s # Pool idle thread count: 10, unprocessed jobs: 0 7858s # Pool idle thread count: 8, unprocessed jobs: 0 7858s # Pool idle thread count: 8, unprocessed jobs: 0 7858s # Pool idle thread count: 8, unprocessed jobs: 0 7858s # Pool idle thread count: 8, unprocessed jobs: 0 7858s # Pool idle thread count: 10, unprocessed jobs: 0 7858s # Pool idle thread count: 10, unprocessed jobs: 0 7859s # Pool idle thread count: 10, unprocessed jobs: 0 7859s # Pool idle thread count: 10, unprocessed jobs: 0 7859s # Executing: glib/thread-pool-slow.test 7859s # Pool idle thread count: 10, unprocessed jobs: 0 7859s # Pool idle thread count: 10, unprocessed jobs: 0 7860s # Pool idle thread count: 2, unprocessed jobs: 0 7860s # Pool idle thread count: 2, unprocessed jobs: 0 7860s # Pool idle thread count: 2, unprocessed jobs: 0 7860s # Pool idle thread count: 2, unprocessed jobs: 0 7861s # Pool idle thread count: 2, unprocessed jobs: 0 7861s # Pool idle thread count: 2, unprocessed jobs: 0 7861s # Pool idle thread count: 2, unprocessed jobs: 0 7861s # Pool idle thread count: 2, unprocessed jobs: 0 7862s # Pool idle thread count: 2, unprocessed jobs: 0 7862s # Pool idle thread count: 2, unprocessed jobs: 0 7862s # Pool idle thread count: 2, unprocessed jobs: 0 7862s # Pool idle thread count: 2, unprocessed jobs: 0 7863s # Pool idle thread count: 2, unprocessed jobs: 0 7863s # Pool idle thread count: 2, unprocessed jobs: 0 7863s # Pool idle thread count: 2, unprocessed jobs: 0 7863s # Pool idle thread count: 2, unprocessed jobs: 0 7864s # Pool idle thread count: 2, unprocessed jobs: 0 7864s # Pool idle thread count: 2, unprocessed jobs: 0 7864s # Executing: glib/thread-pool-slow.test 7864s # Pool idle thread count: 2, unprocessed jobs: 0 7864s # Pool idle thread count: 2, unprocessed jobs: 0 7865s # Pool idle thread count: 2, unprocessed jobs: 0 7865s # Pool idle thread count: 2, unprocessed jobs: 0 7865s # Pool idle thread count: 2, unprocessed jobs: 0 7865s # Pool idle thread count: 2, unprocessed jobs: 0 7866s # Pool idle thread count: 2, unprocessed jobs: 0 7866s # Pool idle thread count: 2, unprocessed jobs: 0 7866s # Pool idle thread count: 2, unprocessed jobs: 0 7866s # Pool idle thread count: 2, unprocessed jobs: 0 7867s # Pool idle thread count: 2, unprocessed jobs: 0 7867s # Pool idle thread count: 2, unprocessed jobs: 0 7867s # Pool idle thread count: 2, unprocessed jobs: 0 7867s # Pool idle thread count: 2, unprocessed jobs: 0 7868s # Pool idle thread count: 2, unprocessed jobs: 0 7868s # Pool idle thread count: 2, unprocessed jobs: 0 7868s ok 7 /threadpool/idle-time 7868s # slow test /threadpool/idle-time executed in 19.60 secs 7868s # End of threadpool tests 7868s ok - glib/thread-pool-slow.test 7868s # Running test: glib/error.test 7869s TAP version 14 7869s # random seed: R02S65b776b6ba149c4243ff6adc7aec9e5d 7869s 1..3 7869s # Start of error tests 7869s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_CPYX52/error/from-errno/.dirs/home 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_CPYX52/error/from-errno/.dirs/cache 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_CPYX52/error/from-errno/.dirs/system-config1:/tmp/test_error_CPYX52/error/from-errno/.dirs/system-config2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_CPYX52/error/from-errno/.dirs/config 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_CPYX52/error/from-errno/.dirs/system-data1:/tmp/test_error_CPYX52/error/from-errno/.dirs/system-data2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_CPYX52/error/from-errno/.dirs/data 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_CPYX52/error/from-errno/.dirs/state 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_CPYX52/error/from-errno/.dirs/runtime 7869s ok 1 /error/from-errno 7869s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_CPYX52/error/from-file-error/.dirs/home 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_CPYX52/error/from-file-error/.dirs/cache 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_CPYX52/error/from-file-error/.dirs/system-config1:/tmp/test_error_CPYX52/error/from-file-error/.dirs/system-config2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_CPYX52/error/from-file-error/.dirs/config 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_CPYX52/error/from-file-error/.dirs/system-data1:/tmp/test_error_CPYX52/error/from-file-error/.dirs/system-data2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_CPYX52/error/from-file-error/.dirs/data 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_CPYX52/error/from-file-error/.dirs/state 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_CPYX52/error/from-file-error/.dirs/runtime 7869s ok 2 /error/from-file-error 7869s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/home 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/cache 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/system-config1:/tmp/test_error_CPYX52/error/from-win32-error/.dirs/system-config2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/config 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/system-data1:/tmp/test_error_CPYX52/error/from-win32-error/.dirs/system-data2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/data 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/state 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_CPYX52/error/from-win32-error/.dirs/runtime 7869s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 7869s # End of error tests 7869s ok - glib/error.test 7869s # Running test: glib/autoptr.test 7869s TAP version 14 7869s # random seed: R02Sed685c83032ecd2463fff94d977115f1 7869s 1..6 7869s # Start of autoptr tests 7869s ok 1 /autoptr/autoptr 7869s ok 2 /autoptr/autoptr_steal 7869s ok 3 /autoptr/autolist 7869s ok 4 /autoptr/autoslist 7869s ok 5 /autoptr/autoqueue 7869s ok 6 /autoptr/autoclass 7869s # End of autoptr tests 7869s ok - glib/autoptr.test 7869s # Running test: glib/gdbus-server-auth.test 7869s # Executing: glib/gdbus-server-auth.test 7869s TAP version 14 7869s # random seed: R02S0a7e58638b36933f52f4c022d7a0a0b2 7869s 1..9 7869s # Start of gdbus tests 7869s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/home 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/cache 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/system-config2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/config 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/system-data2 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/data 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/state 7869s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/.dirs/runtime 7869s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-4SHC62 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 7869s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-4SHC62/dbus-xejnL2w6 7869s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7869s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7869s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7869s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7869s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7869s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 12582 7869s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7869s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7869s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7869s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7869s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 12582 7870s ok 1 /gdbus/server-auth 7870s # slow test /gdbus/server-auth executed in 0.67 secs 7870s # Start of server-auth tests 7870s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/home 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/cache 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/system-config2 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/config 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/system-data2 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/data 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/state 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/abstract/.dirs/runtime 7870s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-70PR52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 7870s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-70PR52/dbus-vX5c9iVn 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 7870s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 7870s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 12582 7870s ok 2 /gdbus/server-auth/abstract 7870s # slow test /gdbus/server-auth/abstract executed in 0.54 secs 7870s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/home 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/cache 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/system-config2 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/config 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/system-data2 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/data 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/state 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/tcp/.dirs/runtime 7870s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 7870s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 7870s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/home 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/cache 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/system-config2 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/config 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/system-data2 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/data 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/state 7870s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/.dirs/runtime 7870s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-Y0E652 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 7870s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-Y0E652/dbus-FwvDYv9o 7870s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7870s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7870s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7870s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7870s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7870s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 12582 7870s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7870s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7870s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7870s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7870s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 12582 7871s ok 4 /gdbus/server-auth/anonymous 7871s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/home 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/cache 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/system-config2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/config 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/system-data2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/data 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/state 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/.dirs/runtime 7871s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-QV8Q52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 7871s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-QV8Q52/dbus-Qxrd4euk 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 12582 7871s ok 5 /gdbus/server-auth/external 7871s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/home 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/cache 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/system-config2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/config 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/system-data2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/data 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/state 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/.dirs/runtime 7871s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-FFS152 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 7871s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 7871s # Start of anonymous tests 7871s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/home 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/cache 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/config 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/data 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/state 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/anonymous/tcp/.dirs/runtime 7871s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 7871s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 7871s # End of anonymous tests 7871s # Start of external tests 7871s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/home 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/cache 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/system-config2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/config 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/system-data2 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/data 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/state 7871s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/external/require-same-user/.dirs/runtime 7871s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-EXG252 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 7871s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_WKR852/gdbus-server-auth-EXG252/dbus-d7ASgLHf 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7871s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 12582 7871s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7871s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7871s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7871s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 12582 7872s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7872s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 7872s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 7872s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=12582,uid=1000,gid=1000 7872s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 12582 7872s ok 8 /gdbus/server-auth/external/require-same-user 7872s # End of external tests 7872s # Start of sha1 tests 7872s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/home 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/cache 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/system-config2 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/config 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/system-data2 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/data 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/state 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_WKR852/gdbus/server-auth/sha1/tcp/.dirs/runtime 7872s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 7872s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 7872s # End of sha1 tests 7872s # End of server-auth tests 7872s # End of gdbus tests 7872s ok - glib/gdbus-server-auth.test 7872s # Running test: glib/tls-certificate.test 7872s TAP version 14 7872s # random seed: R02S1fc6a7e555af7f754ebd91d0373d38ff 7872s 1..19 7872s # Start of tls-certificate tests 7872s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 7872s ok 1 /tls-certificate/pem-parser 7872s ok 2 /tls-certificate/pem-parser-handles-chain 7872s ok 3 /tls-certificate/from_file 7872s ok 4 /tls-certificate/from_files 7872s ok 5 /tls-certificate/from_files_crlf 7872s ok 6 /tls-certificate/from_files_pkcs8 7872s ok 7 /tls-certificate/from_files_pkcs8enc 7872s ok 8 /tls-certificate/list_from_file 7872s ok 9 /tls-certificate/pkcs11-uri 7872s ok 10 /tls-certificate/pkcs11-uri-unsupported 7872s ok 11 /tls-certificate/from_pkcs12 7872s ok 12 /tls-certificate/from_pkcs12_file 7872s ok 13 /tls-certificate/not-valid-before 7872s ok 14 /tls-certificate/not-valid-after 7872s ok 15 /tls-certificate/subject-name 7872s ok 16 /tls-certificate/issuer-name 7872s ok 17 /tls-certificate/dns-names 7872s ok 18 /tls-certificate/ip-addresses 7872s ok 19 /tls-certificate/pem-parser-no-sentinel 7872s # End of tls-certificate tests 7872s ok - glib/tls-certificate.test 7872s # Running test: glib/gdbus-exit-on-close.test 7872s TAP version 14 7872s # random seed: R02Sa1e0b0cc62ce652fe30f30a535b2040c 7872s 1..4 7872s # Start of gdbus tests 7872s # Start of exit-on-close tests 7872s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/home 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/cache 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/system-config2 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/config 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/system-data2 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/data 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/state 7872s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/default/.dirs/runtime 7873s ok 1 /gdbus/exit-on-close/default 7873s # slow test /gdbus/exit-on-close/default executed in 0.91 secs 7873s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/home 7873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/cache 7873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/system-config2 7873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/config 7873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/system-data2 7873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/data 7873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/state 7873s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/true/.dirs/runtime 7874s # Executing: glib/gdbus-exit-on-close.test 7874s ok 2 /gdbus/exit-on-close/true 7874s # slow test /gdbus/exit-on-close/true executed in 0.86 secs 7874s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/home 7874s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/cache 7874s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/system-config2 7874s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/config 7874s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/system-data2 7874s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/data 7874s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/state 7874s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/false/.dirs/runtime 7875s ok 3 /gdbus/exit-on-close/false 7875s # slow test /gdbus/exit-on-close/false executed in 0.82 secs 7875s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/home 7875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/cache 7875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/system-config2 7875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/config 7875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/system-data2 7875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/data 7875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/state 7875s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_3J8152/gdbus/exit-on-close/we-close/.dirs/runtime 7876s ok 4 /gdbus/exit-on-close/we-close 7876s # slow test /gdbus/exit-on-close/we-close executed in 0.81 secs 7876s # Start of default tests 7876s # End of default tests 7876s # Start of true tests 7876s # End of true tests 7876s # Start of false tests 7876s # End of false tests 7876s # Start of we-close tests 7876s # End of we-close tests 7876s # End of exit-on-close tests 7876s # End of gdbus tests 7876s ok - glib/gdbus-exit-on-close.test 7876s # Running test: glib/type.test 7876s TAP version 14 7876s # random seed: R02S4383e3c8ef8eb9295d1450c5db83366b 7876s 1..6 7876s # Start of type tests 7876s ok 1 /type/registration-serial 7876s ok 2 /type/interface-prerequisite 7876s ok 3 /type/interface-check 7876s ok 4 /type/next-base 7876s ok 5 /type/is-a 7876s # Invalid types can?t be queried. 7876s # Unclassed types can?t be queried. 7876s ok 6 /type/query 7876s # End of type tests 7876s ok - glib/type.test 7876s # Running test: glib/utils-c-17.test 7876s TAP version 14 7876s # random seed: R02S16656f904feefe2035a388739b64bb83 7876s 1..41 7876s # Start of utils tests 7876s ok 1 /utils/language-names 7876s ok 2 /utils/locale-variants 7876s ok 3 /utils/version 7876s ok 4 /utils/appname 7876s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 7876s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 7877s ok 5 /utils/prgname-thread-safety 7877s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 7877s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 7877s ok 6 /utils/tmpdir 7877s ok 7 /utils/basic_bits 7877s ok 8 /utils/bits 7877s ok 9 /utils/swap 7877s ok 10 /utils/find-program 7877s ok 11 /utils/find-program-for-path 7877s ok 12 /utils/debug 7877s ok 13 /utils/codeset 7877s ok 14 /utils/codeset2 7877s ok 15 /utils/console-charset 7877s ok 16 /utils/gettext 7877s ok 17 /utils/username 7877s ok 18 /utils/realname 7877s ok 19 /utils/hostname 7877s ok 20 /utils/xdgdirs 7877s ok 21 /utils/specialdir 7877s # NAME: Ubuntu 7877s ok 22 /utils/os-info 7877s ok 23 /utils/clear-pointer 7877s ok 24 /utils/clear-pointer-cast 7877s ok 25 /utils/take-pointer 7877s ok 26 /utils/clear-source 7877s ok 27 /utils/misc-mem 7877s # /utils/aligned-mem summary: Aligned memory allocator 7877s # Alignment must not be zero 7877s # Alignment must be a power of two 7877s # Alignment must be a multiple of sizeof(void*) 7877s ok 28 /utils/aligned-mem 7877s # /utils/free-sized summary: Check that g_free_sized() works 7877s ok 29 /utils/free-sized 7877s ok 30 /utils/nullify 7878s ok 31 /utils/atexit 7878s ok 32 /utils/check-setuid 7878s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 7878s ok 33 /utils/int-limits 7878s ok 34 /utils/clear-list 7878s ok 35 /utils/clear-slist 7878s ok 36 /utils/steal-handle-id 7878s # Start of specialdir tests 7878s ok 37 /utils/specialdir/desktop 7878s # End of specialdir tests 7878s # Start of clear-pointer tests 7878s ok 38 /utils/clear-pointer/side-effects 7878s # End of clear-pointer tests 7878s # Start of aligned-mem tests 7878s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 7878s ok 39 /utils/aligned-mem/alignment 7878s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 7878s ok 40 /utils/aligned-mem/zeroed 7878s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 7878s ok 41 /utils/aligned-mem/free-sized 7878s # Start of subprocess tests 7878s # End of subprocess tests 7878s # End of aligned-mem tests 7878s # End of utils tests 7878s ok - glib/utils-c-17.test 7878s # Running test: glib/shell.test 7878s TAP version 14 7878s # random seed: R02S532ee273a3c3fe7d36dde825a3084bbf 7878s 1..51 7878s # Start of shell tests 7878s # Start of cmdline tests 7878s test cmdline: foo bar 7878s ok 1 /shell/cmdline/0 7878s test cmdline: foo 'bar' 7878s ok 2 /shell/cmdline/1 7878s test cmdline: foo "bar" 7878s ok 3 /shell/cmdline/2 7878s test cmdline: foo '' 'bar' 7878s ok 4 /shell/cmdline/3 7878s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 7878s ok 5 /shell/cmdline/4 7878s test cmdline: foo blah foo bar baz 7878s ok 6 /shell/cmdline/5 7878s test cmdline: foo ' spaces more spaces lots of spaces in this ' 7878s ok 7 /shell/cmdline/6 7878s test cmdline: foo \ 7878s bar 7878s ok 8 /shell/cmdline/7 7878s test cmdline: foo '' '' 7878s ok 9 /shell/cmdline/8 7878s test cmdline: foo \" la la la 7878s ok 10 /shell/cmdline/9 7878s test cmdline: foo \ foo woo woo\ 7878s ok 11 /shell/cmdline/10 7878s test cmdline: foo "yada yada \$\"" 7878s ok 12 /shell/cmdline/11 7878s test cmdline: foo "c:\\" 7878s ok 13 /shell/cmdline/12 7878s test cmdline: foo # bla bla bla 7878s bar 7878s ok 14 /shell/cmdline/13 7878s test cmdline: foo a#b 7878s ok 15 /shell/cmdline/14 7878s test cmdline: #foo 7878s ok 16 /shell/cmdline/15 7878s test cmdline: foo bar \ 7878s ok 17 /shell/cmdline/16 7878s test cmdline: foo 'bar baz 7878s ok 18 /shell/cmdline/17 7878s test cmdline: foo '"bar" baz 7878s ok 19 /shell/cmdline/18 7878s test cmdline: 7878s ok 20 /shell/cmdline/19 7878s test cmdline: 7878s ok 21 /shell/cmdline/20 7878s test cmdline: # foo bar 7878s ok 22 /shell/cmdline/21 7878s test cmdline: foo '/bar/summer'\''09 tours.pdf' 7878s ok 23 /shell/cmdline/22 7878s # End of cmdline tests 7878s # Start of quote tests 7878s ok 24 /shell/quote/0 7878s ok 25 /shell/quote/1 7878s ok 26 /shell/quote/2 7878s ok 27 /shell/quote/3 7878s ok 28 /shell/quote/4 7878s ok 29 /shell/quote/5 7878s ok 30 /shell/quote/6 7878s # End of quote tests 7878s # Start of unquote tests 7878s ok 31 /shell/unquote/0 7878s ok 32 /shell/unquote/1 7878s ok 33 /shell/unquote/2 7878s ok 34 /shell/unquote/3 7878s ok 35 /shell/unquote/4 7878s ok 36 /shell/unquote/5 7878s ok 37 /shell/unquote/6 7878s ok 38 /shell/unquote/7 7878s ok 39 /shell/unquote/8 7878s ok 40 /shell/unquote/9 7878s ok 41 /shell/unquote/10 7878s ok 42 /shell/unquote/11 7878s ok 43 /shell/unquote/12 7878s ok 44 /shell/unquote/13 7878s ok 45 /shell/unquote/14 7878s ok 46 /shell/unquote/15 7878s ok 47 /shell/unquote/16 7878s ok 48 /shell/unquote/17 7878s ok 49 /shell/unquote/18 7878s ok 50 /shell/unquote/19 7878s ok 51 /shell/unquote/20 7878s # End of unquote tests 7878s # End of shell tests 7878s ok - glib/shell.test 7878s # Running test: glib/mutex.test 7878s TAP version 14 7878s # random seed: R02Sf5bcc694c8bbcda65b2de13aa51686b8 7878s 1..17 7878s # Start of thread tests 7878s ok 1 /thread/mutex1 7878s ok 2 /thread/mutex2 7878s ok 3 /thread/mutex3 7878s ok 4 /thread/mutex4 7879s # Executing: glib/mutex.test 7884s # Executing: glib/mutex.test 7889s # Executing: glib/mutex.test 7894s # Executing: glib/mutex.test 7899s # Executing: glib/mutex.test 7904s # Executing: glib/mutex.test 7909s # Executing: glib/mutex.test 7916s # Executing: glib/mutex.test 7919s # Executing: glib/mutex.test 7925s # Executing: glib/mutex.test 7929s # Executing: glib/mutex.test 7934s # Executing: glib/mutex.test 7939s # Executing: glib/mutex.test 7944s # Executing: glib/mutex.test 7949s # Executing: glib/mutex.test 7952s ok 5 /thread/mutex5 7952s # slow test /thread/mutex5 executed in 74.37 secs 7952s # Start of mutex tests 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7952s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7953s # /thread/mutex/errno summary: Validates that errno is not touched upon return 7953s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 7954s # Executing: glib/mutex.test 7959s ok 6 /thread/mutex/errno 7959s # slow test /thread/mutex/errno executed in 6.24 secs 7959s # Start of perf tests 7959s # max perf: 0.012346 mips 7959s ok 7 /thread/mutex/perf/uncontended 7959s # Start of contended tests 7959s # max perf: 0.500000 mips 7959s ok 8 /thread/mutex/perf/contended/1 7959s # max perf: 0.040000 mips 7959s ok 9 /thread/mutex/perf/contended/2 7959s # max perf: 1.000000 mips 7959s ok 10 /thread/mutex/perf/contended/3 7959s # max perf: 0.067568 mips 7959s ok 11 /thread/mutex/perf/contended/4 7959s # max perf: 0.013667 mips 7959s ok 12 /thread/mutex/perf/contended/5 7959s # max perf: 1.750000 mips 7959s ok 13 /thread/mutex/perf/contended/6 7959s # max perf: 0.333333 mips 7959s ok 14 /thread/mutex/perf/contended/7 7959s # max perf: 1.500000 mips 7959s ok 15 /thread/mutex/perf/contended/8 7959s # max perf: 0.003337 mips 7959s ok 16 /thread/mutex/perf/contended/9 7959s # max perf: 0.008029 mips 7959s ok 17 /thread/mutex/perf/contended/10 7959s # End of contended tests 7959s # End of perf tests 7959s # End of mutex tests 7959s # End of thread tests 7959s ok - glib/mutex.test 7959s # Running test: glib/uri.test 7959s TAP version 14 7959s # random seed: R02S2628ad3850a1378f2db2509a699f5c20 7959s 1..24 7959s # Start of uri tests 7959s ok 1 /uri/file-to-uri 7959s ok 2 /uri/file-from-uri 7959s ok 3 /uri/file-roundtrip 7959s ok 4 /uri/list 7959s # Test 0: %2Babc %4F 7959s # Test 1: %2Babc %4F 7959s # Test 2: %00abc %4F 7959s # Test 3: /cursors/none.png 7959s # Test 4: /cursors%2fbad-subdir/none.png 7959s # Test 5: %0 7959s # Test 6: %ra 7959s # Test 7: %2r 7959s # Test 8: Timm B?der 7959s # Test 9: (null) 7959s ok 5 /uri/unescape-string 7959s ok 6 /uri/unescape-segment 7959s # Test 0: abcdefgABCDEFG._~ 7959s # Test 1: :+ \\?# 7959s # Test 2: a+b:c 7959s # Test 3: a+b:c\303\234 7959s # Test 4: \374;\322 7959s # Test 5: \303\261\303( 7959s ok 7 /uri/escape-string 7959s ok 8 /uri/escape-bytes 7959s ok 9 /uri/scheme 7959s ok 10 /uri/build 7959s ok 11 /uri/split 7959s ok 12 /uri/is_valid 7959s ok 13 /uri/to-string 7959s ok 14 /uri/join 7959s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 7959s # Combination 0 7959s # Combination 1 7959s # Combination 2 7959s # Combination 3 7959s # Combination 4 7959s # Combination 5 7959s # Combination 6 7959s # Combination 7 7959s # Combination 8 7959s # Combination 9 7959s # Combination 10 7959s # Combination 11 7959s # Combination 12 7959s # Combination 13 7959s # Combination 14 7959s # Combination 15 7959s # Combination 16 7959s # Combination 17 7959s # Combination 18 7959s # Combination 19 7959s # Combination 20 7959s # Combination 21 7959s # Combination 22 7959s # Combination 23 7959s # Combination 24 7959s # Combination 25 7959s # Combination 26 7959s # Combination 27 7959s # Combination 28 7959s # Combination 29 7959s # Combination 30 7959s # Combination 31 7959s # Combination 32 7959s # Combination 33 7959s # Combination 34 7959s # Combination 35 7959s # Combination 36 7959s # Combination 37 7959s # Combination 38 7959s # Combination 39 7959s # Combination 40 7959s # Combination 41 7959s # Combination 42 7959s # Combination 43 7959s # Combination 44 7959s # Combination 45 7959s # Combination 46 7959s # Combination 47 7959s # Combination 48 7959s # Combination 49 7959s # Combination 50 7959s # Combination 51 7959s # Combination 52 7959s # Combination 53 7959s # Combination 54 7959s # Combination 55 7959s # Combination 56 7959s # Combination 57 7959s # Combination 58 7959s # Combination 59 7959s # Combination 60 7959s # Combination 61 7959s # Combination 62 7959s # Combination 63 7959s # Combination 64 7959s # Combination 65 7959s # Combination 66 7959s # Combination 67 7959s # Combination 68 7959s # Combination 69 7959s # Combination 70 7959s # Combination 71 7959s # Combination 72 7959s # Combination 73 7959s # Combination 74 7959s # Combination 75 7959s # Combination 76 7959s # Combination 77 7959s # Combination 78 7959s # Combination 79 7959s # Combination 80 7959s # Combination 81 7959s # Combination 82 7959s # Combination 83 7959s # Combination 84 7959s # Combination 85 7959s # Combination 86 7959s # Combination 87 7959s # Combination 88 7959s # Combination 89 7959s # Combination 90 7959s # Combination 91 7959s # Combination 92 7959s # Combination 93 7959s # Combination 94 7959s # Combination 95 7959s # Combination 96 7959s # Combination 97 7959s # Combination 98 7959s # Combination 99 7959s # Combination 100 7959s # Combination 101 7959s # Combination 102 7959s # Combination 103 7959s # Combination 104 7959s # Combination 105 7959s # Combination 106 7959s # Combination 107 7959s # Combination 108 7959s # Combination 109 7959s # Combination 110 7959s # Combination 111 7959s # Combination 112 7959s # Combination 113 7959s # Combination 114 7959s # Combination 115 7959s # Combination 116 7959s # Combination 117 7959s # Combination 118 7959s # Combination 119 7959s # Combination 120 7959s # Combination 121 7959s # Combination 122 7959s # Combination 123 7959s # Combination 124 7959s # Combination 125 7959s # Combination 126 7959s # Combination 127 7959s # Combination 128 7959s # Combination 129 7959s # Combination 130 7959s # Combination 131 7959s # Combination 132 7959s # Combination 133 7959s # Combination 134 7959s # Combination 135 7959s # Combination 136 7959s # Combination 137 7959s # Combination 138 7959s # Combination 139 7959s # Combination 140 7959s # Combination 141 7959s # Combination 142 7959s # Combination 143 7959s # Combination 144 7959s # Combination 145 7959s # Combination 146 7959s # Combination 147 7959s # Combination 148 7959s # Combination 149 7959s # Combination 150 7959s # Combination 151 7959s # Combination 152 7959s # Combination 153 7959s # Combination 154 7959s # Combination 155 7959s # Combination 156 7959s # Combination 157 7959s # Combination 158 7959s # Combination 159 7959s # Combination 160 7959s # Combination 161 7959s # Combination 162 7959s # Combination 163 7959s # Combination 164 7959s # Combination 165 7959s # Combination 166 7959s # Combination 167 7959s # Combination 168 7959s # Combination 169 7959s # Combination 170 7959s # Combination 171 7959s # Combination 172 7959s # Combination 173 7959s # Combination 174 7959s # Combination 175 7959s # Combination 176 7959s # Combination 177 7959s # Combination 178 7959s # Combination 179 7959s # Combination 180 7959s # Combination 181 7959s # Combination 182 7959s # Combination 183 7959s # Combination 184 7959s # Combination 185 7959s # Combination 186 7959s # Combination 187 7959s # Combination 188 7959s # Combination 189 7959s # Combination 190 7959s # Combination 191 7959s # Combination 192 7959s # Combination 193 7959s # Combination 194 7959s # Combination 195 7959s # Combination 196 7959s # Combination 197 7959s # Combination 198 7959s # Combination 199 7959s # Combination 200 7959s # Combination 201 7959s # Combination 202 7959s # Combination 203 7959s # Combination 204 7959s # Combination 205 7959s # Combination 206 7959s # Combination 207 7959s # Combination 208 7959s # Combination 209 7959s # Combination 210 7959s # Combination 211 7959s # Combination 212 7959s # Combination 213 7959s # Combination 214 7959s # Combination 215 7959s # Combination 216 7959s # Combination 217 7959s # Combination 218 7959s # Combination 219 7959s # Combination 220 7959s # Combination 221 7959s # Combination 222 7959s # Combination 223 7959s # Combination 224 7959s # Combination 225 7959s # Combination 226 7959s # Combination 227 7959s # Combination 228 7959s # Combination 229 7959s # Combination 230 7959s # Combination 231 7959s # Combination 232 7959s # Combination 233 7959s # Combination 234 7959s # Combination 235 7959s # Combination 236 7959s # Combination 237 7959s # Combination 238 7959s # Combination 239 7959s # Combination 240 7959s # Combination 241 7959s # Combination 242 7959s # Combination 243 7959s # Combination 244 7959s # Combination 245 7959s # Combination 246 7959s # Combination 247 7959s # Combination 248 7959s # Combination 249 7959s # Combination 250 7959s # Combination 251 7959s # Combination 252 7959s # Combination 253 7959s # Combination 254 7959s # Combination 255 7959s ok 15 /uri/join-split-round-trip 7959s ok 16 /uri/normalize 7959s # Start of unescape-bytes tests 7959s # Test 0: %00%00 7959s # Test 1: /cursors/none.png 7959s # Test 2: /cursors%2fbad-subdir/none.png 7959s # Test 3: %% 7959s # Test 4: % 7959s ok 17 /uri/unescape-bytes/nul-terminated 7959s # Test 0: %00%00 7959s # Test 1: /cursors/none.png 7959s # Test 2: /cursors%2fbad-subdir/none.png 7959s # Test 3: %% 7959s # Test 4: % 7959s ok 18 /uri/unescape-bytes/length 7959s # End of unescape-bytes tests 7959s # Start of parsing tests 7959s # Test 0: foo: 7959s # Test 1: file:/dev/null 7959s # Test 2: file:///dev/null 7959s # Test 3: ftp://user@host/path 7959s # Test 4: ftp://user@host:9999/path 7959s # Test 5: ftp://user:password@host/path 7959s # Test 6: ftp://user:password@host:9999/path 7959s # Test 7: ftp://user:password@host 7959s # Test 8: http://us%65r@host 7959s # Test 9: http://us%40r@host 7959s # Test 10: http://us%3ar@host 7959s # Test 11: http://us%2fr@host 7959s # Test 12: http://us%3fr@host 7959s # Test 13: http://host?query 7959s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 7959s # 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 7959s # Test 16: http://space/%20 7959s # Test 17: http://delims/%3C%3E%23%25%22 7959s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 7959s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 7959s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 7959s # Test 21: http://[3ffe:2a00:100:7031::1] 7959s # Test 22: http://[1080::8:800:200C:417A]/foo 7959s # Test 23: http://[::192.9.5.5]/ipng 7959s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 7959s # Test 25: http://[2010:836B:4179::836B:4179] 7959s # Test 26: http://host/path with spaces 7959s # Test 27: http://host/path 7959s # Test 28: http://host/path 7959s # Test 29: http://host 7959s # Test 30: http://host:999 7959s # Test 31: http://host/pa 7959s # th 7959s # Test 32: http: 7959s # //host/path 7959s # Test 33: http:// host/path 7959s # Test 34: http://host/path? 7959s # Test 35: http://host/path# 7959s # Test 36: http://host/path% 7959s # Test 37: http://h%ost/path 7959s # Test 38: http://host/path%% 7959s # Test 39: http://host/path%%% 7959s # Test 40: http://host/path%/x/ 7959s # Test 41: http://host/path%0x/ 7959s # Test 42: http://host/path%ax 7959s # Test 43: http://host/p?th/ 7959s # Test 44: HTTP://////////////// 7959s # Test 45: http://@host 7959s # Test 46: http://:@host 7959s # Test 47: scheme://foo%3Abar._webdav._tcp.local 7959s # Test 48: http://example.com/.. 7959s # Test 49: foo0://host/path 7959s # Test 50: f0.o://host/path 7959s # Test 51: http++://host/path 7959s # Test 52: http-ish://host/path 7959s # Test 53: http://[fe80::dead:beef%]/ 7959s # Test 54: http://[fe80::dead:beef%em1]/ 7959s # Test 55: http://[fe80::dead:beef%em1]/ 7959s # Test 56: http://[fe80::dead:beef%25em1]/ 7959s # Test 57: http://[fe80::dead:beef%25em1%20]/ 7959s # Test 58: http://[fe80::dead:beef%25em%31]/ 7959s # Test 59: http://[fe80::dead:beef%10]/ 7959s # Test 60: http://[fe80::dead:beef%10]/ 7959s # Test 61: http://[fe80::dead:beef%25]/ 7959s # Test 62: http://[fe80::dead:beef%25]/ 7959s # Test 63: http://[192.168.0.1%25em1]/ 7959s # Test 64: http://[fe80::dead:beef%2em1]/ 7959s # Test 65: http://[fe80::dead:beef%2em1]/ 7959s # Test 66: http://[fe80::dead:beef%25em1%00]/ 7959s # Test 67: http://[fe80::dead:beef%25em1%00]/ 7959s # Test 68: http://xn--mixed-?p/ 7959s # Test 69: data:./// 7959s # Test 70: data:/.// 7959s ok 19 /uri/parsing/absolute 7959s ok 20 /uri/parsing/relative 7959s # End of parsing tests 7959s # Start of iter-params tests 7959s # URI 0: p1=foo&p2=bar;p3=baz 7959s # URI 1: p1=foo&p2=bar 7959s # URI 2: p1=foo&&P1=bar 7959s # URI 3: %00=foo 7959s # URI 4: p1=%00 7959s # URI 5: p1=foo&p1=bar 7959s # URI 6: p1=foo&P1=bar 7959s # URI 7: =% 7959s # URI 8: = 7959s # URI 9: foo 7959s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 7959s ok 21 /uri/iter-params/nul-terminated 7959s # URI 0: p1=foo&p2=bar;p3=baz 7959s # URI 1: p1=foo&p2=bar 7959s # URI 2: p1=foo&&P1=bar 7959s # URI 3: %00=foo 7959s # URI 4: p1=%00 7959s # URI 5: p1=foo&p1=bar 7959s # URI 6: p1=foo&P1=bar 7959s # URI 7: =% 7959s # URI 8: = 7959s # URI 9: foo 7959s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 7959s ok 22 /uri/iter-params/length 7959s # End of iter-params tests 7959s # Start of parse-params tests 7959s # URI 0: p1=foo&p2=bar;p3=baz 7959s # Executing: glib/uri.test 7959s # URI 1: p1=foo&p2=bar 7959s # URI 2: p1=foo&&P1=bar 7959s # URI 3: %00=foo 7959s # URI 4: p1=%00 7959s # URI 5: p1=foo&p1=bar 7959s # URI 6: p1=foo&P1=bar 7959s # URI 7: =% 7959s # URI 8: = 7959s # URI 9: foo 7959s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 7959s ok 23 /uri/parse-params/nul-terminated 7959s # URI 0: p1=foo&p2=bar;p3=baz 7959s # URI 1: p1=foo&p2=bar 7959s # URI 2: p1=foo&&P1=bar 7959s # URI 3: %00=foo 7959s # URI 4: p1=%00 7959s # URI 5: p1=foo&p1=bar 7959s # URI 6: p1=foo&P1=bar 7959s # URI 7: =% 7959s # URI 8: = 7959s # URI 9: foo 7959s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 7959s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 7959s ok 24 /uri/parse-params/length 7959s # End of parse-params tests 7959s # End of uri tests 7959s ok - glib/uri.test 7959s # Running test: glib/portal-support-env-var.test 7959s TAP version 14 7959s # random seed: R02S768538b55d61ab8d71964a829619de2c 7959s 1..1 7959s # Start of portal-support tests 7960s ok 1 /portal-support/env-var 7960s # End of portal-support tests 7960s ok - glib/portal-support-env-var.test 7960s # Running test: glib/messages-low-memory.py.test 7962s TAP version 13 7962s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 7962s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 7962s # tmpdir: /tmp/tmpubvb4ko1 7962s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 7962s # Return code: -6 7962s # Output: 7962s # 7962s # Error: 7962s # GLib-Message: 18:03:06.891: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 7962s # GLib-Message: 18:03:06.909: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 7962s # ../../../glib/gprintf.c:350: failed to allocate memory 7962s 1..1 7963s ok - glib/messages-low-memory.py.test 7963s # Running test: glib/environment.test 7963s TAP version 14 7963s # random seed: R02Sf9ab59289c5acb5efc06e35282553103 7963s 1..6 7963s # Start of environ tests 7963s # /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. 7963s ok 1 /environ/listenv 7963s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 7963s ok 2 /environ/getenv 7963s ok 3 /environ/setenv 7963s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 7963s ok 4 /environ/array 7963s # /environ/null summary: Test getting and setting variables on a NULL envp array. 7963s ok 5 /environ/null 7963s # /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. 7963s ok 6 /environ/case 7963s # End of environ tests 7963s ok - glib/environment.test 7963s # Running test: glib/overflow.test 7963s TAP version 14 7963s # random seed: R02Sf6e06bd5339488ab5589c1d955aa7eca 7963s 1..6 7963s # Start of glib tests 7963s # Start of checked-math tests 7963s ok 1 /glib/checked-math/guint-add 7963s ok 2 /glib/checked-math/guint-mul 7963s ok 3 /glib/checked-math/guint64-add 7963s ok 4 /glib/checked-math/guint64-mul 7963s ok 5 /glib/checked-math/gsize-add 7963s ok 6 /glib/checked-math/gsize-mul 7963s # End of checked-math tests 7963s # End of glib tests 7963s ok - glib/overflow.test 7963s # Running test: glib/readwrite.test 7963s TAP version 14 7963s # random seed: R02S3fab2501d62be156bfc406394c3c8d02 7963s 1..3 7963s # Start of readwrite tests 7963s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 7963s ok 1 /readwrite/test_g_file_open_readwrite 7963s ok 2 /readwrite/test_g_file_create_readwrite 7963s ok 3 /readwrite/test_g_file_replace_readwrite 7963s # End of readwrite tests 7963s ok - glib/readwrite.test 7963s # Running test: glib/gapplication.test 7964s TAP version 14 7964s # random seed: R02S62de005f2a6fac099fe85e24c8734c06 7964s 1..24 7964s # Start of gapplication tests 7964s ok 1 /gapplication/no-dbus 7964s ok 2 /gapplication/no-appid 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s ok 3 /gapplication/properties 7964s ok 4 /gapplication/app-id 7964s # Executing: glib/gapplication.test 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7964s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s ok 5 /gapplication/quit 7965s ok 6 /gapplication/registered 7965s ok 7 /gapplication/local-actions 7965s ok 8 /gapplication/local-command-line 7965s ok 9 /gapplication/resource-path 7965s ok 10 /gapplication/test-help 7965s ok 11 /gapplication/command-line-done 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7965s ok 12 /gapplication/test-busy 7965s ok 13 /gapplication/test-handle-local-options1 7966s ok 14 /gapplication/test-handle-local-options2 7966s ok 15 /gapplication/test-handle-local-options3 7966s ok 16 /gapplication/api 7966s ok 17 /gapplication/version 7966s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7966s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7966s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7966s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7966s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7966s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7966s # launching subprocess 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s ok 18 /gapplication/replace 7967s # slow test /gapplication/replace executed in 0.90 secs 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7967s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7967s # launching subprocess 7968s Failed to register: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s ok 19 /gapplication/no-replace 7968s # slow test /gapplication/no-replace executed in 0.98 secs 7968s # Start of dbus tests 7968s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7968s # Message 0 7968s # Message 1 7968s # Message 2 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s ok 20 /gapplication/dbus/activate 7968s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7968s # Message 0 7969s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 7969s # Message 1 7969s # Message 2 7969s # Message 3 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s ok 21 /gapplication/dbus/open 7969s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7969s # Message 0 7969s # Message 1 7969s # Message 2 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s ok 22 /gapplication/dbus/command-line 7969s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 7969s # Executing: glib/gapplication.test 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7969s ok 23 /gapplication/dbus/command-line-done 7969s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 7970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7970s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 7970s # Message 0 7970s # Message 1 7971s # Message 2 7971s # Message 3 7971s # Message 4 7971s # Message 5 7971s # Message 6 7971s # Message 7 7971s # Message 8 7971s # Message 9 7971s # Message 10 7971s # Message 11 7971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7971s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 7971s ok 24 /gapplication/dbus/activate-action 7971s # slow test /gapplication/dbus/activate-action executed in 1.85 secs 7971s # End of dbus tests 7971s # End of gapplication tests 7971s ok - glib/gapplication.test 7972s # Running test: glib/relation.test 7972s TAP version 14 7972s # random seed: R02S80b89da244411de8854b36530289c12b 7972s 1..1 7972s # Start of glib tests 7972s ok 1 /glib/relation 7972s # End of glib tests 7972s ok - glib/relation.test 7972s # Running test: glib/gdbus-sasl.test 7972s TAP version 14 7972s # random seed: R02Scd210c290f2bf6ac62593cc4066d2434 7972s 1..1 7972s # Start of gdbus tests 7972s # Start of sasl tests 7972s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/home 7972s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/cache 7972s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/system-config2 7972s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/config 7972s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/system-data2 7972s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/data 7972s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/state 7972s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_1C9352/gdbus/sasl/server/.dirs/runtime 7973s # New handshake: EXTERNAL with incorrect initial response 7973s # C:“AUTH EXTERNAL 30†7973s # Expect: /^REJECTED.*$/ 7973s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†7973s # New handshake: EXTERNAL without initial response, failing to authenticate 7973s # C:“AUTH EXTERNAL†7973s # Expect: /^DATA$/ 7973s # S:“DATA†7973s # C:“DATA 30†7973s # Expect: /^REJECTED.*$/ 7973s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†7973s # New handshake: EXTERNAL with initial response 7973s # C:“AUTH EXTERNAL 31303030†7973s # Expect: /^OK [0-9a-f]+$/ 7973s # S:“OK 86789caa1b79af4aaa6000cc681508e4†7973s # New handshake: EXTERNAL without initial response 7973s # C:“AUTH EXTERNAL†7973s # Expect: /^DATA$/ 7973s # S:“DATA†7973s # C:“DATA 31303030†7973s # Expect: /^OK [0-9a-f]+$/ 7973s # S:“OK 86789caa1b79af4aaa6000cc681508e4†7973s # New handshake: EXTERNAL with empty authorization identity 7973s # C:“AUTH EXTERNAL†7973s # Expect: /^DATA$/ 7973s # S:“DATA†7973s # C:“DATA†7973s # Expect: /^OK [0-9a-f]+$/ 7973s # S:“OK 86789caa1b79af4aaa6000cc681508e4†7973s # New handshake: EXTERNAL with empty authorization identity and whitespace 7973s # C:“AUTH EXTERNAL†7973s # Expect: /^DATA$/ 7973s # S:“DATA†7973s # C:“DATA †7973s # Expect: /^OK [0-9a-f]+$/ 7973s # S:“OK 86789caa1b79af4aaa6000cc681508e4†7973s ok 1 /gdbus/sasl/server 7973s # End of sasl tests 7973s # End of gdbus tests 7973s ok - glib/gdbus-sasl.test 7973s # Running test: glib/rwlock.test 7973s TAP version 14 7973s # random seed: R02S79c3a87ea826d99d1219a47d935dbd87 7973s 1..8 7973s # Start of thread tests 7973s ok 1 /thread/rwlock1 7973s ok 2 /thread/rwlock2 7973s ok 3 /thread/rwlock3 7973s ok 4 /thread/rwlock4 7973s ok 5 /thread/rwlock5 7973s ok 6 /thread/rwlock6 7974s # Executing: glib/rwlock.test 7979s # Executing: glib/rwlock.test 7984s # Executing: glib/rwlock.test 7989s # Executing: glib/rwlock.test 7994s # Executing: glib/rwlock.test 7999s # Executing: glib/rwlock.test 8004s # Executing: glib/rwlock.test 8009s # Executing: glib/rwlock.test 8014s # Executing: glib/rwlock.test 8019s # Executing: glib/rwlock.test 8024s # Executing: glib/rwlock.test 8029s # Executing: glib/rwlock.test 8034s # Executing: glib/rwlock.test 8039s # Executing: glib/rwlock.test 8044s # Executing: glib/rwlock.test 8047s ok 7 /thread/rwlock7 8047s # slow test /thread/rwlock7 executed in 74.00 secs 8048s ok 8 /thread/rwlock8 8048s # slow test /thread/rwlock8 executed in 1.40 secs 8048s # End of thread tests 8048s ok - glib/rwlock.test 8049s # Running test: glib/simple-proxy.test 8049s TAP version 14 8049s # random seed: R02Sd91943df5c3e505a62dd51f1a9420340 8049s 1..3 8049s # Start of static-proxy tests 8049s ok 1 /static-proxy/uri 8049s ok 2 /static-proxy/socks 8049s ok 3 /static-proxy/ignore 8049s # End of static-proxy tests 8049s ok - glib/simple-proxy.test 8049s # Running test: glib/properties-refcount1.test 8049s TAP version 14 8049s # random seed: R02Sda166df969bc50ed750d0c50ce83c8ce 8049s 1..1 8049s # Start of gobject tests 8049s # Start of refcount tests 8049s # Executing: glib/properties-refcount1.test 8050s # .c 8050s # .e 8050s # .b 8050s # .d 8050s # .f 8051s # .c 8051s # .b 8051s # .e 8051s # .d 8051s # .f 8052s # .c 8052s # .e 8052s # .b 8052s # .d 8052s # .f 8052s ok 1 /gobject/refcount/properties-1 8052s # slow test /gobject/refcount/properties-1 executed in 3.03 secs 8052s # End of refcount tests 8052s # End of gobject tests 8052s ok - glib/properties-refcount1.test 8052s # Running test: glib/gdbus-test-codegen.test 8052s TAP version 14 8052s # random seed: R02Sdcaefb43b48ea7ca8e5a14074cff7d75 8052s 1..8 8052s # Start of gdbus tests 8052s # Start of codegen tests 8052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/home 8052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/cache 8052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/system-config2 8052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/config 8052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/system-data2 8052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/data 8052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/state 8052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/annotations/.dirs/runtime 8052s ok 1 /gdbus/codegen/annotations 8053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/home 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/cache 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/system-config2 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/config 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/system-data2 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/data 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/state 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/interface_stability/.dirs/runtime 8053s ok 2 /gdbus/codegen/interface_stability 8053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/home 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/cache 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/system-config2 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/config 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/system-data2 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/data 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/state 8053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/object-manager/.dirs/runtime 8054s # Executing: glib/gdbus-test-codegen.test 8054s ok 3 /gdbus/codegen/object-manager 8054s # slow test /gdbus/codegen/object-manager executed in 1.76 secs 8054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/home 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/cache 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/system-config2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/config 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/system-data2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/data 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/state 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/property-naming/.dirs/runtime 8054s ok 4 /gdbus/codegen/property-naming 8054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/home 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/cache 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/system-config2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/config 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/system-data2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/data 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/state 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/autocleanups/.dirs/runtime 8054s ok 5 /gdbus/codegen/autocleanups 8054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/home 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/cache 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/system-config2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/config 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/system-data2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/data 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/state 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/deprecations/.dirs/runtime 8054s ok 6 /gdbus/codegen/deprecations 8054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/home 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/cache 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/system-config2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/config 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/system-data2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/data 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/state 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/standalone-interface-info/.dirs/runtime 8054s ok 7 /gdbus/codegen/standalone-interface-info 8054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/home 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/cache 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/system-config2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/config 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/system-data2 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/data 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/state 8054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_JVTA62/gdbus/codegen/unix-fd-list/.dirs/runtime 8054s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 8054s ok 8 /gdbus/codegen/unix-fd-list 8054s # End of codegen tests 8054s # End of gdbus tests 8054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8054s ok - glib/gdbus-test-codegen.test 8055s # Running test: glib/g-file.test 8055s TAP version 14 8055s # random seed: R02S840c5fc7e4b652e3f405bb8a7609720a 8055s 1..8 8055s # Start of g-file tests 8055s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 8055s ok 1 /g-file/test_g_file_new_null 8055s ok 2 /g-file/test_g_file_new_for_path 8055s ok 3 /g-file/test_g_file_new_for_uri 8055s ok 4 /g-file/test_g_file_dup 8055s ok 5 /g-file/test_g_file_get_parse_name_utf8 8055s file:///tmp/test-tmp-glib_g-file.test-6UOX52 8055s file:///tmp 8055s file:///tmp 8055s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 8055s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 8055s ok 6 /g-file/test_g_file_new_for_commandline_arg 8055s /dir1 /dir1/dir2/dir3/ 8055s /dir1/ /dir1/dir2/dir3/ 8055s /dir1 /dir1/dir2/dir3 8055s /dir1/ /dir1/dir2/dir3 8055s /tmp/ /something/ 8055s /dir1/dir2 /dir1/ 8055s //dir1/new //dir1/new/dir2/dir3 8055s /dir/UTF-8 p??li? ?lu?ou?k? k?? /dir/UTF-8 p??li? ?lu?ou?k? k??/dir2 8055s file:///dir1 file:///dir1/dir2/dir3/ 8055s file:///dir1/ file:///dir1/dir2/dir3/ 8055s file:///dir1 file:///dir1/dir2/dir3 8055s file:///dir1/ file:///dir1/dir2/dir3 8055s file:///tmp/ file:///something/ 8055s file:///dir1/dir2 file:///dir1/ 8055s file:////dir1/new file:////dir1/new/dir2/dir3 8055s 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 8055s ok 7 /g-file/test_g_file_has_prefix 8055s ok 8 /g-file/test_g_file_get_parent_child 8055s # End of g-file tests 8055s ok - glib/g-file.test 8055s # Running test: glib/asyncqueue.test 8055s TAP version 14 8055s # random seed: R02Sf535e21bc81977078950469898b70f86 8055s 1..7 8055s # Start of asyncqueue tests 8055s ok 1 /asyncqueue/basics 8055s ok 2 /asyncqueue/sort 8055s ok 3 /asyncqueue/destroy 8055s ok 4 /asyncqueue/threads 8055s ok 5 /asyncqueue/timed 8055s ok 6 /asyncqueue/remove 8055s ok 7 /asyncqueue/push_front 8055s # End of asyncqueue tests 8055s ok - glib/asyncqueue.test 8056s # Running test: glib/binding.test 8056s TAP version 14 8056s # random seed: R02Sa18421a324bb6a86736a67dd086d849a 8056s 1..19 8056s # Start of binding tests 8056s ok 1 /binding/default 8056s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 8056s ok 2 /binding/canonicalisation 8056s ok 3 /binding/bidirectional 8056s ok 4 /binding/transform 8056s ok 5 /binding/transform-default 8056s ok 6 /binding/transform-closure 8056s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 8056s ok 7 /binding/chain 8056s ok 8 /binding/sync-create 8056s ok 9 /binding/invert-boolean 8056s ok 10 /binding/same-object 8056s ok 11 /binding/unbind 8056s ok 12 /binding/unbind-weak 8056s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 8056s ok 13 /binding/unbind-multiple 8056s ok 14 /binding/fail 8056s ok 15 /binding/interface 8056s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 8057s ok 16 /binding/concurrent-unbind 8057s # slow test /binding/concurrent-unbind executed in 0.81 secs 8057s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 8057s ok 17 /binding/concurrent-finalizing 8057s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 8057s ok 18 /binding/dispose-source 8057s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 8057s ok 19 /binding/dispose-target 8057s # End of binding tests 8057s ok - glib/binding.test 8057s # Running test: glib/protocol.test 8057s TAP version 14 8057s # random seed: R02S81a701b0faafe335b5d1d8f2f59b79eb 8057s 1..9 8057s # Start of glib tests 8057s # Start of testing tests 8057s # Start of protocol tests 8057s ok 1 /glib/testing/protocol/debug 8057s ok 2 /glib/testing/protocol/info 8057s ok 3 /glib/testing/protocol/message 8057s ok 4 /glib/testing/protocol/warning 8057s ok 5 /glib/testing/protocol/critical 8057s ok 6 /glib/testing/protocol/error 8057s ok 7 /glib/testing/protocol/gtest-message 8057s ok 8 /glib/testing/protocol/test-message 8058s ok 9 /glib/testing/protocol/test-error 8058s # End of protocol tests 8058s # End of testing tests 8058s # End of glib tests 8058s ok - glib/protocol.test 8058s # Running test: glib/portal-support-snap-classic.test 8058s TAP version 14 8058s # random seed: R02S721c7532ecb39fc210e7c812bd0d51fa 8058s 1..3 8058s # Start of portal-support tests 8058s # Start of snap-classic tests 8058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/home 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/cache 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/system-config2 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/config 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/system-data2 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/data 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/state 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl/.dirs/runtime 8058s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/no-snapctl: No such file or directory 8058s ok 1 /portal-support/snap-classic/no-snapctl 8058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/home 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/cache 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/system-config2 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/config 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/system-data2 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/data 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/state 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/runtime 8058s # Created snap.yaml in /tmp/test_portal-support-snap-classic_BGLZ52/meta/snap.yaml 8058s # Created snapctl in /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none/.dirs/runtime/snapctl 8058s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/none: No such file or directory 8058s ok 2 /portal-support/snap-classic/none 8058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/home 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/cache 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/system-config2 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/config 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/system-data2 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/data 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/state 8058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/runtime 8058s # Created snap.yaml in /tmp/test_portal-support-snap-classic_BGLZ52/meta/snap.yaml 8058s # Created snapctl in /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all/.dirs/runtime/snapctl 8058s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_BGLZ52/portal-support/snap-classic/all: No such file or directory 8058s ok 3 /portal-support/snap-classic/all 8058s # End of snap-classic tests 8058s # End of portal-support tests 8058s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_BGLZ52: No such file or directory 8058s ok - glib/portal-support-snap-classic.test 8058s # Running test: glib/gio-tool.py.test 8059s # Executing: glib/gio-tool.py.test 8061s TAP version 13 8061s ok 1 __main__.TestGioTool.test_help 8061s # gio: /usr/bin/gio 8061s # tmpdir: /tmp/tmp0yn7kopb 8061s # Running: ['/usr/bin/gio', '--help'] 8061s # Return code: 0 8061s # Output: 8061s # Usage: 8061s # gio COMMAND [ARGS…] 8061s # 8061s # Commands: 8061s # help Print help 8061s # version Print version 8061s # cat Concatenate files to standard output 8061s # copy Copy one or more files 8061s # info Show information about locations 8061s # launch Launch an application from a desktop file 8061s # list List the contents of locations 8061s # mime Get or set the handler for a mimetype 8061s # mkdir Create directories 8061s # monitor Monitor files and directories for changes 8061s # mount Mount or unmount the locations 8061s # move Move one or more files 8061s # open Open files with the default application 8061s # rename Rename a file 8061s # remove Delete one or more files 8061s # save Read from standard input and save 8061s # set Set a file attribute 8061s # trash Move files or directories to the trash 8061s # tree Lists the contents of locations in a tree 8061s # 8061s # Use “gio help COMMAND†to get detailed help. 8061s # Error: 8061s # 8061s # Running: ['/usr/bin/gio', 'help'] 8061s # Return code: 0 8061s # Output: 8061s # Usage: 8061s # gio COMMAND [ARGS…] 8061s # 8061s # Commands: 8061s # help Print help 8061s # version Print version 8061s # cat Concatenate files to standard output 8061s # copy Copy one or more files 8061s # info Show information about locations 8061s # launch Launch an application from a desktop file 8061s # list List the contents of locations 8061s # mime Get or set the handler for a mimetype 8061s # mkdir Create directories 8061s # monitor Monitor files and directories for changes 8061s # mount Mount or unmount the locations 8061s # move Move one or more files 8061s # open Open files with the default application 8061s # rename Rename a file 8061s # remove Delete one or more files 8061s # save Read from standard input and save 8061s # set Set a file attribute 8061s # trash Move files or directories to the trash 8061s # tree Lists the contents of locations in a tree 8061s # 8061s # Use “gio help COMMAND†to get detailed help. 8061s # Error: 8061s ok 2 __main__.TestGioTool.test_info_non_default_attributes 8061s # gio: /usr/bin/gio 8061s # tmpdir: /tmp/tmpaw1fp4ov 8061s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpaw1fp4ov/tmpiab3zd0_'] 8061s # Return code: 0 8061s # Output: 8061s # uri: file:///tmp/tmpaw1fp4ov/tmpiab3zd0_ 8061s # local path: /tmp/tmpaw1fp4ov/tmpiab3zd0_ 8061s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 8061s # attributes: 8061s # standard::content-type: application/x-zerosize 8061s # Error: 8061s ok 3 __main__.TestGioTool.test_no_args 8061s # gio: /usr/bin/gio 8061s # tmpdir: /tmp/tmpombmzyb7 8061s # Running: ['/usr/bin/gio'] 8061s # Return code: 1 8061s # Output: 8061s # 8061s # Error: 8061s # Usage: 8061s # gio COMMAND [ARGS…] 8061s # 8061s # Commands: 8061s # help Print help 8061s # version Print version 8061s # cat Concatenate files to standard output 8061s # copy Copy one or more files 8061s # info Show information about locations 8061s # launch Launch an application from a desktop file 8061s # list List the contents of locations 8061s # mime Get or set the handler for a mimetype 8061s # mkdir Create directories 8061s # monitor Monitor files and directories for changes 8061s # mount Mount or unmount the locations 8061s # move Move one or more files 8061s # open Open files with the default application 8061s # rename Rename a file 8061s # remove Delete one or more files 8061s # save Read from standard input and save 8061s # set Set a file attribute 8061s # trash Move files or directories to the trash 8061s # tree Lists the contents of locations in a tree 8061s # 8061s # Use “gio help COMMAND†to get detailed help. 8061s 1..3 8062s ok - glib/gio-tool.py.test 8062s # Running test: glib/gvariant.test 8062s TAP version 14 8062s # random seed: R02Sb942de7c8179aaa611daa5d63f6a945c 8062s 1..69 8062s # Start of gvariant tests 8063s ok 1 /gvariant/type 8063s # slow test /gvariant/type executed in 0.85 secs 8064s # Executing: glib/gvariant.test 8066s ok 2 /gvariant/typeinfo 8066s # slow test /gvariant/typeinfo executed in 3.71 secs 8066s ok 3 /gvariant/string 8066s ok 4 /gvariant/utf8 8067s ok 5 /gvariant/utf8-new-strings 8069s # Executing: glib/gvariant.test 8074s # Executing: glib/gvariant.test 8076s ok 6 /gvariant/containers 8076s # slow test /gvariant/containers executed in 9.72 secs 8076s ok 7 /gvariant/format-strings 8076s ok 8 /gvariant/invalid-varargs 8076s ok 9 /gvariant/varargs 8076s ok 10 /gvariant/valist 8076s ok 11 /gvariant/builder-memory 8079s # Executing: glib/gvariant.test 8080s ok 12 /gvariant/hashing 8080s # slow test /gvariant/hashing executed in 3.46 secs 8080s ok 13 /gvariant/byteswap 8084s # Executing: glib/gvariant.test 8087s ok 14 /gvariant/parser 8087s # slow test /gvariant/parser executed in 6.86 secs 8087s ok 15 /gvariant/parse-failures 8087s ok 16 /gvariant/parse-positional 8087s ok 17 /gvariant/floating 8087s ok 18 /gvariant/bytestring 8087s ok 19 /gvariant/lookup-value 8087s ok 20 /gvariant/lookup 8087s ok 21 /gvariant/compare 8087s ok 22 /gvariant/equal 8087s ok 23 /gvariant/fixed-array 8087s ok 24 /gvariant/check-format-string 8087s ok 25 /gvariant/checksum-basic 8087s ok 26 /gvariant/checksum-nested 8087s ok 27 /gvariant/gbytes 8087s ok 28 /gvariant/print-context 8087s ok 29 /gvariant/error-quark 8087s ok 30 /gvariant/stack-builder-init 8087s ok 31 /gvariant/stack-builder-init-static 8087s ok 32 /gvariant/stack-builder-init-unset 8087s ok 33 /gvariant/stack-dict-init 8087s ok 34 /gvariant/unaligned-construction 8087s # Start of type tests 8087s # Start of string-scan tests 8087s # Start of recursion tests 8087s ok 35 /gvariant/type/string-scan/recursion/tuple 8087s ok 36 /gvariant/type/string-scan/recursion/array 8087s # End of recursion tests 8087s # End of string-scan tests 8087s # End of type tests 8087s # Start of serialiser tests 8088s ok 37 /gvariant/serialiser/maybe 8088s # slow test /gvariant/serialiser/maybe executed in 0.59 secs 8089s # Executing: glib/gvariant.test 8091s ok 38 /gvariant/serialiser/array 8091s # slow test /gvariant/serialiser/array executed in 3.71 secs 8093s ok 39 /gvariant/serialiser/tuple 8093s # slow test /gvariant/serialiser/tuple executed in 1.93 secs 8093s ok 40 /gvariant/serialiser/variant 8093s ok 41 /gvariant/serialiser/strings 8094s # Executing: glib/gvariant.test 8099s ok 42 /gvariant/serialiser/byteswap 8099s # slow test /gvariant/serialiser/byteswap executed in 5.52 secs 8099s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 8099s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 8099s ok 43 /gvariant/serialiser/children 8099s # Start of byteswap tests 8099s ok 44 /gvariant/serialiser/byteswap/zero-sized 8099s # End of byteswap tests 8099s # Start of fuzz tests 8099s # Executing: glib/gvariant.test 8101s ok 45 /gvariant/serialiser/fuzz/1% 8101s # slow test /gvariant/serialiser/fuzz/1% executed in 1.96 secs 8104s # Executing: glib/gvariant.test 8107s ok 46 /gvariant/serialiser/fuzz/5% 8107s # slow test /gvariant/serialiser/fuzz/5% executed in 6.26 secs 8109s # Executing: glib/gvariant.test 8112s ok 47 /gvariant/serialiser/fuzz/9% 8112s # slow test /gvariant/serialiser/fuzz/9% executed in 4.46 secs 8114s # Executing: glib/gvariant.test 8119s # Executing: glib/gvariant.test 8124s # Executing: glib/gvariant.test 8125s ok 48 /gvariant/serialiser/fuzz/13% 8125s # slow test /gvariant/serialiser/fuzz/13% executed in 13.75 secs 8129s # Executing: glib/gvariant.test 8134s ok 49 /gvariant/serialiser/fuzz/17% 8134s # slow test /gvariant/serialiser/fuzz/17% executed in 8.51 secs 8134s # End of fuzz tests 8134s # End of serialiser tests 8134s # Start of utf8 tests 8134s # Start of subprocess tests 8134s # End of subprocess tests 8134s # End of utf8 tests 8134s # Start of varargs tests 8134s # Start of subprocess tests 8134s # End of subprocess tests 8134s # End of varargs tests 8134s # Start of byteswap tests 8134s # /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. 8134s ok 50 /gvariant/byteswap/non-normal-non-aligned 8134s # End of byteswap tests 8134s # Start of parser tests 8134s ok 51 /gvariant/parser/integer-bounds 8134s ok 52 /gvariant/parser/recursion 8134s # Start of recursion tests 8134s ok 53 /gvariant/parser/recursion/typedecls 8134s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 8134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 8134s # Text form 0: @mmmu 5 8134s # Text form 1: @mmmas ['hello'] 8134s # Text form 2: @mmmu just just nothing 8134s # Text form 3: @mmmas just just nothing 8134s # Text form 4: @mmmu just nothing 8134s # Text form 5: @mmmas just nothing 8134s # Text form 6: @mmmu nothing 8134s # Text form 7: @mmmas nothing 8134s ok 54 /gvariant/parser/recursion/maybes 8134s # End of recursion tests 8134s # End of parser tests 8134s # Start of parse tests 8134s # Start of subprocess tests 8134s # End of subprocess tests 8134s # End of parse tests 8134s # Start of normal-checking tests 8134s ok 55 /gvariant/normal-checking/tuples 8134s ok 56 /gvariant/normal-checking/array-offsets 8134s ok 57 /gvariant/normal-checking/array-offsets2 8134s ok 58 /gvariant/normal-checking/tuple-offsets 8134s ok 59 /gvariant/normal-checking/tuple-offsets2 8134s ok 60 /gvariant/normal-checking/tuple-offsets3 8134s ok 61 /gvariant/normal-checking/tuple-offsets4 8134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 8134s ok 62 /gvariant/normal-checking/tuple-offsets5 8134s ok 63 /gvariant/normal-checking/empty-object-path 8134s # Start of array-offsets tests 8134s ok 64 /gvariant/normal-checking/array-offsets/overlapped 8134s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 8134s # End of array-offsets tests 8134s # Start of tuple-offsets tests 8134s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 8134s # End of tuple-offsets tests 8134s # End of normal-checking tests 8134s # Start of recursion-limits tests 8134s ok 67 /gvariant/recursion-limits/variant-in-variant 8134s ok 68 /gvariant/recursion-limits/array-in-variant 8134s # End of recursion-limits tests 8134s # End of gvariant tests 8134s # Start of gvarianttype tests 8134s ok 69 /gvarianttype/hash 8134s # End of gvarianttype tests 8134s ok - glib/gvariant.test 8134s # Running test: glib/unicode-encoding.test 8134s TAP version 14 8134s # random seed: R02Sd047cf54d299c149bc5fc5abc31816f9 8134s 1..1 8134s # Start of unicode tests 8134s # Executing: glib/unicode-encoding.test 8134s ok 1 /unicode/encoding 8134s # End of unicode tests 8134s ok - glib/unicode-encoding.test 8134s # Running test: glib/hash.test 8134s TAP version 14 8134s # random seed: R02S66e27206d81ab348f75db5cec9d4ff59 8134s 1..34 8134s # Start of hash tests 8134s ok 1 /hash/misc 8135s ok 2 /hash/one 8135s ok 3 /hash/honeyman 8135s ok 4 /hash/direct 8135s ok 5 /hash/direct2 8135s ok 6 /hash/int 8135s ok 7 /hash/int64 8135s ok 8 /hash/double 8135s ok 9 /hash/string 8135s ok 10 /hash/set 8135s ok 11 /hash/set-ref 8135s ok 12 /hash/ref 8135s ok 13 /hash/remove-all 8135s ok 14 /hash/recursive-remove-all 8135s ok 15 /hash/find 8135s ok 16 /hash/foreach 8135s ok 17 /hash/foreach-steal 8135s ok 18 /hash/steal-extended 8135s ok 19 /hash/steal-all-keys 8135s ok 20 /hash/steal-all-values 8135s ok 21 /hash/lookup-extended 8135s ok 22 /hash/new-similar 8135s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 8135s ok 23 /hash/lookup-null-key 8135s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 8135s ok 24 /hash/destroy-modify 8135s ok 25 /hash/consistency 8135s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 8135s ok 26 /hash/iter-replace 8135s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 8135s ok 27 /hash/set-insert-corruption 8135s ok 28 /hash/set-to-strv 8135s ok 29 /hash/get-keys-as-ptr-array 8135s ok 30 /hash/get-values-as-ptr-array 8135s ok 31 /hash/primes 8135s # Start of int64 tests 8135s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 8135s ok 32 /hash/int64/collisions 8135s # End of int64 tests 8135s # Start of double tests 8135s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 8135s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 8135s ok 33 /hash/double/collisions 8135s # End of double tests 8135s # Start of recursive-remove-all tests 8135s # End of recursive-remove-all tests 8135s # Start of steal-extended tests 8135s ok 34 /hash/steal-extended/optional 8135s # End of steal-extended tests 8135s ok - glib/hash.test 8135s # End of hash tests 8135s # Running test: glib/macros-c-11.test 8135s TAP version 14 8135s # random seed: R02S9a7d15d9fb187098a809f15a1dcfd078 8135s 1..4 8135s # Start of C tests 8135s ok 1 /C/standard-11 8135s # End of C tests 8135s # Start of alignof tests 8135s ok 2 /alignof/fallback 8135s # End of alignof tests 8135s # Start of assert tests 8135s ok 3 /assert/static 8135s # End of assert tests 8135s # Start of struct tests 8135s ok 4 /struct/sizeof_member 8135s # End of struct tests 8135s ok - glib/macros-c-11.test 8135s # Running test: glib/unix-streams.test 8135s TAP version 14 8135s # random seed: R02Sbdda44fce09a341654a28042a09339b2 8135s 1..9 8135s # Start of unix-streams tests 8135s ok 1 /unix-streams/basic 8136s ok 2 /unix-streams/pipe-io-test 8136s # slow test /unix-streams/pipe-io-test executed in 0.55 secs 8136s ok 3 /unix-streams/nonblocking-io-test 8136s # slow test /unix-streams/nonblocking-io-test executed in 0.52 secs 8136s ok 4 /unix-streams/read_write 8136s ok 5 /unix-streams/read_writev 8136s ok 6 /unix-streams/write-wouldblock 8136s ok 7 /unix-streams/writev-wouldblock 8136s ok 8 /unix-streams/write-async-wouldblock 8136s ok 9 /unix-streams/writev-async-wouldblock 8136s # End of unix-streams tests 8136s ok - glib/unix-streams.test 8136s # Running test: glib/testing.test 8136s TAP version 14 8136s # random seed: R02S54924aae430f2ff968e2bb1874d2224d 8136s 1..1 8136s # Start of assert tests 8137s ok 1 /assert/finalize_object 8137s # Start of finalize_object tests 8137s # Start of subprocess tests 8137s # End of subprocess tests 8137s # End of finalize_object tests 8137s # End of assert tests 8137s ok - glib/testing.test 8137s # Running test: glib/utf8-pointer.test 8137s TAP version 14 8137s # random seed: R02S10f50f4e96bcdf58d769293094f86616 8137s 1..3 8137s # Start of utf8 tests 8139s # Executing: glib/utf8-pointer.test 8140s ok 1 /utf8/offsets 8140s # slow test /utf8/offsets executed in 3.37 secs 8140s ok 2 /utf8/lengths 8140s ok 3 /utf8/find 8140s # End of utf8 tests 8140s ok - glib/utf8-pointer.test 8140s # Running test: glib/value.test 8140s TAP version 14 8140s # random seed: R02S758c1fca686646564c9d921d4278b7b0 8140s 1..9 8140s # Start of value tests 8140s ok 1 /value/basic 8140s ok 2 /value/collection 8140s ok 3 /value/copying 8140s ok 4 /value/enum-transformation 8140s ok 5 /value/gtype 8140s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 8140s ok 6 /value/string 8140s # Next: GObject object in GValue of GObject to GValue of GObject 8140s # Next: GObject object in GValue of GObject to GValue of TestInterface 8140s # Next: GObject object in GValue of GObject to GValue of TestObjectA 8140s # Next: GObject object in GValue of GObject to GValue of TestObjectB 8140s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 8140s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 8140s # Next: TestObjectA object in GValue of GObject to GValue of GObject 8140s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 8140s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 8140s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 8140s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 8140s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 8140s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 8140s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 8140s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 8140s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 8140s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 8140s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 8140s # Next: TestObjectB object in GValue of GObject to GValue of GObject 8140s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 8140s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 8140s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 8140s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 8140s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 8140s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 8140s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 8140s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 8140s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 8140s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 8140s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 8140s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 8140s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 8140s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 8140s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 8140s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 8140s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 8140s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 8140s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 8140s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 8140s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 8140s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 8140s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 8140s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 8140s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 8140s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 8140s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 8140s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 8140s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 8140s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 8140s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 8140s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 8140s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 8140s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 8140s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 8140s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 8140s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 8140s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 8140s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 8140s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 8140s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 8140s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 8140s ok - glib/value.test 8140s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 8140s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 8140s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 8140s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 8140s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 8140s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 8140s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 8140s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 8140s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 8140s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 8140s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 8140s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 8140s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 8140s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 8140s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 8140s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 8140s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 8140s ok 7 /value/transform-object 8140s # Start of array tests 8140s ok 8 /value/array/basic 8140s ok 9 /value/array/sort-with-data 8140s # End of array tests 8140s # End of value tests 8141s # Running test: glib/rec-mutex.test 8141s TAP version 14 8141s # random seed: R02S3e1b2608edb0ebef81ea4f6c79ea9845 8141s 1..29 8141s # Start of thread tests 8141s ok 1 /thread/rec-mutex1 8141s ok 2 /thread/rec-mutex2 8141s ok 3 /thread/rec-mutex3 8142s ok 4 /thread/rec-mutex4 8142s # slow test /thread/rec-mutex4 executed in 0.93 secs 8142s # Start of rec-mutex tests 8142s # Start of perf tests 8142s # Start of uncontended tests 8142s # max perf: 0.004762 mips 8142s ok 5 /thread/rec-mutex/perf/uncontended/depth1 8142s # max perf: 0.002445 mips 8142s ok 6 /thread/rec-mutex/perf/uncontended/depth2 8142s # max perf: 0.111111 mips 8142s ok 7 /thread/rec-mutex/perf/uncontended/depth3 8142s # max perf: 0.142857 mips 8142s ok 8 /thread/rec-mutex/perf/uncontended/depth4 8142s # max perf: 0.166667 mips 8142s ok 9 /thread/rec-mutex/perf/uncontended/depth5 8142s # End of uncontended tests 8142s # Start of contended1 tests 8142s # max perf: 0.666667 mips 8142s ok 10 /thread/rec-mutex/perf/contended1/depth1 8142s # max perf: 0.500000 mips 8142s ok 11 /thread/rec-mutex/perf/contended1/depth2 8142s # max perf: 0.400000 mips 8142s ok 12 /thread/rec-mutex/perf/contended1/depth3 8142s # max perf: 0.333333 mips 8142s ok 13 /thread/rec-mutex/perf/contended1/depth4 8142s # max perf: 0.285714 mips 8142s ok 14 /thread/rec-mutex/perf/contended1/depth5 8142s # End of contended1 tests 8142s # Start of contended2 tests 8142s # max perf: 0.009202 mips 8142s ok 15 /thread/rec-mutex/perf/contended2/depth1 8142s # max perf: 0.036145 mips 8142s ok 16 /thread/rec-mutex/perf/contended2/depth2 8142s # max perf: 0.083333 mips 8142s ok 17 /thread/rec-mutex/perf/contended2/depth3 8142s # max perf: 0.250000 mips 8142s ok 18 /thread/rec-mutex/perf/contended2/depth4 8142s # max perf: 0.004926 mips 8142s ok 19 /thread/rec-mutex/perf/contended2/depth5 8142s # End of contended2 tests 8142s # Start of contended3 tests 8142s # max perf: 0.400000 mips 8142s ok 20 /thread/rec-mutex/perf/contended3/depth1 8142s # max perf: 0.004158 mips 8142s ok 21 /thread/rec-mutex/perf/contended3/depth2 8142s # max perf: 0.266667 mips 8142s ok 22 /thread/rec-mutex/perf/contended3/depth3 8142s # max perf: 0.004768 mips 8142s ok 23 /thread/rec-mutex/perf/contended3/depth4 8142s # max perf: 0.003241 mips 8142s ok 24 /thread/rec-mutex/perf/contended3/depth5 8142s # End of contended3 tests 8142s # Start of contended4 tests 8142s # max perf: 0.500000 mips 8142s ok 25 /thread/rec-mutex/perf/contended4/depth1 8142s # max perf: 0.111111 mips 8142s ok 26 /thread/rec-mutex/perf/contended4/depth2 8142s # max perf: 0.294118 mips 8142s ok 27 /thread/rec-mutex/perf/contended4/depth3 8142s # max perf: 0.004153 mips 8142s ok 28 /thread/rec-mutex/perf/contended4/depth4 8142s # max perf: 0.006676 mips 8142s ok 29 /thread/rec-mutex/perf/contended4/depth5 8142s # End of contended4 tests 8142s # End of perf tests 8142s # End of rec-mutex tests 8142s # End of thread tests 8142s ok - glib/rec-mutex.test 8142s # Running test: glib/refstring.test 8142s TAP version 14 8142s # random seed: R02Sa7e59da8773222a83992dbb9094e75ed 8142s 1..8 8142s # Start of refstring tests 8142s # s = 'hello, world' (0x555ebfa2e3c0) 8142s ok 1 /refstring/base 8142s ok 2 /refstring/length 8142s ok 3 /refstring/length-auto 8142s ok 4 /refstring/length-nuls 8142s # s = 'hello, world' (0x555ebfa2e260) 8142s # p = s = 'hello, world' (0x555ebfa2e260) 8142s # releasing p[0x555ebfa2e260] ('hello, world') 8142s # p = 'goodbye, world' (0x555ebfa2e3c0) 8142s # releasing p[0x555ebfa2e3c0] ('goodbye, world') 8142s # releasing s[0x555ebfa2e260] ('hello, world') 8142s ok 5 /refstring/intern 8142s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 8142s ok 6 /refstring/hash_equal 8142s # /refstring/equal summary: Test g_ref_string_equal() standalone 8142s ok 7 /refstring/equal 8144s # Executing: glib/refstring.test 8149s # Executing: glib/refstring.test 8154s # Executing: glib/refstring.test 8159s # Executing: glib/refstring.test 8164s # Executing: glib/refstring.test 8166s ok 8 /refstring/intern-thread-safety 8166s # slow test /refstring/intern-thread-safety executed in 23.62 secs 8166s # End of refstring tests 8166s ok - glib/refstring.test 8166s # Running test: glib/private.test 8166s TAP version 14 8166s # random seed: R02Sdd95ec2a5b90b1c74748e5578c9a4e44 8166s 1..8 8166s # Start of thread tests 8166s ok 1 /thread/private1 8167s ok 2 /thread/private2 8167s # slow test /thread/private2 executed in 1.48 secs 8167s ok 3 /thread/private3 8167s ok 4 /thread/staticprivate1 8167s ok 5 /thread/staticprivate2 8167s ok 6 /thread/staticprivate3 8169s ok 7 /thread/staticprivate4 8169s # slow test /thread/staticprivate4 executed in 1.41 secs 8169s ok 8 /thread/staticprivate5 8169s # End of thread tests 8169s ok - glib/private.test 8169s # Running test: glib/642026.test 8169s TAP version 14 8169s # random seed: R02S6e7b7dedb01da20d22bb4b5fcab83414 8169s 1..1 8169s # Start of glib tests 8169s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 8169s # Executing: glib/642026.test 8170s ok 1 /glib/642026 8170s # slow test /glib/642026 executed in 0.83 secs 8170s # End of glib tests 8170s ok - glib/642026.test 8170s # Running test: glib/cxx-20.test 8170s TAP version 14 8170s # random seed: R02S715a03d97c110dfdf074932d481d4a2c 8170s 1..2 8170s # Start of gtask tests 8170s # 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. 8170s ok 1 /gtask/name 8170s # Start of name tests 8170s # 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. 8170s ok 2 /gtask/name/macro-wrapper 8170s # End of name tests 8170s # End of gtask tests 8170s ok - glib/cxx-20.test 8170s # Running test: glib/debugcontroller.test 8171s TAP version 14 8171s # random seed: R02S81b189ebb14940d4b185f163f8028e53 8171s 1..3 8171s # Start of debug-controller tests 8171s # Start of dbus tests 8171s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 8171s # GLib-GIO-DEBUG: Debug output enabled 8171s # GLib-GIO-DEBUG: Debug output disabled 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s ok 1 /debug-controller/dbus/basic 8171s # slow test /debug-controller/dbus/basic executed in 0.62 secs 8171s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8171s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8172s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8172s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8172s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8172s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8172s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8172s ok 2 /debug-controller/dbus/duplicate 8172s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 8172s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 8172s # End of dbus tests 8172s # End of debug-controller tests 8172s ok - glib/debugcontroller.test 8172s # Running test: glib/ifaceproperties.test 8172s TAP version 14 8172s # random seed: R02S5d880e3547705843a1ccd6255e8422b9 8172s 1..7 8172s # Start of interface tests 8172s # Start of properties tests 8172s ok 1 /interface/properties/set 8172s ok 2 /interface/properties/notify 8172s ok 3 /interface/properties/find-overridden 8172s ok 4 /interface/properties/list-overridden 8172s ok 5 /interface/properties/find-interface 8172s ok 6 /interface/properties/list-interface 8172s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 8172s ok 7 /interface/properties/not-overridden 8172s # End of properties tests 8172s # End of interface tests 8172s ok - glib/ifaceproperties.test 8172s # Running test: glib/g-file-info-filesystem-readonly.test 8172s TAP version 14 8172s # random seed: R02Sc7c3e56ad09abf9e03b7db69e8345611 8172s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 8172s 1..2 8172s # Start of g-file-info-filesystem-readonly tests 8172s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 8172s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 8172s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 8172s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_89RA62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 8172s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 8172s # End of g-file-info-filesystem-readonly tests 8172s ok - glib/g-file-info-filesystem-readonly.test 8173s # Running test: glib/memory-settings-backend.test 8173s TAP version 14 8173s # random seed: R02S14499482d1e5c3c4942546c844414458 8173s 1..1 8173s # Start of memory-settings-backend tests 8173s ok 1 /memory-settings-backend/extension-point-registered 8173s # End of memory-settings-backend tests 8173s ok - glib/memory-settings-backend.test 8173s # Running test: glib/reference.test 8173s TAP version 14 8174s # random seed: R02Sd34d0cb5374c685e42a6442a6218f34a 8174s ok - glib/reference.test 8174s # Running test: glib/markup-collect.test 8174s 1..29 8174s # Start of type tests 8174s ok 1 /type/fundamentals 8174s ok 2 /type/qdata 8174s ok 3 /type/query 8174s ok 4 /type/class-private 8174s # End of type tests 8174s # Start of object tests 8174s ok 5 /object/clear 8174s ok 6 /object/clear-function 8174s ok 7 /object/set 8174s ok 8 /object/set-function 8174s ok 9 /object/value 8174s ok 10 /object/initially-unowned 8174s ok 11 /object/weak-pointer 8174s ok 12 /object/weak-ref 8174s ok 13 /object/toggle-ref 8174s ok 14 /object/qdata 8174s ok 15 /object/qdata2 8174s # Start of set tests 8174s # /object/set/derived-type summary: Check that g_set_object() doesn?t give strict aliasing warnings when used on types derived from GObject 8174s ok 16 /object/set/derived-type 8174s # End of set tests 8174s # Start of weak-pointer tests 8174s ok 17 /object/weak-pointer/clear 8174s ok 18 /object/weak-pointer/clear-function 8174s ok 19 /object/weak-pointer/set 8174s ok 20 /object/weak-pointer/set-function 8174s # End of weak-pointer tests 8174s # Start of weak-ref tests 8174s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 8174s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 8174s ok 21 /object/weak-ref/on-dispose 8174s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 8174s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 8174s ok 22 /object/weak-ref/on-run-dispose 8174s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 8174s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 8174s ok 23 /object/weak-ref/on-toggle-notify 8174s ok 24 /object/weak-ref/in-toggle-notify 8174s ok 25 /object/weak-ref/many 8174s # Start of concurrent tests 8174s ok 26 /object/weak-ref/concurrent/0 8174s ok 27 /object/weak-ref/concurrent/1 8174s # End of concurrent tests 8174s # End of weak-ref tests 8174s # Start of toggle-ref tests 8174s ok 28 /object/toggle-ref/ref-on-dispose 8174s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 8174s # End of toggle-ref tests 8174s # End of object tests 8174s TAP version 14 8174s # random seed: R02Sda1411d1bfcf4d2bbe8c745f75dbc38d 8174s 1..21 8174s # Start of markup tests 8174s # Start of collect tests 8174s ok 1 /markup/collect/0 8174s ok 2 /markup/collect/1 8174s ok 3 /markup/collect/2 8174s ok 4 /markup/collect/3 8174s ok 5 /markup/collect/4 8174s ok 6 /markup/collect/5 8174s ok 7 /markup/collect/6 8174s ok 8 /markup/collect/7 8174s ok 9 /markup/collect/8 8174s ok 10 /markup/collect/9 8174s ok 11 /markup/collect/10 8174s ok 12 /markup/collect/11 8174s ok 13 /markup/collect/12 8174s ok 14 /markup/collect/13 8174s ok 15 /markup/collect/14 8174s ok 16 /markup/collect/15 8174s ok 17 /markup/collect/16 8174s ok 18 /markup/collect/17 8174s ok 19 /markup/collect/18 8174s ok 20 /markup/collect/19 8174s ok 21 /markup/collect/cleanup 8174s # End of collect tests 8174s # End of markup tests 8174s ok - glib/markup-collect.test 8174s # Running test: glib/g-icon.test 8174s TAP version 14 8174s # random seed: R02S6e755db19d459d0d65ee319d4db825d5 8174s 1..6 8174s # Start of icons tests 8174s # Executing: glib/g-icon.test 8174s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 8174s ok 1 /icons/to-string 8174s ok 2 /icons/serialize 8174s ok 3 /icons/themed 8174s ok 4 /icons/emblemed 8174s ok 5 /icons/file 8174s ok 6 /icons/bytes 8174s # End of icons tests 8175s ok - glib/g-icon.test 8175s # Running test: glib/atomic-c-89.test 8175s TAP version 14 8175s # random seed: R02Sc8d71b4d969e0575f8e9d3c5047f9bb0 8175s 1..2 8175s # Start of atomic tests 8175s ok 1 /atomic/types 8176s ok 2 /atomic/threaded 8176s # slow test /atomic/threaded executed in 0.96 secs 8176s # End of atomic tests 8176s ok - glib/atomic-c-89.test 8176s # Running test: glib/power-profile-monitor.test 8176s TAP version 14 8176s # random seed: R02Sc581e4d559a9218c69282f2af49ca133 8176s 1..1 8176s # Start of power-profile-monitor tests 8176s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 8176s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor? 8176s ok 1 /power-profile-monitor/default 8176s # End of power-profile-monitor tests 8176s ok - glib/power-profile-monitor.test 8176s # Running test: glib/utf8-misc.test 8176s TAP version 14 8176s # random seed: R02S1495ce4fca74ecfa06ec38548c097cdf 8176s 1..7 8176s # Start of utf8 tests 8176s ok 1 /utf8/strlen 8176s ok 2 /utf8/strncpy 8176s ok 3 /utf8/strrchr 8176s ok 4 /utf8/reverse 8176s ok 5 /utf8/substring 8176s ok 6 /utf8/make-valid 8176s ok 7 /utf8/truncate-middle 8176s # End of utf8 tests 8176s ok - glib/utf8-misc.test 8176s # Running test: glib/resources.test 8176s TAP version 14 8176s # random seed: R02Sbb821288d99418199df951668e81f42f 8176s 1..19 8176s # Start of resource tests 8177s ok 1 /resource/file 8177s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 8177s ok 2 /resource/file-path 8177s ok 3 /resource/data 8177s ok 4 /resource/data_unaligned 8177s ok 5 /resource/data-corrupt 8177s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 8177s ok 6 /resource/data-corrupt-compression 8177s ok 7 /resource/data-empty 8177s ok 8 /resource/registered 8177s ok 9 /resource/manual 8177s ok 10 /resource/manual2 8177s ok 11 /resource/automatic 8177s ok 12 /resource/module 8177s ok 13 /resource/binary-linked 8177s ok 14 /resource/64k 8177s GLib-GIO-Message: 18:06:41.303: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 8177s GLib-GIO-Message: 18:06:41.355: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 8177s GLib-GIO-Message: 18:06:41.366: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 8177s ok 15 /resource/overlay 8177s ok 16 /resource/digits 8177s ok 17 /resource/has-children 8177s # Start of uri tests 8177s ok 18 /resource/uri/query-info 8177s ok 19 /resource/uri/file 8177s # End of uri tests 8177s # End of resource tests 8177s ok - glib/resources.test 8177s # Running test: glib/spawn-multithreaded.test 8177s TAP version 14 8177s # random seed: R02Secad3f3d27a4e0120a2fcde55252274e 8177s 1..4 8177s # Start of gthread tests 8178s # Child 14881 (ttl 1) exited, status 0 8179s # Executing: glib/spawn-multithreaded.test 8179s # Child 14882 (ttl 2) exited, status 0 8179s ok 1 /gthread/spawn-childs 8179s # slow test /gthread/spawn-childs executed in 2.08 secs 8179s # Created pid: 14886 (ttl 1) 8179s # Created pid: 14887 (ttl 2) 8180s # Child 14886 (ttl 1) exited, status 0 8181s # Child 14887 (ttl 2) exited, status 0 8181s ok 2 /gthread/spawn-childs-threads 8181s # slow test /gthread/spawn-childs-threads executed in 2.10 secs 8182s ok 3 /gthread/spawn-sync 8182s ok 4 /gthread/spawn-async 8182s # End of gthread tests 8182s ok - glib/spawn-multithreaded.test 8182s # Running test: glib/g-file-info.test 8182s TAP version 14 8182s # random seed: R02Sbf6cfd32341ad7724cbfd8614b066681 8182s 1..6 8182s # Start of g-file-info tests 8182s ok 1 /g-file-info/test_g_file_info 8182s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 8182s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 8182s ok 2 /g-file-info/xattrs 8182s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 8182s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 8182s ok 3 /g-file-info/set-modified-date-time-precision 8182s # Start of test_g_file_info tests 8182s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 8182s ok 4 /g-file-info/test_g_file_info/modification-time 8182s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 8182s ok 5 /g-file-info/test_g_file_info/access-time 8182s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 8182s ok 6 /g-file-info/test_g_file_info/creation-time 8182s # End of test_g_file_info tests 8182s # End of g-file-info tests 8182s ok - glib/g-file-info.test 8182s # Running test: glib/signals.test 8183s TAP version 14 8183s # random seed: R02Sec5cccb9b56c2abe4dfaa84f8bbac7b0 8183s 1..31 8183s # Start of gobject tests 8183s # Start of signals tests 8183s ok 1 /gobject/signals/all-types 8183s ok 2 /gobject/signals/variant 8183s ok 3 /gobject/signals/destroy-target-object 8183s ok 4 /gobject/signals/generic-marshaller-1 8183s ok 5 /gobject/signals/generic-marshaller-2 8183s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 8183s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 8183s ok 8 /gobject/signals/generic-marshaller-int-return 8183s ok 9 /gobject/signals/generic-marshaller-uint-return 8183s ok 10 /gobject/signals/generic-marshaller-interface-return 8183s ok 11 /gobject/signals/custom-marshaller 8183s ok 12 /gobject/signals/connect 8183s ok 13 /gobject/signals/emission-hook 8183s ok 14 /gobject/signals/emitv 8183s ok 15 /gobject/signals/accumulator 8183s # Signal: accumulator-class-first 8183s # Signal: accumulator-class-last 8183s # Signal: accumulator-class-cleanup 8183s # Signal: accumulator-class-first-last 8183s # Signal: accumulator-class-first-last-cleanup 8183s # Signal: accumulator-class-last-cleanup 8183s ok 16 /gobject/signals/accumulator-class 8183s ok 17 /gobject/signals/introspection 8183s ok 18 /gobject/signals/block-handler 8183s ok 19 /gobject/signals/stop-emission 8183s ok 20 /gobject/signals/invocation-hint 8183s ok 21 /gobject/signals/test-disconnection-wrong-object 8183s ok 22 /gobject/signals/clear-signal-handler 8183s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 8183s ok 23 /gobject/signals/lookup 8183s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 8183s ok 24 /gobject/signals/parse-name 8183s ok 25 /gobject/signals/is-valid-name 8183s ok 26 /gobject/signals/weak-ref-disconnect 8183s # Start of lookup tests 8183s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 8183s ok 27 /gobject/signals/lookup/invalid 8183s # End of lookup tests 8183s # Start of parse-name tests 8183s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 8183s # Parser input: 8183s # Parser input: 7zip 8183s # Parser input: invalid:signal 8183s # Parser input: simple-detailed:: 8183s # Parser input: simple-detailed: 8183s # Parser input: : 8183s # Parser input: :: 8183s # Parser input: :valid-detail 8183s # Parser input: ::valid-detail 8183s ok 28 /gobject/signals/parse-name/invalid 8183s # End of parse-name tests 8183s # Start of invalid-name tests 8183s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 8183s ok 29 /gobject/signals/invalid-name/colon 8183s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 8183s ok 30 /gobject/signals/invalid-name/first-char 8183s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 8183s ok 31 /gobject/signals/invalid-name/empty 8183s # End of invalid-name tests 8183s # End of signals tests 8183s # End of gobject tests 8183s ok - glib/signals.test 8183s # Running test: glib/properties-introspection.test 8184s TAP version 14 8184s # random seed: R02S3bdaeb67238db7a7b18969b823f7a0d6 8184s 1..2 8184s # Start of properties tests 8184s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 8184s ok 1 /properties/introspection 8184s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 8184s ok 2 /properties/collision 8184s # End of properties tests 8184s ok - glib/properties-introspection.test 8184s # Running test: glib/portal-support-flatpak-none.test 8184s TAP version 14 8184s # random seed: R02S92ec504ef6a18d9ba32cd599daff6ee9 8184s 1..1 8184s # Start of portal-support tests 8184s # Start of flatpak tests 8184s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/home 8184s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/cache 8184s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/system-config2 8184s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/config 8184s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/system-data2 8184s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/data 8184s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/state 8184s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/runtime 8184s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_1NC952/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 8184s ok 1 /portal-support/flatpak/none 8184s # End of flatpak tests 8184s # End of portal-support tests 8184s ok - glib/portal-support-flatpak-none.test 8184s # Running test: glib/hook.test 8184s # Executing: glib/hook.test 8184s TAP version 14 8184s # random seed: R02S786bec7b4f10e1466a03698963eeaaf9 8184s 1..2 8184s # Start of hook tests 8184s ok 1 /hook/basics 8184s ok 2 /hook/corner-cases 8184s # End of hook tests 8184s ok - glib/hook.test 8184s # Running test: glib/signals-refcount1.test 8185s TAP version 14 8185s # random seed: R02Sdac87dc31c8c2a19117a875e8bb90c1c 8185s 1..1 8185s # Start of gobject tests 8185s # Start of refcount tests 8185s # init 0x55567f57ddc0 8185s # 8185s # init 0x55567f57a310 8185s # 8189s # Executing: glib/signals-refcount1.test 8190s # dispose 0x55567f57ddc0! 8190s # 8190s # dispose 0x55567f57a310! 8190s # 8190s ok 1 /gobject/refcount/signals 8190s # slow test /gobject/refcount/signals executed in 5.04 secs 8190s # End of refcount tests 8190s # End of gobject tests 8190s ok - glib/signals-refcount1.test 8190s # Running test: glib/performance.test 8194s # Executing: glib/performance.test 8199s # Executing: glib/performance.test 8204s # Executing: glib/performance.test 8209s # Executing: glib/performance.test 8214s # Executing: glib/performance.test 8217s simple-construction: Millions of constructed objects per second: 0.812 8219s # Executing: glib/performance.test 8224s # Executing: glib/performance.test 8229s # Executing: glib/performance.test 8229s simple-construction1: Millions of constructed objects per second: 2.509 8234s # Executing: glib/performance.test 8239s # Executing: glib/performance.test 8241s complex-construction: Millions of constructed objects per second: 0.234 8244s # Executing: glib/performance.test 8249s # Executing: glib/performance.test 8254s # Executing: glib/performance.test 8259s # Executing: glib/performance.test 8260s complex-construction1: Millions of constructed objects per second: 0.435 8264s # Executing: glib/performance.test 8269s # Executing: glib/performance.test 8274s # Executing: glib/performance.test 8279s # Executing: glib/performance.test 8280s complex-construction2: Millions of constructed objects per second: 0.520 8284s # Executing: glib/performance.test 8284s finalization: Millions of finalized objects per second: 0.153 8288s type-check: Million type checks per second: 4.77 8289s # Executing: glib/performance.test 8292s emit-unhandled: Emissions per second: 213554 8294s # Executing: glib/performance.test 8296s emit-unhandled-empty: Emissions per second: 1208779 8299s emit-unhandled-generic: Emissions per second: 345054 8299s # Executing: glib/performance.test 8303s emit-unhandled-generic-empty: Emissions per second: 1259193 8304s # Executing: glib/performance.test 8306s emit-unhandled-args: Emissions per second: 171953 8309s emit-handled: Emissions per second: 160295 8309s # Executing: glib/performance.test 8312s emit-handled-empty: Emissions per second: 164304 8314s # Executing: glib/performance.test 8315s emit-handled-generic: Emissions per second: 160273 8318s emit-handled-generic-empty: Emissions per second: 292361 8319s # Executing: glib/performance.test 8321s emit-handled-args: Emissions per second: 130778 8324s # Executing: glib/performance.test 8325s notify-unhandled: Notify (unhandled) per second: 1121087 8329s # Executing: glib/performance.test 8329s notify-by-pspec-unhandled: Notify (unhandled) per second: 3665928 8333s notify-handled: Notify per second: 85362 8334s # Executing: glib/performance.test 8337s notify-by-pspec-handled: Notify per second: 87849 8339s # Executing: glib/performance.test 8343s property-set: Property set per second: 624925 8344s # Executing: glib/performance.test 8347s property-set-signaled: Property set per second: 118935 8349s # Executing: glib/performance.test 8353s property-get: Property get per second: 479376 8354s # Executing: glib/performance.test 8357s refcount: Million refs+unref per second: 1.44 8359s # Executing: glib/performance.test 8360s refcount-1: Million refs+unref per second: 4.16 8363s refcount-toggle: Million refs+unref per second: 2.21 8363s ok - glib/performance.test 8364s # Running test: glib/utils-c-89.test 8364s TAP version 14 8364s # random seed: R02S4f47a41ef456b8207040a07167b88458 8364s 1..41 8364s # Start of utils tests 8364s ok 1 /utils/language-names 8364s ok 2 /utils/locale-variants 8364s ok 3 /utils/version 8364s ok 4 /utils/appname 8364s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 8364s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 8364s ok 5 /utils/prgname-thread-safety 8364s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 8364s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 8364s ok 6 /utils/tmpdir 8364s ok 7 /utils/basic_bits 8364s ok 8 /utils/bits 8364s ok 9 /utils/swap 8364s ok 10 /utils/find-program 8364s ok 11 /utils/find-program-for-path 8364s ok 12 /utils/debug 8364s ok 13 /utils/codeset 8364s # Executing: glib/utils-c-89.test 8364s ok 14 /utils/codeset2 8364s ok 15 /utils/console-charset 8364s ok 16 /utils/gettext 8364s ok 17 /utils/username 8364s ok 18 /utils/realname 8364s ok 19 /utils/hostname 8364s ok 20 /utils/xdgdirs 8364s ok 21 /utils/specialdir 8364s # NAME: Ubuntu 8364s ok 22 /utils/os-info 8364s ok 23 /utils/clear-pointer 8364s ok 24 /utils/clear-pointer-cast 8364s ok 25 /utils/take-pointer 8364s ok 26 /utils/clear-source 8364s ok 27 /utils/misc-mem 8364s # /utils/aligned-mem summary: Aligned memory allocator 8364s # Alignment must not be zero 8364s # Alignment must be a power of two 8365s # Alignment must be a multiple of sizeof(void*) 8365s ok 28 /utils/aligned-mem 8365s # /utils/free-sized summary: Check that g_free_sized() works 8365s ok 29 /utils/free-sized 8365s ok 30 /utils/nullify 8365s ok 31 /utils/atexit 8365s ok 32 /utils/check-setuid 8365s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 8365s ok 33 /utils/int-limits 8365s ok 34 /utils/clear-list 8365s ok 35 /utils/clear-slist 8365s ok 36 /utils/steal-handle-id 8365s # Start of specialdir tests 8365s ok 37 /utils/specialdir/desktop 8365s # End of specialdir tests 8365s # Start of clear-pointer tests 8365s ok 38 /utils/clear-pointer/side-effects 8365s # End of clear-pointer tests 8365s # Start of aligned-mem tests 8365s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 8365s ok 39 /utils/aligned-mem/alignment 8365s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 8365s ok 40 /utils/aligned-mem/zeroed 8365s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 8365s ok 41 /utils/aligned-mem/free-sized 8365s # Start of subprocess tests 8365s # End of subprocess tests 8365s # End of aligned-mem tests 8365s # End of utils tests 8365s ok - glib/utils-c-89.test 8365s # Running test: glib/bindinggroup.test 8365s TAP version 14 8365s # random seed: R02S4d2f44fe68483c7edd9c3fd74d196357 8365s 1..11 8365s # Start of GObject tests 8365s # Start of BindingGroup tests 8365s ok 1 /GObject/BindingGroup/invalid 8365s ok 2 /GObject/BindingGroup/default 8365s ok 3 /GObject/BindingGroup/bidirectional 8365s ok 4 /GObject/BindingGroup/transform 8365s ok 5 /GObject/BindingGroup/transform-closures 8365s ok 6 /GObject/BindingGroup/same-object 8365s ok 7 /GObject/BindingGroup/weak-ref-source 8365s ok 8 /GObject/BindingGroup/weak-ref-target 8365s ok 9 /GObject/BindingGroup/properties 8365s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 8365s ok 11 /GObject/BindingGroup/empty-closures 8365s # End of BindingGroup tests 8365s # End of GObject tests 8365s ok - glib/bindinggroup.test 8365s # Running test: glib/module-test-library.test 8365s TAP version 14 8365s # random seed: R02S30e03071be7a6166e3ba3cdaed22a69c 8365s 1..3 8365s # Start of module tests 8366s ok 1 /module/basics 8366s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 8366s ok 2 /module/invalid-libtool-archive 8366s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 8366s ok 3 /module/local-binding 8366s # End of module tests 8366s ok - glib/module-test-library.test 8366s # Running test: glib/guuid.test 8366s TAP version 14 8366s # random seed: R02S0e1f8ed7c359da9c35b9dafd5bc09270 8366s 1..2 8366s # Start of uuid tests 8366s ok 1 /uuid/string 8366s ok 2 /uuid/random 8366s # End of uuid tests 8366s ok - glib/guuid.test 8366s # Running test: glib/atomic-c-17.test 8366s TAP version 14 8366s # random seed: R02S5fa054ae02de643e918cd3ee1b2610a9 8366s 1..2 8366s # Start of atomic tests 8366s ok 1 /atomic/types 8367s ok 2 /atomic/threaded 8367s # slow test /atomic/threaded executed in 1.29 secs 8367s # End of atomic tests 8367s ok - glib/atomic-c-17.test 8368s # Running test: glib/signal-handler.test 8368s TAP version 14 8368s # random seed: R02S0a560d2711c4b84ae1192bdce4d2039e 8368s 1..7 8368s # Start of signal tests 8368s # Start of handler tests 8368s # min perf: connected 1 handlers in 0.001 seconds 8368s ok 1 /signal/handler/connect-many 8368s # min perf: disconnected 1 handlers in 0.000 seconds 8368s ok 2 /signal/handler/disconnect-many-ordered 8368s # min perf: disconnected 1 handlers in 0.000 seconds 8368s ok 3 /signal/handler/disconnect-many-inverse 8368s # min perf: disconnected 1 handlers in 0.000 seconds 8368s ok 4 /signal/handler/disconnect-many-random 8368s # min perf: disconnected 1 handlers in 0.000 seconds 8368s ok - glib/signal-handler.test 8368s ok 5 /signal/handler/disconnect-2-signals 8368s # min perf: disconnected 1 handlers in 0.000 seconds 8368s ok 6 /signal/handler/disconnect-2-objects 8368s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 8368s ok 7 /signal/handler/block-many 8368s # End of handler tests 8368s # End of signal tests 8368s # Running test: glib/resolver-parsing.test 8368s TAP version 14 8368s # random seed: R02S3fc76b46839e5e6dc26c0634a80fa1d4 8368s 1..21 8368s # Start of gresolver tests 8368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/home 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/cache 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/system-config2 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/config 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/system-data2 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/data 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/state 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/invalid-header/.dirs/runtime 8368s ok 1 /gresolver/invalid-header 8368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/home 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/cache 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/system-config2 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/config 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/system-data2 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/data 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/state 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/record-ownership/.dirs/runtime 8368s ok 2 /gresolver/record-ownership 8368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/home 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/cache 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/system-config2 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/config 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/system-data2 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/data 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/state 8368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/unknown-record-type/.dirs/runtime 8368s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 8368s ok 3 /gresolver/unknown-record-type 8368s # Start of mx tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/valid/.dirs/runtime 8369s ok 4 /gresolver/mx/valid 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/.dirs/runtime 8369s ok 5 /gresolver/mx/invalid 8369s # Start of invalid tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short/.dirs/runtime 8369s ok 6 /gresolver/mx/invalid/too-short 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/mx/invalid/too-short2/.dirs/runtime 8369s ok 7 /gresolver/mx/invalid/too-short2 8369s # End of invalid tests 8369s # End of mx tests 8369s # Start of ns tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/valid/.dirs/runtime 8369s ok 8 /gresolver/ns/valid 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/ns/invalid/.dirs/runtime 8369s ok 9 /gresolver/ns/invalid 8369s # End of ns tests 8369s # Start of soa tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/valid/.dirs/runtime 8369s ok 10 /gresolver/soa/valid 8369s # Start of invalid tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/mname/.dirs/runtime 8369s ok 11 /gresolver/soa/invalid/mname 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/rname/.dirs/runtime 8369s ok 12 /gresolver/soa/invalid/rname 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/soa/invalid/too-short/.dirs/runtime 8369s ok 13 /gresolver/soa/invalid/too-short 8369s # End of invalid tests 8369s # End of soa tests 8369s # Start of srv tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/valid/.dirs/runtime 8369s ok 14 /gresolver/srv/valid 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/.dirs/runtime 8369s ok 15 /gresolver/srv/invalid 8369s # Start of invalid tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short/.dirs/runtime 8369s ok 16 /gresolver/srv/invalid/too-short 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/srv/invalid/too-short2/.dirs/runtime 8369s ok 17 /gresolver/srv/invalid/too-short2 8369s # End of invalid tests 8369s # End of srv tests 8369s # Start of txt tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/.dirs/runtime 8369s ok 18 /gresolver/txt/valid 8369s # Start of valid tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/valid/multiple-strings/.dirs/runtime 8369s ok 19 /gresolver/txt/valid/multiple-strings 8369s # End of valid tests 8369s # Start of invalid tests 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/empty/.dirs/runtime 8369s ok 20 /gresolver/txt/invalid/empty 8369s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/home 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/cache 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/system-config2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/config 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/system-data2 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/data 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/state 8369s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_M8SV52/gresolver/txt/invalid/overflow/.dirs/runtime 8369s ok 21 /gresolver/txt/invalid/overflow 8369s # End of invalid tests 8369s # End of txt tests 8369s # End of gresolver tests 8369s ok - glib/resolver-parsing.test 8369s # Running test: glib/actions.test 8370s # Executing: glib/actions.test 8370s TAP version 14 8370s # random seed: R02S0e4ca693a3ee37dec039a8a4a7d50cb2 8370s 1..13 8370s # Start of actions tests 8370s ok 1 /actions/basic 8370s ok 2 /actions/name 8370s ok 3 /actions/simplegroup 8370s ok 4 /actions/stateful 8370s ok 5 /actions/default-activate 8370s ok 6 /actions/entries 8370s ok 7 /actions/parse-detailed 8370s ok 8 /actions/property 8370s ok 9 /actions/no-properties 8370s # Start of dbus tests 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s ok 10 /actions/dbus/export 8371s # slow test /actions/dbus/export executed in 1.08 secs 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8371s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8375s # Executing: glib/actions.test 8380s # Executing: glib/actions.test 8385s # Executing: glib/actions.test 8390s # Executing: glib/actions.test 8395s # Executing: glib/actions.test 8400s # Executing: glib/actions.test 8405s # Executing: glib/actions.test 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s ok 11 /actions/dbus/threaded 8407s # slow test /actions/dbus/threaded executed in 36.04 secs 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8407s ok 12 /actions/dbus/bug679509 8407s # Start of export tests 8407s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 8407s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8408s ok 13 /actions/dbus/export/error-handling 8408s # End of export tests 8408s # End of dbus tests 8408s # End of actions tests 8408s ok - glib/actions.test 8408s # Running test: glib/notify-init.test 8408s TAP version 14 8408s # random seed: R02S67052463fc04f483958bc335f8162910 8408s 1..1 8408s # Start of properties tests 8408s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 8408s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 8408s ok 1 /properties/notify-in-init 8408s # End of properties tests 8408s ok - glib/notify-init.test 8408s # Running test: glib/thumbnail-verification.test 8408s TAP version 14 8408s # random seed: R02S8d2bea466a5237d25ea5d6b9e0b29134 8408s 1..1 8408s # Start of png-thumbs tests 8408s ok 1 /png-thumbs/validity 8408s # End of png-thumbs tests 8408s ok - glib/thumbnail-verification.test 8408s # Running test: glib/spawn-singlethread.test 8409s TAP version 14 8409s # random seed: R02S03b41c374c313478a2d30243133d298e 8409s 1..9 8409s # Start of gthread tests 8409s ok 1 /gthread/spawn-single-sync 8409s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 8409s ok 2 /gthread/spawn-stderr-socket 8409s ok 3 /gthread/spawn-single-async 8409s # thread 1 8409s # thread 1 8409s ok 4 /gthread/spawn-single-async-with-fds 8409s ok 5 /gthread/spawn-async-with-invalid-fds 8409s ok 6 /gthread/spawn-script 8409s ok 7 /gthread/spawn-posix-spawn 8409s # Start of spawn tests 8409s ok 8 /gthread/spawn/nonexistent 8409s # FD map: 8409s # • 5 → 15 8409s # • 6 → 16 8409s # • 7 → 17 8409s # • 8 → 18 8409s # • 9 → 19 8409s # • 10 → 20 8409s # • 11 → 21 8409s # • 12 → 22 8409s # • 13 → 23 8409s # • 3 → 13 8409s ok 9 /gthread/spawn/fd-assignment-clash 8409s # End of spawn tests 8409s # End of gthread tests 8409s ok - glib/spawn-singlethread.test 8410s # Running test: glib/custom-dispatch.test 8410s TAP version 14 8410s # random seed: R02S0b3709edb9ceb4ae067306aa33ec8657 8410s 1..2 8410s # Start of properties tests 8410s # Start of custom-dispatch tests 8410s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 8410s ok 1 /properties/custom-dispatch/init 8410s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 8410s ok 2 /properties/custom-dispatch/set 8410s # End of custom-dispatch tests 8410s # End of properties tests 8410s ok - glib/custom-dispatch.test 8410s # Running test: glib/test-printf.test 8410s TAP version 14 8410s # random seed: R02S0bbbceb09077e364a8aac7ddaed0a347 8410s 1..22 8410s # Start of snprintf tests 8410s ok 1 /snprintf/retval-and-trunc 8410s ok 2 /snprintf/%d 8410s ok 3 /snprintf/%d-invalid 8410s ok 4 /snprintf/%o 8410s ok 5 /snprintf/%u 8410s ok 6 /snprintf/%x 8410s ok 7 /snprintf/%X 8410s ok 8 /snprintf/%f 8410s ok 9 /snprintf/%e 8410s ok 10 /snprintf/%c 8410s ok 11 /snprintf/%s 8410s ok 12 /snprintf/%n 8410s ok 13 /snprintf/test-percent 8410s ok 14 /snprintf/test-positional-params 8410s ok 15 /snprintf/test-64bit 8410s # End of snprintf tests 8410s # Start of printf tests 8410s ok 16 /printf/test-percent 8410s ok 17 /printf/test-positional-params 8410s # Executing: glib/test-printf.test 8410s ok 18 /printf/test-64bit 8410s # Start of test-64bit tests 8410s # Start of subprocess tests 8410s # End of subprocess tests 8410s # End of test-64bit tests 8410s # End of printf tests 8410s # Start of sprintf tests 8410s ok 19 /sprintf/test-positional-params 8410s ok 20 /sprintf/upper-bound 8410s # End of sprintf tests 8410s # Start of vasprintf tests 8410s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 8410s ok 21 /vasprintf/invalid-format-placeholder 8410s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 8410s ok 22 /vasprintf/invalid-wide-string 8410s # End of vasprintf tests 8410s ok - glib/test-printf.test 8410s # Running test: glib/tls-bindings.test 8411s TAP version 14 8411s # random seed: R02Se99976328312d9e6635c1232a1b280fb 8411s 1..2 8411s # Start of tls-connection tests 8411s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 8411s ok 1 /tls-connection/get-tls-channel-binding 8411s ok 2 /tls-connection/get-dtls-channel-binding 8411s # End of tls-connection tests 8411s ok - glib/tls-bindings.test 8411s # Running test: glib/gsubprocess.test 8412s TAP version 14 8412s # random seed: R02S7e6f5c46aeb227b1da7ebc66af0d104f 8412s 1..84 8412s # Start of gsubprocess tests 8412s ok 1 /gsubprocess/noop 8412s ok 2 /gsubprocess/noop-all-to-null 8412s ok 3 /gsubprocess/noop-no-wait 8412s ok 4 /gsubprocess/noop-stdin-inherit 8412s ok 5 /gsubprocess/search-path 8412s ok 6 /gsubprocess/search-path-from-envp 8415s # Executing: glib/gsubprocess.test 8415s ok 7 /gsubprocess/signal 8415s # slow test /gsubprocess/signal executed in 3.04 secs 8415s ok 8 /gsubprocess/exit1 8416s ok 9 /gsubprocess/echo1 8416s ok 10 /gsubprocess/echo-merged 8416s ok 11 /gsubprocess/cat-utf8 8417s ok 12 /gsubprocess/cat-eof 8417s # slow test /gsubprocess/cat-eof executed in 1.04 secs 8420s ok 13 /gsubprocess/multi1 8420s # slow test /gsubprocess/multi1 executed in 3.19 secs 8420s # Executing: glib/gsubprocess.test 8420s ok 14 /gsubprocess/communicate 8423s ok 15 /gsubprocess/terminate 8423s # slow test /gsubprocess/terminate executed in 2.95 secs 8423s ok 16 /gsubprocess/fail-initialization 8423s ok 17 /gsubprocess/env 8424s ok 18 /gsubprocess/cwd 8424s ok 19 /gsubprocess/launcher-close 8424s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 8424s ok 20 /gsubprocess/stdout-file 8424s ok 21 /gsubprocess/stdout-fd 8424s ok 22 /gsubprocess/child-setup 8424s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8424s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8424s ok 23 /gsubprocess/launcher-environment 8424s # Start of exit1 tests 8424s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 8424s ok 24 /gsubprocess/exit1/cancel 8424s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 8425s ok 25 /gsubprocess/exit1/cancel_in_cb 8425s # End of exit1 tests 8425s # Start of communicate tests 8425s ok 26 /gsubprocess/communicate/cancelled 8425s ok 27 /gsubprocess/communicate/async 8425s ok 28 /gsubprocess/communicate/utf8 8425s # hello world 8425s ok 29 /gsubprocess/communicate/no-pipes 8425s ok 30 /gsubprocess/communicate/separate-stderr 8425s # Executing: glib/gsubprocess.test 8425s ok 31 /gsubprocess/communicate/stdout-only 8425s # hello world 8425s ok 32 /gsubprocess/communicate/stderr-only 8426s ok 33 /gsubprocess/communicate/stdout-silence 8426s ok 34 /gsubprocess/communicate/nothing 8426s # Start of async tests 8426s ok 35 /gsubprocess/communicate/async/cancelled 8426s # hello world 8426s ok 36 /gsubprocess/communicate/async/no-pipes 8426s ok 37 /gsubprocess/communicate/async/separate-stderr 8426s ok 38 /gsubprocess/communicate/async/stdout-only 8426s # hello world 8426s ok 39 /gsubprocess/communicate/async/stderr-only 8426s ok 40 /gsubprocess/communicate/async/stdout-silence 8426s # Start of cancelled tests 8426s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 8427s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 8427s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 8427s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 8427s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 8427s # End of cancelled tests 8427s # End of async tests 8427s # Start of utf8 tests 8427s ok 46 /gsubprocess/communicate/utf8/cancelled 8427s ok 47 /gsubprocess/communicate/utf8/async 8427s # hello world 8427s ok 48 /gsubprocess/communicate/utf8/no-pipes 8427s ok 49 /gsubprocess/communicate/utf8/separate-stderr 8428s ok 50 /gsubprocess/communicate/utf8/stdout-only 8428s # hello world 8428s ok 51 /gsubprocess/communicate/utf8/stderr-only 8428s ok 52 /gsubprocess/communicate/utf8/stdout-silence 8428s ok 53 /gsubprocess/communicate/utf8/invalid 8428s # Start of async tests 8428s ok 54 /gsubprocess/communicate/utf8/async/cancelled 8428s # hello world 8428s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 8428s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 8428s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 8429s # hello world 8429s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 8429s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 8429s ok 60 /gsubprocess/communicate/utf8/async/invalid 8429s # Start of cancelled tests 8429s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 8429s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 8429s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 8429s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 8429s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 8429s # End of cancelled tests 8429s # End of async tests 8429s # Start of cancelled tests 8429s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 8429s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 8429s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 8429s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 8429s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 8429s # End of cancelled tests 8429s # End of utf8 tests 8429s # Start of cancelled tests 8430s ok 71 /gsubprocess/communicate/cancelled/no-pipes 8430s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 8430s ok 73 /gsubprocess/communicate/cancelled/stdout-only 8430s ok 74 /gsubprocess/communicate/cancelled/stderr-only 8430s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 8430s # End of cancelled tests 8430s # End of communicate tests 8430s # Start of env tests 8430s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8430s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8430s ok 76 /gsubprocess/env/inherit 8430s # End of env tests 8430s # Start of pass-fd tests 8430s # Executing: glib/gsubprocess.test 8430s ok 77 /gsubprocess/pass-fd/basic 8430s ok 78 /gsubprocess/pass-fd/empty-child-setup 8430s ok 79 /gsubprocess/pass-fd/inherit-fds 8430s # End of pass-fd tests 8430s # Start of fd-conflation tests 8431s ok 80 /gsubprocess/fd-conflation/basic 8431s ok 81 /gsubprocess/fd-conflation/empty-child-setup 8432s ok 82 /gsubprocess/fd-conflation/inherit-fds 8432s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 8432s # End of fd-conflation tests 8432s # Start of exit-status tests 8432s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 8432s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 8432s ok 84 /gsubprocess/exit-status/trapped 8432s # End of exit-status tests 8432s # End of gsubprocess tests 8432s ok - glib/gsubprocess.test 8432s # Running test: glib/mkenums.py.test 8435s # Executing: glib/mkenums.py.test 8437s TAP version 13 8437s ok 1 __main__.TestMkenums.test_available_in 8437s # glib-mkenums: /usr/bin/glib-mkenums 8437s # tmpdir: /tmp/tmpn15ojuhv 8437s # rspfile: False 8437s # /tmp/tmpn15ojuhv/tmpi0zq7aw_.h: 8437s # typedef enum { 8437s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 8437s # } GDBusServerFlags; 8437s # 8437s # /tmp/tmpn15ojuhv/tmpgeyea81u.template: 8437s # /*** BEGIN file-header ***/ 8437s # file-header 8437s # /*** END file-header ***/ 8437s # 8437s # /*** BEGIN file-production ***/ 8437s # file-production 8437s # filename: @filename@ 8437s # basename: @basename@ 8437s # /*** END file-production ***/ 8437s # 8437s # /*** BEGIN enumeration-production ***/ 8437s # enumeration-production 8437s # EnumName: @EnumName@ 8437s # enum_name: @enum_name@ 8437s # ENUMNAME: @ENUMNAME@ 8437s # ENUMSHORT: @ENUMSHORT@ 8437s # ENUMPREFIX: @ENUMPREFIX@ 8437s # enumsince: @enumsince@ 8437s # type: @type@ 8437s # Type: @Type@ 8437s # TYPE: @TYPE@ 8437s # /*** END enumeration-production ***/ 8437s # 8437s # /*** BEGIN value-header ***/ 8437s # value-header 8437s # EnumName: @EnumName@ 8437s # enum_name: @enum_name@ 8437s # ENUMNAME: @ENUMNAME@ 8437s # ENUMSHORT: @ENUMSHORT@ 8437s # ENUMPREFIX: @ENUMPREFIX@ 8437s # enumsince: @enumsince@ 8437s # type: @type@ 8437s # Type: @Type@ 8437s # TYPE: @TYPE@ 8437s # /*** END value-header ***/ 8437s # 8437s # /*** BEGIN value-production ***/ 8437s # value-production 8437s # VALUENAME: @VALUENAME@ 8437s # valuenick: @valuenick@ 8437s # valuenum: @valuenum@ 8437s # type: @type@ 8437s # Type: @Type@ 8437s # TYPE: @TYPE@ 8437s # /*** END value-production ***/ 8437s # 8437s # /*** BEGIN value-tail ***/ 8437s # value-tail 8437s # EnumName: @EnumName@ 8437s # enum_name: @enum_name@ 8437s # ENUMNAME: @ENUMNAME@ 8437s # ENUMSHORT: @ENUMSHORT@ 8437s # ENUMPREFIX: @ENUMPREFIX@ 8437s # enumsince: @enumsince@ 8437s # type: @type@ 8437s # Type: @Type@ 8437s # TYPE: @TYPE@ 8437s # /*** END value-tail ***/ 8437s # 8437s # /*** BEGIN comment ***/ 8437s # comment 8437s # comment: @comment@ 8437s # /*** END comment ***/ 8437s # 8437s # /*** BEGIN file-tail ***/ 8437s # file-tail 8437s # /*** END file-tail ***/ 8437s # 8437s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpn15ojuhv/tmpgeyea81u.template', '/tmp/tmpn15ojuhv/tmpi0zq7aw_.h'] 8437s # Return code: 0 8437s # Output: 8437s # comment 8437s # 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. 8437s # 8437s # 8437s # file-header 8437s # file-production 8437s # filename: /tmp/tmpn15ojuhv/tmpi0zq7aw_.h 8437s # basename: tmpi0zq7aw_.h 8437s # enumeration-production 8437s # EnumName: GDBusServerFlags 8437s # enum_name: g_dbus_server_flags 8437s # ENUMNAME: G_DBUS_SERVER_FLAGS 8437s # ENUMSHORT: DBUS_SERVER_FLAGS 8437s # ENUMPREFIX: G 8437s # enumsince: 8437s # type: flags 8437s # Type: Flags 8437s # TYPE: FLAGS 8437s # value-header 8437s # EnumName: GDBusServerFlags 8437s # enum_name: g_dbus_server_flags 8437s # ENUMNAME: G_DBUS_SERVER_FLAGS 8437s # ENUMSHORT: DBUS_SERVER_FLAGS 8437s # ENUMPREFIX: G 8437s # enumsince: 8437s # type: flags 8437s # Type: Flags 8437s # TYPE: FLAGS 8437s # value-production 8437s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 8437s # valuenick: user 8437s # valuenum: 4 8437s # type: flags 8437s # Type: Flags 8437s # TYPE: FLAGS 8437s # value-tail 8437s # EnumName: GDBusServerFlags 8437s # enum_name: g_dbus_server_flags 8437s # ENUMNAME: G_DBUS_SERVER_FLAGS 8437s # ENUMSHORT: DBUS_SERVER_FLAGS 8437s # ENUMPREFIX: G 8437s # enumsince: 8437s # type: flags 8437s # Type: Flags 8437s # TYPE: FLAGS 8437s # file-tail 8437s # 8437s # comment 8437s # comment: Generated data ends here 8437s # Error: 8439s ok 2 __main__.TestMkenums.test_comma_in_enum_value 8439s # glib-mkenums: /usr/bin/glib-mkenums 8439s # tmpdir: /tmp/tmp1h0r1j54 8439s # rspfile: False 8439s # /tmp/tmp1h0r1j54/tmpa44vdm5u.h: 8439s # typedef enum { 8439s # ENUM_VALUE_WITH_COMMA = ',', 8439s # } TestCommaEnum; 8439s # 8439s # /tmp/tmp1h0r1j54/tmpjwty1_mw.template: 8439s # /*** BEGIN file-header ***/ 8439s # file-header 8439s # /*** END file-header ***/ 8439s # 8439s # /*** BEGIN file-production ***/ 8439s # file-production 8439s # filename: @filename@ 8439s # basename: @basename@ 8439s # /*** END file-production ***/ 8439s # 8439s # /*** BEGIN enumeration-production ***/ 8439s # enumeration-production 8439s # EnumName: @EnumName@ 8439s # enum_name: @enum_name@ 8439s # ENUMNAME: @ENUMNAME@ 8439s # ENUMSHORT: @ENUMSHORT@ 8439s # ENUMPREFIX: @ENUMPREFIX@ 8439s # enumsince: @enumsince@ 8439s # type: @type@ 8439s # Type: @Type@ 8439s # TYPE: @TYPE@ 8439s # /*** END enumeration-production ***/ 8439s # 8439s # /*** BEGIN value-header ***/ 8439s # value-header 8439s # EnumName: @EnumName@ 8439s # enum_name: @enum_name@ 8439s # ENUMNAME: @ENUMNAME@ 8439s # ENUMSHORT: @ENUMSHORT@ 8439s # ENUMPREFIX: @ENUMPREFIX@ 8439s # enumsince: @enumsince@ 8439s # type: @type@ 8439s # Type: @Type@ 8439s # TYPE: @TYPE@ 8439s # /*** END value-header ***/ 8439s # 8439s # /*** BEGIN value-production ***/ 8439s # value-production 8439s # VALUENAME: @VALUENAME@ 8439s # valuenick: @valuenick@ 8439s # valuenum: @valuenum@ 8439s # type: @type@ 8439s # Type: @Type@ 8439s # TYPE: @TYPE@ 8439s # /*** END value-production ***/ 8439s # 8439s # /*** BEGIN value-tail ***/ 8439s # value-tail 8439s # EnumName: @EnumName@ 8439s # enum_name: @enum_name@ 8439s # ENUMNAME: @ENUMNAME@ 8439s # ENUMSHORT: @ENUMSHORT@ 8439s # ENUMPREFIX: @ENUMPREFIX@ 8439s # enumsince: @enumsince@ 8439s # type: @type@ 8439s # Type: @Type@ 8439s # TYPE: @TYPE@ 8439s # /*** END value-tail ***/ 8439s # 8439s # /*** BEGIN comment ***/ 8439s # comment 8439s # comment: @comment@ 8439s # /*** END comment ***/ 8439s # 8439s # /*** BEGIN file-tail ***/ 8439s # file-tail 8439s # /*** END file-tail ***/ 8439s # 8439s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp1h0r1j54/tmpjwty1_mw.template', '/tmp/tmp1h0r1j54/tmpa44vdm5u.h'] 8439s # Return code: 0 8439s # Output: 8439s # comment 8439s # 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. 8439s # 8439s # 8439s # file-header 8439s # file-production 8439s # filename: /tmp/tmp1h0r1j54/tmpa44vdm5u.h 8439s # basename: tmpa44vdm5u.h 8439s # enumeration-production 8439s # EnumName: TestCommaEnum 8439s # enum_name: test_comma_enum 8439s # ENUMNAME: TEST_COMMA_ENUM 8439s # ENUMSHORT: COMMA_ENUM 8439s # ENUMPREFIX: TEST 8439s # enumsince: 8439s # type: enum 8439s # Type: Enum 8439s # TYPE: ENUM 8439s # value-header 8439s # EnumName: TestCommaEnum 8439s # enum_name: test_comma_enum 8439s # ENUMNAME: TEST_COMMA_ENUM 8439s # ENUMSHORT: COMMA_ENUM 8439s # ENUMPREFIX: TEST 8439s # enumsince: 8439s # type: enum 8439s # Type: Enum 8439s # TYPE: ENUM 8439s # value-production 8439s # VALUENAME: ENUM_VALUE_WITH_COMMA 8439s # valuenick: comma 8439s # valuenum: 44 8439s # type: enum 8439s # Type: Enum 8439s # TYPE: ENUM 8439s # value-tail 8439s # EnumName: TestCommaEnum 8439s # enum_name: test_comma_enum 8439s # ENUMNAME: TEST_COMMA_ENUM 8439s # ENUMSHORT: COMMA_ENUM 8439s # ENUMPREFIX: TEST 8439s # enumsince: 8439s # type: enum 8439s # Type: Enum 8439s # TYPE: ENUM 8439s # file-tail 8439s # 8439s # comment 8439s # comment: Generated data ends here 8439s # Error: 8440s # Executing: glib/mkenums.py.test 8441s ok 3 __main__.TestMkenums.test_deprecated_in 8441s # glib-mkenums: /usr/bin/glib-mkenums 8441s # tmpdir: /tmp/tmpubqb57kl 8441s # rspfile: False 8441s # /tmp/tmpubqb57kl/tmp2evx5o3i.h: 8441s # typedef enum { 8441s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 8441s # } GDBusServerFlags; 8441s # 8441s # /tmp/tmpubqb57kl/tmpvtbi1zyb.template: 8441s # /*** BEGIN file-header ***/ 8441s # file-header 8441s # /*** END file-header ***/ 8441s # 8441s # /*** BEGIN file-production ***/ 8441s # file-production 8441s # filename: @filename@ 8441s # basename: @basename@ 8441s # /*** END file-production ***/ 8441s # 8441s # /*** BEGIN enumeration-production ***/ 8441s # enumeration-production 8441s # EnumName: @EnumName@ 8441s # enum_name: @enum_name@ 8441s # ENUMNAME: @ENUMNAME@ 8441s # ENUMSHORT: @ENUMSHORT@ 8441s # ENUMPREFIX: @ENUMPREFIX@ 8441s # enumsince: @enumsince@ 8441s # type: @type@ 8441s # Type: @Type@ 8441s # TYPE: @TYPE@ 8441s # /*** END enumeration-production ***/ 8441s # 8441s # /*** BEGIN value-header ***/ 8441s # value-header 8441s # EnumName: @EnumName@ 8441s # enum_name: @enum_name@ 8441s # ENUMNAME: @ENUMNAME@ 8441s # ENUMSHORT: @ENUMSHORT@ 8441s # ENUMPREFIX: @ENUMPREFIX@ 8441s # enumsince: @enumsince@ 8441s # type: @type@ 8441s # Type: @Type@ 8441s # TYPE: @TYPE@ 8441s # /*** END value-header ***/ 8441s # 8441s # /*** BEGIN value-production ***/ 8441s # value-production 8441s # VALUENAME: @VALUENAME@ 8441s # valuenick: @valuenick@ 8441s # valuenum: @valuenum@ 8441s # type: @type@ 8441s # Type: @Type@ 8441s # TYPE: @TYPE@ 8441s # /*** END value-production ***/ 8441s # 8441s # /*** BEGIN value-tail ***/ 8441s # value-tail 8441s # EnumName: @EnumName@ 8441s # enum_name: @enum_name@ 8441s # ENUMNAME: @ENUMNAME@ 8441s # ENUMSHORT: @ENUMSHORT@ 8441s # ENUMPREFIX: @ENUMPREFIX@ 8441s # enumsince: @enumsince@ 8441s # type: @type@ 8441s # Type: @Type@ 8441s # TYPE: @TYPE@ 8441s # /*** END value-tail ***/ 8441s # 8441s # /*** BEGIN comment ***/ 8441s # comment 8441s # comment: @comment@ 8441s # /*** END comment ***/ 8441s # 8441s # /*** BEGIN file-tail ***/ 8441s # file-tail 8441s # /*** END file-tail ***/ 8441s # 8441s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpubqb57kl/tmpvtbi1zyb.template', '/tmp/tmpubqb57kl/tmp2evx5o3i.h'] 8441s # Return code: 0 8441s # Output: 8441s # comment 8441s # 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. 8441s # 8441s # 8441s # file-header 8441s # file-production 8441s # filename: /tmp/tmpubqb57kl/tmp2evx5o3i.h 8441s # basename: tmp2evx5o3i.h 8441s # enumeration-production 8441s # EnumName: GDBusServerFlags 8441s # enum_name: g_dbus_server_flags 8441s # ENUMNAME: G_DBUS_SERVER_FLAGS 8441s # ENUMSHORT: DBUS_SERVER_FLAGS 8441s # ENUMPREFIX: G 8441s # enumsince: 8441s # type: flags 8441s # Type: Flags 8441s # TYPE: FLAGS 8441s # value-header 8441s # EnumName: GDBusServerFlags 8441s # enum_name: g_dbus_server_flags 8441s # ENUMNAME: G_DBUS_SERVER_FLAGS 8441s # ENUMSHORT: DBUS_SERVER_FLAGS 8441s # ENUMPREFIX: G 8441s # enumsince: 8441s # type: flags 8441s # Type: Flags 8441s # TYPE: FLAGS 8441s # value-production 8441s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 8441s # valuenick: user 8441s # valuenum: 4 8441s # type: flags 8441s # Type: Flags 8441s # TYPE: FLAGS 8441s # value-tail 8441s # EnumName: GDBusServerFlags 8441s # enum_name: g_dbus_server_flags 8441s # ENUMNAME: G_DBUS_SERVER_FLAGS 8441s # ENUMSHORT: DBUS_SERVER_FLAGS 8441s # ENUMPREFIX: G 8441s # enumsince: 8441s # type: flags 8441s # Type: Flags 8441s # TYPE: FLAGS 8441s # file-tail 8441s # 8441s # comment 8441s # comment: Generated data ends here 8441s # Error: 8442s ok 4 __main__.TestMkenums.test_deprecated_in_for 8442s # glib-mkenums: /usr/bin/glib-mkenums 8442s # tmpdir: /tmp/tmp28zo19zd 8442s # rspfile: False 8442s # /tmp/tmp28zo19zd/tmpphxc674e.h: 8442s # typedef enum { 8442s # 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) 8442s # } GDBusServerFlags; 8442s # 8442s # /tmp/tmp28zo19zd/tmps8u65oia.template: 8442s # /*** BEGIN file-header ***/ 8442s # file-header 8442s # /*** END file-header ***/ 8442s # 8442s # /*** BEGIN file-production ***/ 8442s # file-production 8442s # filename: @filename@ 8442s # basename: @basename@ 8442s # /*** END file-production ***/ 8442s # 8442s # /*** BEGIN enumeration-production ***/ 8442s # enumeration-production 8442s # EnumName: @EnumName@ 8442s # enum_name: @enum_name@ 8442s # ENUMNAME: @ENUMNAME@ 8442s # ENUMSHORT: @ENUMSHORT@ 8442s # ENUMPREFIX: @ENUMPREFIX@ 8442s # enumsince: @enumsince@ 8442s # type: @type@ 8442s # Type: @Type@ 8442s # TYPE: @TYPE@ 8442s # /*** END enumeration-production ***/ 8442s # 8442s # /*** BEGIN value-header ***/ 8442s # value-header 8442s # EnumName: @EnumName@ 8442s # enum_name: @enum_name@ 8442s # ENUMNAME: @ENUMNAME@ 8442s # ENUMSHORT: @ENUMSHORT@ 8442s # ENUMPREFIX: @ENUMPREFIX@ 8442s # enumsince: @enumsince@ 8442s # type: @type@ 8442s # Type: @Type@ 8442s # TYPE: @TYPE@ 8442s # /*** END value-header ***/ 8442s # 8442s # /*** BEGIN value-production ***/ 8442s # value-production 8442s # VALUENAME: @VALUENAME@ 8442s # valuenick: @valuenick@ 8442s # valuenum: @valuenum@ 8442s # type: @type@ 8442s # Type: @Type@ 8442s # TYPE: @TYPE@ 8442s # /*** END value-production ***/ 8442s # 8442s # /*** BEGIN value-tail ***/ 8442s # value-tail 8442s # EnumName: @EnumName@ 8442s # enum_name: @enum_name@ 8442s # ENUMNAME: @ENUMNAME@ 8442s # ENUMSHORT: @ENUMSHORT@ 8442s # ENUMPREFIX: @ENUMPREFIX@ 8442s # enumsince: @enumsince@ 8442s # type: @type@ 8442s # Type: @Type@ 8442s # TYPE: @TYPE@ 8442s # /*** END value-tail ***/ 8442s # 8442s # /*** BEGIN comment ***/ 8442s # comment 8442s # comment: @comment@ 8442s # /*** END comment ***/ 8442s # 8442s # /*** BEGIN file-tail ***/ 8442s # file-tail 8442s # /*** END file-tail ***/ 8442s # 8442s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp28zo19zd/tmps8u65oia.template', '/tmp/tmp28zo19zd/tmpphxc674e.h'] 8442s # Return code: 0 8442s # Output: 8442s # comment 8442s # 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. 8442s # 8442s # 8442s # file-header 8442s # file-production 8442s # filename: /tmp/tmp28zo19zd/tmpphxc674e.h 8442s # basename: tmpphxc674e.h 8442s # enumeration-production 8442s # EnumName: GDBusServerFlags 8442s # enum_name: g_dbus_server_flags 8442s # ENUMNAME: G_DBUS_SERVER_FLAGS 8442s # ENUMSHORT: DBUS_SERVER_FLAGS 8442s # ENUMPREFIX: G 8442s # enumsince: 8442s # type: flags 8442s # Type: Flags 8442s # TYPE: FLAGS 8442s # value-header 8442s # EnumName: GDBusServerFlags 8442s # enum_name: g_dbus_server_flags 8442s # ENUMNAME: G_DBUS_SERVER_FLAGS 8442s # ENUMSHORT: DBUS_SERVER_FLAGS 8442s # ENUMPREFIX: G 8442s # enumsince: 8442s # type: flags 8442s # Type: Flags 8442s # TYPE: FLAGS 8442s # value-production 8442s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 8442s # valuenick: user 8442s # valuenum: 4 8442s # type: flags 8442s # Type: Flags 8442s # TYPE: FLAGS 8442s # value-tail 8442s # EnumName: GDBusServerFlags 8442s # enum_name: g_dbus_server_flags 8442s # ENUMNAME: G_DBUS_SERVER_FLAGS 8442s # ENUMSHORT: DBUS_SERVER_FLAGS 8442s # ENUMPREFIX: G 8442s # enumsince: 8442s # type: flags 8442s # Type: Flags 8442s # TYPE: FLAGS 8442s # file-tail 8442s # 8442s # comment 8442s # comment: Generated data ends here 8442s # Error: 8444s ok 5 __main__.TestMkenums.test_empty_header 8444s # glib-mkenums: /usr/bin/glib-mkenums 8444s # tmpdir: /tmp/tmptp3txwrs 8444s # rspfile: False 8444s # /tmp/tmptp3txwrs/tmplbkjb26v.h: 8444s # /tmp/tmptp3txwrs/tmpx7oxcig0.template: 8444s # /*** BEGIN file-header ***/ 8444s # file-header 8444s # /*** END file-header ***/ 8444s # 8444s # /*** BEGIN file-production ***/ 8444s # file-production 8444s # filename: @filename@ 8444s # basename: @basename@ 8444s # /*** END file-production ***/ 8444s # 8444s # /*** BEGIN enumeration-production ***/ 8444s # enumeration-production 8444s # EnumName: @EnumName@ 8444s # enum_name: @enum_name@ 8444s # ENUMNAME: @ENUMNAME@ 8444s # ENUMSHORT: @ENUMSHORT@ 8444s # ENUMPREFIX: @ENUMPREFIX@ 8444s # enumsince: @enumsince@ 8444s # type: @type@ 8444s # Type: @Type@ 8444s # TYPE: @TYPE@ 8444s # /*** END enumeration-production ***/ 8444s # 8444s # /*** BEGIN value-header ***/ 8444s # value-header 8444s # EnumName: @EnumName@ 8444s # enum_name: @enum_name@ 8444s # ENUMNAME: @ENUMNAME@ 8444s # ENUMSHORT: @ENUMSHORT@ 8444s # ENUMPREFIX: @ENUMPREFIX@ 8444s # enumsince: @enumsince@ 8444s # type: @type@ 8444s # Type: @Type@ 8444s # TYPE: @TYPE@ 8444s # /*** END value-header ***/ 8444s # 8444s # /*** BEGIN value-production ***/ 8444s # value-production 8444s # VALUENAME: @VALUENAME@ 8444s # valuenick: @valuenick@ 8444s # valuenum: @valuenum@ 8444s # type: @type@ 8444s # Type: @Type@ 8444s # TYPE: @TYPE@ 8444s # /*** END value-production ***/ 8444s # 8444s # /*** BEGIN value-tail ***/ 8444s # value-tail 8444s # EnumName: @EnumName@ 8444s # enum_name: @enum_name@ 8444s # ENUMNAME: @ENUMNAME@ 8444s # ENUMSHORT: @ENUMSHORT@ 8444s # ENUMPREFIX: @ENUMPREFIX@ 8444s # enumsince: @enumsince@ 8444s # type: @type@ 8444s # Type: @Type@ 8444s # TYPE: @TYPE@ 8444s # /*** END value-tail ***/ 8444s # 8444s # /*** BEGIN comment ***/ 8444s # comment 8444s # comment: @comment@ 8444s # /*** END comment ***/ 8444s # 8444s # /*** BEGIN file-tail ***/ 8444s # file-tail 8444s # /*** END file-tail ***/ 8444s # 8444s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmptp3txwrs/tmpx7oxcig0.template', '/tmp/tmptp3txwrs/tmplbkjb26v.h'] 8444s # Return code: 0 8444s # Output: 8444s # comment 8444s # 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. 8444s # 8444s # 8444s # file-header 8444s # file-tail 8444s # 8444s # comment 8444s # comment: Generated data ends here 8444s # Error: 8445s # Executing: glib/mkenums.py.test 8446s ok 6 __main__.TestMkenums.test_empty_template 8446s # glib-mkenums: /usr/bin/glib-mkenums 8446s # tmpdir: /tmp/tmpaw_8lynf 8446s # rspfile: False 8446s # /tmp/tmpaw_8lynf/tmpunu2e2j5.template: 8446s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpaw_8lynf/tmpunu2e2j5.template'] 8446s # Return code: 0 8446s # Output: 8446s # /* 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. */ 8446s # 8446s # 8446s # /* Generated data ends here */ 8446s # Error: 8448s ok 7 __main__.TestMkenums.test_enum_name 8448s # glib-mkenums: /usr/bin/glib-mkenums 8448s # tmpdir: /tmp/tmplxru_f6q 8448s # rspfile: False 8448s # /tmp/tmplxru_f6q/tmp4alvn5ef.h: 8448s # typedef enum _SomeEnumIdentifier { 8448s # ENUM_VALUE 8448s # } SomeEnumIdentifier; 8448s # 8448s # /tmp/tmplxru_f6q/tmpjeoo7v4h.template: 8448s # /*** BEGIN file-header ***/ 8448s # file-header 8448s # /*** END file-header ***/ 8448s # 8448s # /*** BEGIN file-production ***/ 8448s # file-production 8448s # filename: @filename@ 8448s # basename: @basename@ 8448s # /*** END file-production ***/ 8448s # 8448s # /*** BEGIN enumeration-production ***/ 8448s # enumeration-production 8448s # EnumName: @EnumName@ 8448s # enum_name: @enum_name@ 8448s # ENUMNAME: @ENUMNAME@ 8448s # ENUMSHORT: @ENUMSHORT@ 8448s # ENUMPREFIX: @ENUMPREFIX@ 8448s # enumsince: @enumsince@ 8448s # type: @type@ 8448s # Type: @Type@ 8448s # TYPE: @TYPE@ 8448s # /*** END enumeration-production ***/ 8448s # 8448s # /*** BEGIN value-header ***/ 8448s # value-header 8448s # EnumName: @EnumName@ 8448s # enum_name: @enum_name@ 8448s # ENUMNAME: @ENUMNAME@ 8448s # ENUMSHORT: @ENUMSHORT@ 8448s # ENUMPREFIX: @ENUMPREFIX@ 8448s # enumsince: @enumsince@ 8448s # type: @type@ 8448s # Type: @Type@ 8448s # TYPE: @TYPE@ 8448s # /*** END value-header ***/ 8448s # 8448s # /*** BEGIN value-production ***/ 8448s # value-production 8448s # VALUENAME: @VALUENAME@ 8448s # valuenick: @valuenick@ 8448s # valuenum: @valuenum@ 8448s # type: @type@ 8448s # Type: @Type@ 8448s # TYPE: @TYPE@ 8448s # /*** END value-production ***/ 8448s # 8448s # /*** BEGIN value-tail ***/ 8448s # value-tail 8448s # EnumName: @EnumName@ 8448s # enum_name: @enum_name@ 8448s # ENUMNAME: @ENUMNAME@ 8448s # ENUMSHORT: @ENUMSHORT@ 8448s # ENUMPREFIX: @ENUMPREFIX@ 8448s # enumsince: @enumsince@ 8448s # type: @type@ 8448s # Type: @Type@ 8448s # TYPE: @TYPE@ 8448s # /*** END value-tail ***/ 8448s # 8448s # /*** BEGIN comment ***/ 8448s # comment 8448s # comment: @comment@ 8448s # /*** END comment ***/ 8448s # 8448s # /*** BEGIN file-tail ***/ 8448s # file-tail 8448s # /*** END file-tail ***/ 8448s # 8448s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmplxru_f6q/tmpjeoo7v4h.template', '/tmp/tmplxru_f6q/tmp4alvn5ef.h'] 8448s # Return code: 0 8448s # Output: 8448s # comment 8448s # 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. 8448s # 8448s # 8448s # file-header 8448s # file-production 8448s # filename: /tmp/tmplxru_f6q/tmp4alvn5ef.h 8448s # basename: tmp4alvn5ef.h 8448s # enumeration-production 8448s # EnumName: SomeEnumIdentifier 8448s # enum_name: some_enum_identifier 8448s # ENUMNAME: SOME_ENUM_IDENTIFIER 8448s # ENUMSHORT: ENUM_IDENTIFIER 8448s # ENUMPREFIX: SOME 8448s # enumsince: 8448s # type: enum 8448s # Type: Enum 8448s # TYPE: ENUM 8448s # value-header 8448s # EnumName: SomeEnumIdentifier 8448s # enum_name: some_enum_identifier 8448s # ENUMNAME: SOME_ENUM_IDENTIFIER 8448s # ENUMSHORT: ENUM_IDENTIFIER 8448s # ENUMPREFIX: SOME 8448s # enumsince: 8448s # type: enum 8448s # Type: Enum 8448s # TYPE: ENUM 8448s # value-production 8448s # VALUENAME: ENUM_VALUE 8448s # valuenick: value 8448s # valuenum: 0 8448s # type: enum 8448s # Type: Enum 8448s # TYPE: ENUM 8448s # value-tail 8448s # EnumName: SomeEnumIdentifier 8448s # enum_name: some_enum_identifier 8448s # ENUMNAME: SOME_ENUM_IDENTIFIER 8448s # ENUMSHORT: ENUM_IDENTIFIER 8448s # ENUMPREFIX: SOME 8448s # enumsince: 8448s # type: enum 8448s # Type: Enum 8448s # TYPE: ENUM 8448s # file-tail 8448s # 8448s # comment 8448s # comment: Generated data ends here 8448s # Error: 8452s # Executing: glib/mkenums.py.test 8452s ok 8 __main__.TestMkenums.test_enum_private_public 8452s # glib-mkenums: /usr/bin/glib-mkenums 8452s # tmpdir: /tmp/tmpmvk586ce 8452s # rspfile: False 8452s # /tmp/tmpmvk586ce/tmpw79e09oi.h: 8452s # typedef enum { 8452s # ENUM_VALUE_PUBLIC1, 8452s # /*< private >*/ 8452s # ENUM_VALUE_PRIVATE, 8452s # } SomeEnumA 8452s # 8452s # /tmp/tmpmvk586ce/tmpuosh_mj8.template: 8452s # /*** BEGIN file-header ***/ 8452s # file-header 8452s # /*** END file-header ***/ 8452s # 8452s # /*** BEGIN file-production ***/ 8452s # file-production 8452s # filename: @filename@ 8452s # basename: @basename@ 8452s # /*** END file-production ***/ 8452s # 8452s # /*** BEGIN enumeration-production ***/ 8452s # enumeration-production 8452s # EnumName: @EnumName@ 8452s # enum_name: @enum_name@ 8452s # ENUMNAME: @ENUMNAME@ 8452s # ENUMSHORT: @ENUMSHORT@ 8452s # ENUMPREFIX: @ENUMPREFIX@ 8452s # enumsince: @enumsince@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END enumeration-production ***/ 8452s # 8452s # /*** BEGIN value-header ***/ 8452s # value-header 8452s # EnumName: @EnumName@ 8452s # enum_name: @enum_name@ 8452s # ENUMNAME: @ENUMNAME@ 8452s # ENUMSHORT: @ENUMSHORT@ 8452s # ENUMPREFIX: @ENUMPREFIX@ 8452s # enumsince: @enumsince@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END value-header ***/ 8452s # 8452s # /*** BEGIN value-production ***/ 8452s # value-production 8452s # VALUENAME: @VALUENAME@ 8452s # valuenick: @valuenick@ 8452s # valuenum: @valuenum@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END value-production ***/ 8452s # 8452s # /*** BEGIN value-tail ***/ 8452s # value-tail 8452s # EnumName: @EnumName@ 8452s # enum_name: @enum_name@ 8452s # ENUMNAME: @ENUMNAME@ 8452s # ENUMSHORT: @ENUMSHORT@ 8452s # ENUMPREFIX: @ENUMPREFIX@ 8452s # enumsince: @enumsince@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END value-tail ***/ 8452s # 8452s # /*** BEGIN comment ***/ 8452s # comment 8452s # comment: @comment@ 8452s # /*** END comment ***/ 8452s # 8452s # /*** BEGIN file-tail ***/ 8452s # file-tail 8452s # /*** END file-tail ***/ 8452s # 8452s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmvk586ce/tmpuosh_mj8.template', '/tmp/tmpmvk586ce/tmpw79e09oi.h'] 8452s # Return code: 0 8452s # Output: 8452s # comment 8452s # 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. 8452s # 8452s # 8452s # file-header 8452s # file-production 8452s # filename: /tmp/tmpmvk586ce/tmpw79e09oi.h 8452s # basename: tmpw79e09oi.h 8452s # enumeration-production 8452s # EnumName: SomeEnumA 8452s # enum_name: some_enum_a 8452s # ENUMNAME: SOME_ENUM_A 8452s # ENUMSHORT: ENUM_A 8452s # ENUMPREFIX: SOME 8452s # enumsince: 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # value-header 8452s # EnumName: SomeEnumA 8452s # enum_name: some_enum_a 8452s # ENUMNAME: SOME_ENUM_A 8452s # ENUMSHORT: ENUM_A 8452s # ENUMPREFIX: SOME 8452s # enumsince: 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # value-production 8452s # VALUENAME: ENUM_VALUE_PUBLIC1 8452s # valuenick: public1 8452s # valuenum: 0 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # value-tail 8452s # EnumName: SomeEnumA 8452s # enum_name: some_enum_a 8452s # ENUMNAME: SOME_ENUM_A 8452s # ENUMSHORT: ENUM_A 8452s # ENUMPREFIX: SOME 8452s # enumsince: 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # file-tail 8452s # 8452s # comment 8452s # comment: Generated data ends here 8452s # Error: 8452s # 8452s # /tmp/tmpmvk586ce/tmpwyir_kbq.h: 8452s # typedef enum { 8452s # /*< private >*/ 8452s # ENUM_VALUE_PRIVATE, 8452s # /*< public >*/ 8452s # ENUM_VALUE_PUBLIC2, 8452s # } SomeEnumB; 8452s # 8452s # /tmp/tmpmvk586ce/tmph4f5u1m1.template: 8452s # /*** BEGIN file-header ***/ 8452s # file-header 8452s # /*** END file-header ***/ 8452s # 8452s # /*** BEGIN file-production ***/ 8452s # file-production 8452s # filename: @filename@ 8452s # basename: @basename@ 8452s # /*** END file-production ***/ 8452s # 8452s # /*** BEGIN enumeration-production ***/ 8452s # enumeration-production 8452s # EnumName: @EnumName@ 8452s # enum_name: @enum_name@ 8452s # ENUMNAME: @ENUMNAME@ 8452s # ENUMSHORT: @ENUMSHORT@ 8452s # ENUMPREFIX: @ENUMPREFIX@ 8452s # enumsince: @enumsince@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END enumeration-production ***/ 8452s # 8452s # /*** BEGIN value-header ***/ 8452s # value-header 8452s # EnumName: @EnumName@ 8452s # enum_name: @enum_name@ 8452s # ENUMNAME: @ENUMNAME@ 8452s # ENUMSHORT: @ENUMSHORT@ 8452s # ENUMPREFIX: @ENUMPREFIX@ 8452s # enumsince: @enumsince@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END value-header ***/ 8452s # 8452s # /*** BEGIN value-production ***/ 8452s # value-production 8452s # VALUENAME: @VALUENAME@ 8452s # valuenick: @valuenick@ 8452s # valuenum: @valuenum@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END value-production ***/ 8452s # 8452s # /*** BEGIN value-tail ***/ 8452s # value-tail 8452s # EnumName: @EnumName@ 8452s # enum_name: @enum_name@ 8452s # ENUMNAME: @ENUMNAME@ 8452s # ENUMSHORT: @ENUMSHORT@ 8452s # ENUMPREFIX: @ENUMPREFIX@ 8452s # enumsince: @enumsince@ 8452s # type: @type@ 8452s # Type: @Type@ 8452s # TYPE: @TYPE@ 8452s # /*** END value-tail ***/ 8452s # 8452s # /*** BEGIN comment ***/ 8452s # comment 8452s # comment: @comment@ 8452s # /*** END comment ***/ 8452s # 8452s # /*** BEGIN file-tail ***/ 8452s # file-tail 8452s # /*** END file-tail ***/ 8452s # 8452s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmvk586ce/tmph4f5u1m1.template', '/tmp/tmpmvk586ce/tmpwyir_kbq.h'] 8452s # Return code: 0 8452s # Output: 8452s # comment 8452s # 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. 8452s # 8452s # 8452s # file-header 8452s # file-production 8452s # filename: /tmp/tmpmvk586ce/tmpwyir_kbq.h 8452s # basename: tmpwyir_kbq.h 8452s # enumeration-production 8452s # EnumName: SomeEnumB 8452s # enum_name: some_enum_b 8452s # ENUMNAME: SOME_ENUM_B 8452s # ENUMSHORT: ENUM_B 8452s # ENUMPREFIX: SOME 8452s # enumsince: 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # value-header 8452s # EnumName: SomeEnumB 8452s # enum_name: some_enum_b 8452s # ENUMNAME: SOME_ENUM_B 8452s # ENUMSHORT: ENUM_B 8452s # ENUMPREFIX: SOME 8452s # enumsince: 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # value-production 8452s # VALUENAME: ENUM_VALUE_PUBLIC2 8452s # valuenick: public2 8452s # valuenum: 1 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # value-tail 8452s # EnumName: SomeEnumB 8452s # enum_name: some_enum_b 8452s # ENUMNAME: SOME_ENUM_B 8452s # ENUMSHORT: ENUM_B 8452s # ENUMPREFIX: SOME 8452s # enumsince: 8452s # type: enum 8452s # Type: Enum 8452s # TYPE: ENUM 8452s # file-tail 8452s # 8452s # comment 8452s # comment: Generated data ends here 8452s # Error: 8453s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 8453s # glib-mkenums: /usr/bin/glib-mkenums 8453s # tmpdir: /tmp/tmp5zv4tc9o 8453s # rspfile: False 8453s # /tmp/tmp5zv4tc9o/tmpjwikb2po.h: 8453s # typedef enum { 8453s # /*< private >*/ 8453s # ENUM_VALUE_PRIVATE = 5, 8453s # /*< public >*/ 8453s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 8453s # } TestSymbolicEnum; 8453s # 8453s # /tmp/tmp5zv4tc9o/tmpshl9j62v.template: 8453s # /*** BEGIN file-header ***/ 8453s # file-header 8453s # /*** END file-header ***/ 8453s # 8453s # /*** BEGIN file-production ***/ 8453s # file-production 8453s # filename: @filename@ 8453s # basename: @basename@ 8453s # /*** END file-production ***/ 8453s # 8453s # /*** BEGIN enumeration-production ***/ 8453s # enumeration-production 8453s # EnumName: @EnumName@ 8453s # enum_name: @enum_name@ 8453s # ENUMNAME: @ENUMNAME@ 8453s # ENUMSHORT: @ENUMSHORT@ 8453s # ENUMPREFIX: @ENUMPREFIX@ 8453s # enumsince: @enumsince@ 8453s # type: @type@ 8453s # Type: @Type@ 8453s # TYPE: @TYPE@ 8453s # /*** END enumeration-production ***/ 8453s # 8453s # /*** BEGIN value-header ***/ 8453s # value-header 8453s # EnumName: @EnumName@ 8453s # enum_name: @enum_name@ 8453s # ENUMNAME: @ENUMNAME@ 8453s # ENUMSHORT: @ENUMSHORT@ 8453s # ENUMPREFIX: @ENUMPREFIX@ 8453s # enumsince: @enumsince@ 8453s # type: @type@ 8453s # Type: @Type@ 8453s # TYPE: @TYPE@ 8453s # /*** END value-header ***/ 8453s # 8453s # /*** BEGIN value-production ***/ 8453s # value-production 8453s # VALUENAME: @VALUENAME@ 8453s # valuenick: @valuenick@ 8453s # valuenum: @valuenum@ 8453s # type: @type@ 8453s # Type: @Type@ 8453s # TYPE: @TYPE@ 8453s # /*** END value-production ***/ 8453s # 8453s # /*** BEGIN value-tail ***/ 8453s # value-tail 8453s # EnumName: @EnumName@ 8453s # enum_name: @enum_name@ 8453s # ENUMNAME: @ENUMNAME@ 8453s # ENUMSHORT: @ENUMSHORT@ 8453s # ENUMPREFIX: @ENUMPREFIX@ 8453s # enumsince: @enumsince@ 8453s # type: @type@ 8453s # Type: @Type@ 8453s # TYPE: @TYPE@ 8453s # /*** END value-tail ***/ 8453s # 8453s # /*** BEGIN comment ***/ 8453s # comment 8453s # comment: @comment@ 8453s # /*** END comment ***/ 8453s # 8453s # /*** BEGIN file-tail ***/ 8453s # file-tail 8453s # /*** END file-tail ***/ 8453s # 8453s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp5zv4tc9o/tmpshl9j62v.template', '/tmp/tmp5zv4tc9o/tmpjwikb2po.h'] 8453s # Return code: 0 8453s # Output: 8453s # comment 8453s # 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. 8453s # 8453s # 8453s # file-header 8453s # file-production 8453s # filename: /tmp/tmp5zv4tc9o/tmpjwikb2po.h 8453s # basename: tmpjwikb2po.h 8453s # enumeration-production 8453s # EnumName: TestSymbolicEnum 8453s # enum_name: test_symbolic_enum 8453s # ENUMNAME: TEST_SYMBOLIC_ENUM 8453s # ENUMSHORT: SYMBOLIC_ENUM 8453s # ENUMPREFIX: TEST 8453s # enumsince: 8453s # type: enum 8453s # Type: Enum 8453s # TYPE: ENUM 8453s # value-header 8453s # EnumName: TestSymbolicEnum 8453s # enum_name: test_symbolic_enum 8453s # ENUMNAME: TEST_SYMBOLIC_ENUM 8453s # ENUMSHORT: SYMBOLIC_ENUM 8453s # ENUMPREFIX: TEST 8453s # enumsince: 8453s # type: enum 8453s # Type: Enum 8453s # TYPE: ENUM 8453s # value-production 8453s # VALUENAME: ENUM_VALUE_PUBLIC 8453s # valuenick: public 8453s # valuenum: 7 8453s # type: enum 8453s # Type: Enum 8453s # TYPE: ENUM 8453s # value-tail 8453s # EnumName: TestSymbolicEnum 8453s # enum_name: test_symbolic_enum 8453s # ENUMNAME: TEST_SYMBOLIC_ENUM 8453s # ENUMSHORT: SYMBOLIC_ENUM 8453s # ENUMPREFIX: TEST 8453s # enumsince: 8453s # type: enum 8453s # Type: Enum 8453s # TYPE: ENUM 8453s # file-tail 8453s # 8453s # comment 8453s # comment: Generated data ends here 8453s # Error: 8455s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 8455s # glib-mkenums: /usr/bin/glib-mkenums 8455s # tmpdir: /tmp/tmpezh86frl 8455s # rspfile: False 8455s # /tmp/tmpezh86frl/tmpplcswal_.template: 8455s # /*** BEGIN file-header ***/ 8455s # file-header 8455s # filename: @filename@ 8455s # basename: @basename@ 8455s # /*** END file-header ***/ 8455s # 8455s # /*** BEGIN comment ***/ 8455s # comment 8455s # comment: @comment@ 8455s # /*** END comment ***/ 8455s # 8455s # /*** BEGIN file-tail ***/ 8455s # file-tail 8455s # filename: @filename@ 8455s # basename: @basename@ 8455s # /*** END file-tail ***/ 8455s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpezh86frl/tmpplcswal_.template'] 8455s # Return code: 0 8455s # Output: 8455s # comment 8455s # 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. 8455s # 8455s # 8455s # file-header 8455s # filename: @filename@ 8455s # basename: @basename@ 8455s # file-tail 8455s # filename: @filename@ 8455s # basename: @basename@ 8455s # 8455s # comment 8455s # comment: Generated data ends here 8455s # Error: 8455s # WARNING: @filename@ used in file-header section. 8455s # WARNING: @basename@ used in file-header section. 8455s # WARNING: @filename@ used in file-tail section. 8455s # WARNING: @basename@ used in file-tail section. 8455s # Executing: glib/mkenums.py.test 8457s ok 11 __main__.TestMkenums.test_help 8457s # glib-mkenums: /usr/bin/glib-mkenums 8457s # tmpdir: /tmp/tmpa2qhlyiv 8457s # rspfile: False 8457s # Running: ['/usr/bin/glib-mkenums', '--help'] 8457s # Return code: 0 8457s # Output: 8457s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 8457s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 8457s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 8457s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 8457s # [--comments COMMENT_TMPL] [--template TEMPLATE] 8457s # [--output OUTPUT] [--version] 8457s # [args ...] 8457s # 8457s # positional arguments: 8457s # args One or more input files, or a single argument 8457s # @rspfile_path pointing to a file that contains the 8457s # actual arguments 8457s # 8457s # options: 8457s # -h, --help show this help message and exit 8457s # --identifier-prefix IDPREFIX 8457s # Identifier prefix 8457s # --symbol-prefix SYMPREFIX 8457s # Symbol prefix 8457s # --fhead FHEAD Output file header 8457s # --ftail FTAIL Output file footer 8457s # --fprod FPROD Put out TEXT every time a new input file is being 8457s # processed. 8457s # --eprod EPROD Per enum text, produced prior to value iterations 8457s # --vhead VHEAD Value header, produced before iterating over enum 8457s # values 8457s # --vprod VPROD Value text, produced for each enum value. 8457s # --vtail VTAIL Value tail, produced after iterating over enum values 8457s # --comments COMMENT_TMPL 8457s # Comment structure 8457s # --template TEMPLATE Template file 8457s # --output OUTPUT 8457s # --version, -v Print version information 8457s # 8457s # Production text substitutions: 8457s # @EnumName@ PrefixTheXEnum 8457s # @enum_name@ prefix_the_xenum 8457s # @ENUMNAME@ PREFIX_THE_XENUM 8457s # @ENUMSHORT@ THE_XENUM 8457s # @ENUMPREFIX@ PREFIX 8457s # @enumsince@ the user-provided since value given 8457s # @VALUENAME@ PREFIX_THE_XVALUE 8457s # @valuenick@ the-xvalue 8457s # @valuenum@ the integer value (limited support, Since: 2.26) 8457s # @type@ either enum or flags 8457s # @Type@ either Enum or Flags 8457s # @TYPE@ either ENUM or FLAGS 8457s # @filename@ name of current input file 8457s # @basename@ base name of the current input file (Since: 2.22) 8457s # Error: 8458s ok 12 __main__.TestMkenums.test_no_args 8458s # glib-mkenums: /usr/bin/glib-mkenums 8458s # tmpdir: /tmp/tmpavpqieih 8458s # rspfile: False 8458s # Running: ['/usr/bin/glib-mkenums'] 8458s # Return code: 0 8458s # Output: 8458s # /* 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. */ 8458s # 8458s # 8458s # /* Generated data ends here */ 8458s # Error: 8460s ok 13 __main__.TestMkenums.test_no_headers 8460s # glib-mkenums: /usr/bin/glib-mkenums 8460s # tmpdir: /tmp/tmp1vz9yxd4 8460s # rspfile: False 8460s # /tmp/tmp1vz9yxd4/tmp2j_16hhs.template: 8460s # /*** BEGIN file-header ***/ 8460s # file-header 8460s # /*** END file-header ***/ 8460s # 8460s # /*** BEGIN file-production ***/ 8460s # file-production 8460s # filename: @filename@ 8460s # basename: @basename@ 8460s # /*** END file-production ***/ 8460s # 8460s # /*** BEGIN enumeration-production ***/ 8460s # enumeration-production 8460s # EnumName: @EnumName@ 8460s # enum_name: @enum_name@ 8460s # ENUMNAME: @ENUMNAME@ 8460s # ENUMSHORT: @ENUMSHORT@ 8460s # ENUMPREFIX: @ENUMPREFIX@ 8460s # enumsince: @enumsince@ 8460s # type: @type@ 8460s # Type: @Type@ 8460s # TYPE: @TYPE@ 8460s # /*** END enumeration-production ***/ 8460s # 8460s # /*** BEGIN value-header ***/ 8460s # value-header 8460s # EnumName: @EnumName@ 8460s # enum_name: @enum_name@ 8460s # ENUMNAME: @ENUMNAME@ 8460s # ENUMSHORT: @ENUMSHORT@ 8460s # ENUMPREFIX: @ENUMPREFIX@ 8460s # enumsince: @enumsince@ 8460s # type: @type@ 8460s # Type: @Type@ 8460s # TYPE: @TYPE@ 8460s # /*** END value-header ***/ 8460s # 8460s # /*** BEGIN value-production ***/ 8460s # value-production 8460s # VALUENAME: @VALUENAME@ 8460s # valuenick: @valuenick@ 8460s # valuenum: @valuenum@ 8460s # type: @type@ 8460s # Type: @Type@ 8460s # TYPE: @TYPE@ 8460s # /*** END value-production ***/ 8460s # 8460s # /*** BEGIN value-tail ***/ 8460s # value-tail 8460s # EnumName: @EnumName@ 8460s # enum_name: @enum_name@ 8460s # ENUMNAME: @ENUMNAME@ 8460s # ENUMSHORT: @ENUMSHORT@ 8460s # ENUMPREFIX: @ENUMPREFIX@ 8460s # enumsince: @enumsince@ 8460s # type: @type@ 8460s # Type: @Type@ 8460s # TYPE: @TYPE@ 8460s # /*** END value-tail ***/ 8460s # 8460s # /*** BEGIN comment ***/ 8460s # comment 8460s # comment: @comment@ 8460s # /*** END comment ***/ 8460s # 8460s # /*** BEGIN file-tail ***/ 8460s # file-tail 8460s # /*** END file-tail ***/ 8460s # 8460s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp1vz9yxd4/tmp2j_16hhs.template'] 8460s # Return code: 0 8460s # Output: 8460s # comment 8460s # 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. 8460s # 8460s # 8460s # file-header 8460s # file-tail 8460s # 8460s # comment 8460s # comment: Generated data ends here 8460s # Error: 8460s # Executing: glib/mkenums.py.test 8462s ok 14 __main__.TestMkenums.test_no_nick 8462s # glib-mkenums: /usr/bin/glib-mkenums 8462s # tmpdir: /tmp/tmp0u8ab39s 8462s # rspfile: False 8462s # /tmp/tmp0u8ab39s/tmpxrz2m_3m.h: 8462s # typedef enum { 8462s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 8462s # } GeglSamplerType; 8462s # 8462s # /tmp/tmp0u8ab39s/tmp8e3sdw1t.template: 8462s # /*** BEGIN file-header ***/ 8462s # file-header 8462s # /*** END file-header ***/ 8462s # 8462s # /*** BEGIN file-production ***/ 8462s # file-production 8462s # filename: @filename@ 8462s # basename: @basename@ 8462s # /*** END file-production ***/ 8462s # 8462s # /*** BEGIN enumeration-production ***/ 8462s # enumeration-production 8462s # EnumName: @EnumName@ 8462s # enum_name: @enum_name@ 8462s # ENUMNAME: @ENUMNAME@ 8462s # ENUMSHORT: @ENUMSHORT@ 8462s # ENUMPREFIX: @ENUMPREFIX@ 8462s # enumsince: @enumsince@ 8462s # type: @type@ 8462s # Type: @Type@ 8462s # TYPE: @TYPE@ 8462s # /*** END enumeration-production ***/ 8462s # 8462s # /*** BEGIN value-header ***/ 8462s # value-header 8462s # EnumName: @EnumName@ 8462s # enum_name: @enum_name@ 8462s # ENUMNAME: @ENUMNAME@ 8462s # ENUMSHORT: @ENUMSHORT@ 8462s # ENUMPREFIX: @ENUMPREFIX@ 8462s # enumsince: @enumsince@ 8462s # type: @type@ 8462s # Type: @Type@ 8462s # TYPE: @TYPE@ 8462s # /*** END value-header ***/ 8462s # 8462s # /*** BEGIN value-production ***/ 8462s # value-production 8462s # VALUENAME: @VALUENAME@ 8462s # valuenick: @valuenick@ 8462s # valuenum: @valuenum@ 8462s # type: @type@ 8462s # Type: @Type@ 8462s # TYPE: @TYPE@ 8462s # /*** END value-production ***/ 8462s # 8462s # /*** BEGIN value-tail ***/ 8462s # value-tail 8462s # EnumName: @EnumName@ 8462s # enum_name: @enum_name@ 8462s # ENUMNAME: @ENUMNAME@ 8462s # ENUMSHORT: @ENUMSHORT@ 8462s # ENUMPREFIX: @ENUMPREFIX@ 8462s # enumsince: @enumsince@ 8462s # type: @type@ 8462s # Type: @Type@ 8462s # TYPE: @TYPE@ 8462s # /*** END value-tail ***/ 8462s # 8462s # /*** BEGIN comment ***/ 8462s # comment 8462s # comment: @comment@ 8462s # /*** END comment ***/ 8462s # 8462s # /*** BEGIN file-tail ***/ 8462s # file-tail 8462s # /*** END file-tail ***/ 8462s # 8462s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp0u8ab39s/tmp8e3sdw1t.template', '/tmp/tmp0u8ab39s/tmpxrz2m_3m.h'] 8462s # Return code: 0 8462s # Output: 8462s # comment 8462s # 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. 8462s # 8462s # 8462s # file-header 8462s # file-production 8462s # filename: /tmp/tmp0u8ab39s/tmpxrz2m_3m.h 8462s # basename: tmpxrz2m_3m.h 8462s # enumeration-production 8462s # EnumName: GeglSamplerType 8462s # enum_name: gegl_sampler_type 8462s # ENUMNAME: GEGL_SAMPLER_TYPE 8462s # ENUMSHORT: SAMPLER_TYPE 8462s # ENUMPREFIX: GEGL 8462s # enumsince: 8462s # type: enum 8462s # Type: Enum 8462s # TYPE: ENUM 8462s # value-header 8462s # EnumName: GeglSamplerType 8462s # enum_name: gegl_sampler_type 8462s # ENUMNAME: GEGL_SAMPLER_TYPE 8462s # ENUMSHORT: SAMPLER_TYPE 8462s # ENUMPREFIX: GEGL 8462s # enumsince: 8462s # type: enum 8462s # Type: Enum 8462s # TYPE: ENUM 8462s # value-production 8462s # VALUENAME: GEGL_SAMPLER_NEAREST 8462s # valuenick: nearest 8462s # valuenum: 0 8462s # type: enum 8462s # Type: Enum 8462s # TYPE: ENUM 8462s # value-tail 8462s # EnumName: GeglSamplerType 8462s # enum_name: gegl_sampler_type 8462s # ENUMNAME: GEGL_SAMPLER_TYPE 8462s # ENUMSHORT: SAMPLER_TYPE 8462s # ENUMPREFIX: GEGL 8462s # enumsince: 8462s # type: enum 8462s # Type: Enum 8462s # TYPE: ENUM 8462s # file-tail 8462s # 8462s # comment 8462s # comment: Generated data ends here 8462s # Error: 8463s ok 15 __main__.TestMkenums.test_non_utf8_encoding 8463s # glib-mkenums: /usr/bin/glib-mkenums 8463s # tmpdir: /tmp/tmpvgidh9pj 8463s # rspfile: False 8463s # /tmp/tmpvgidh9pj/tmp69s_8sti.h: 8463s # /* Copyright © La Peña */ 8463s # typedef enum { 8463s # ENUM_VALUE 8463s # } SomeEnumIdentifier; 8463s # 8463s # /tmp/tmpvgidh9pj/tmp8pt34tc8.template: 8463s # /*** BEGIN file-header ***/ 8463s # file-header 8463s # /*** END file-header ***/ 8463s # 8463s # /*** BEGIN file-production ***/ 8463s # file-production 8463s # filename: @filename@ 8463s # basename: @basename@ 8463s # /*** END file-production ***/ 8463s # 8463s # /*** BEGIN enumeration-production ***/ 8463s # enumeration-production 8463s # EnumName: @EnumName@ 8463s # enum_name: @enum_name@ 8463s # ENUMNAME: @ENUMNAME@ 8463s # ENUMSHORT: @ENUMSHORT@ 8463s # ENUMPREFIX: @ENUMPREFIX@ 8463s # enumsince: @enumsince@ 8463s # type: @type@ 8463s # Type: @Type@ 8463s # TYPE: @TYPE@ 8463s # /*** END enumeration-production ***/ 8463s # 8463s # /*** BEGIN value-header ***/ 8463s # value-header 8463s # EnumName: @EnumName@ 8463s # enum_name: @enum_name@ 8463s # ENUMNAME: @ENUMNAME@ 8463s # ENUMSHORT: @ENUMSHORT@ 8463s # ENUMPREFIX: @ENUMPREFIX@ 8463s # enumsince: @enumsince@ 8463s # type: @type@ 8463s # Type: @Type@ 8463s # TYPE: @TYPE@ 8463s # /*** END value-header ***/ 8463s # 8463s # /*** BEGIN value-production ***/ 8463s # value-production 8463s # VALUENAME: @VALUENAME@ 8463s # valuenick: @valuenick@ 8463s # valuenum: @valuenum@ 8463s # type: @type@ 8463s # Type: @Type@ 8463s # TYPE: @TYPE@ 8463s # /*** END value-production ***/ 8463s # 8463s # /*** BEGIN value-tail ***/ 8463s # value-tail 8463s # EnumName: @EnumName@ 8463s # enum_name: @enum_name@ 8463s # ENUMNAME: @ENUMNAME@ 8463s # ENUMSHORT: @ENUMSHORT@ 8463s # ENUMPREFIX: @ENUMPREFIX@ 8463s # enumsince: @enumsince@ 8463s # type: @type@ 8463s # Type: @Type@ 8463s # TYPE: @TYPE@ 8463s # /*** END value-tail ***/ 8463s # 8463s # /*** BEGIN comment ***/ 8463s # comment 8463s # comment: @comment@ 8463s # /*** END comment ***/ 8463s # 8463s # /*** BEGIN file-tail ***/ 8463s # file-tail 8463s # /*** END file-tail ***/ 8463s # 8463s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvgidh9pj/tmp8pt34tc8.template', '/tmp/tmpvgidh9pj/tmp69s_8sti.h'] 8463s # Return code: 0 8463s # Output: 8463s # comment 8463s # 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. 8463s # 8463s # 8463s # file-header 8463s # file-production 8463s # filename: /tmp/tmpvgidh9pj/tmp69s_8sti.h 8463s # basename: tmp69s_8sti.h 8463s # enumeration-production 8463s # EnumName: SomeEnumIdentifier 8463s # enum_name: some_enum_identifier 8463s # ENUMNAME: SOME_ENUM_IDENTIFIER 8463s # ENUMSHORT: ENUM_IDENTIFIER 8463s # ENUMPREFIX: SOME 8463s # enumsince: 8463s # type: enum 8463s # Type: Enum 8463s # TYPE: ENUM 8463s # value-header 8463s # EnumName: SomeEnumIdentifier 8463s # enum_name: some_enum_identifier 8463s # ENUMNAME: SOME_ENUM_IDENTIFIER 8463s # ENUMSHORT: ENUM_IDENTIFIER 8463s # ENUMPREFIX: SOME 8463s # enumsince: 8463s # type: enum 8463s # Type: Enum 8463s # TYPE: ENUM 8463s # value-production 8463s # VALUENAME: ENUM_VALUE 8463s # valuenick: value 8463s # valuenum: 0 8463s # type: enum 8463s # Type: Enum 8463s # TYPE: ENUM 8463s # value-tail 8463s # EnumName: SomeEnumIdentifier 8463s # enum_name: some_enum_identifier 8463s # ENUMNAME: SOME_ENUM_IDENTIFIER 8463s # ENUMSHORT: ENUM_IDENTIFIER 8463s # ENUMPREFIX: SOME 8463s # enumsince: 8463s # type: enum 8463s # Type: Enum 8463s # TYPE: ENUM 8463s # file-tail 8463s # 8463s # comment 8463s # comment: Generated data ends here 8463s # Error: 8463s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 8463s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 8465s # Executing: glib/mkenums.py.test 8466s ok 16 __main__.TestMkenums.test_reproducible 8466s # glib-mkenums: /usr/bin/glib-mkenums 8466s # tmpdir: /tmp/tmpevbxsqz4 8466s # rspfile: False 8466s # /tmp/tmpevbxsqz4/tmpomyhp_ow.template: template 8466s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpevbxsqz4/tmpomyhp_ow.template', '/tmp/tmpevbxsqz4/tmp4f_pbcr61.h', '/tmp/tmpevbxsqz4/tmptaguysfu2.h'] 8466s # Return code: 0 8466s # Output: 8466s # /* 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. */ 8466s # 8466s # 8466s # /* Generated data ends here */ 8466s # Error: 8466s # 8466s # /tmp/tmpevbxsqz4/tmplktx1zrg.template: template 8466s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpevbxsqz4/tmplktx1zrg.template', '/tmp/tmpevbxsqz4/tmptaguysfu2.h', '/tmp/tmpevbxsqz4/tmp4f_pbcr61.h'] 8466s # Return code: 0 8466s # Output: 8466s # /* 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. */ 8466s # 8466s # 8466s # /* Generated data ends here */ 8466s # Error: 8468s ok 17 __main__.TestMkenums.test_since 8468s # glib-mkenums: /usr/bin/glib-mkenums 8468s # tmpdir: /tmp/tmpgzhrw_16 8468s # rspfile: False 8468s # /tmp/tmpgzhrw_16/tmpyew09faj.h: 8468s # typedef enum { /*< since=1.0 >*/ 8468s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 8468s # } QmiWmsMessageProtocol; 8468s # 8468s # /tmp/tmpgzhrw_16/tmpvv7e98_7.template: 8468s # /*** BEGIN file-header ***/ 8468s # file-header 8468s # /*** END file-header ***/ 8468s # 8468s # /*** BEGIN file-production ***/ 8468s # file-production 8468s # filename: @filename@ 8468s # basename: @basename@ 8468s # /*** END file-production ***/ 8468s # 8468s # /*** BEGIN enumeration-production ***/ 8468s # enumeration-production 8468s # EnumName: @EnumName@ 8468s # enum_name: @enum_name@ 8468s # ENUMNAME: @ENUMNAME@ 8468s # ENUMSHORT: @ENUMSHORT@ 8468s # ENUMPREFIX: @ENUMPREFIX@ 8468s # enumsince: @enumsince@ 8468s # type: @type@ 8468s # Type: @Type@ 8468s # TYPE: @TYPE@ 8468s # /*** END enumeration-production ***/ 8468s # 8468s # /*** BEGIN value-header ***/ 8468s # value-header 8468s # EnumName: @EnumName@ 8468s # enum_name: @enum_name@ 8468s # ENUMNAME: @ENUMNAME@ 8468s # ENUMSHORT: @ENUMSHORT@ 8468s # ENUMPREFIX: @ENUMPREFIX@ 8468s # enumsince: @enumsince@ 8468s # type: @type@ 8468s # Type: @Type@ 8468s # TYPE: @TYPE@ 8468s # /*** END value-header ***/ 8468s # 8468s # /*** BEGIN value-production ***/ 8468s # value-production 8468s # VALUENAME: @VALUENAME@ 8468s # valuenick: @valuenick@ 8468s # valuenum: @valuenum@ 8468s # type: @type@ 8468s # Type: @Type@ 8468s # TYPE: @TYPE@ 8468s # /*** END value-production ***/ 8468s # 8468s # /*** BEGIN value-tail ***/ 8468s # value-tail 8468s # EnumName: @EnumName@ 8468s # enum_name: @enum_name@ 8468s # ENUMNAME: @ENUMNAME@ 8468s # ENUMSHORT: @ENUMSHORT@ 8468s # ENUMPREFIX: @ENUMPREFIX@ 8468s # enumsince: @enumsince@ 8468s # type: @type@ 8468s # Type: @Type@ 8468s # TYPE: @TYPE@ 8468s # /*** END value-tail ***/ 8468s # 8468s # /*** BEGIN comment ***/ 8468s # comment 8468s # comment: @comment@ 8468s # /*** END comment ***/ 8468s # 8468s # /*** BEGIN file-tail ***/ 8468s # file-tail 8468s # /*** END file-tail ***/ 8468s # 8468s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpgzhrw_16/tmpvv7e98_7.template', '/tmp/tmpgzhrw_16/tmpyew09faj.h'] 8468s # Return code: 0 8468s # Output: 8468s # comment 8468s # 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. 8468s # 8468s # 8468s # file-header 8468s # file-production 8468s # filename: /tmp/tmpgzhrw_16/tmpyew09faj.h 8468s # basename: tmpyew09faj.h 8468s # enumeration-production 8468s # EnumName: QmiWmsMessageProtocol 8468s # enum_name: qmi_wms_message_protocol 8468s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 8468s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 8468s # ENUMPREFIX: QMI 8468s # enumsince: 1.0 8468s # type: enum 8468s # Type: Enum 8468s # TYPE: ENUM 8468s # value-header 8468s # EnumName: QmiWmsMessageProtocol 8468s # enum_name: qmi_wms_message_protocol 8468s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 8468s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 8468s # ENUMPREFIX: QMI 8468s # enumsince: 1.0 8468s # type: enum 8468s # Type: Enum 8468s # TYPE: ENUM 8468s # value-production 8468s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 8468s # valuenick: cdma 8468s # valuenum: 0 8468s # type: enum 8468s # Type: Enum 8468s # TYPE: ENUM 8468s # value-tail 8468s # EnumName: QmiWmsMessageProtocol 8468s # enum_name: qmi_wms_message_protocol 8468s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 8468s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 8468s # ENUMPREFIX: QMI 8468s # enumsince: 1.0 8468s # type: enum 8468s # Type: Enum 8468s # TYPE: ENUM 8468s # file-tail 8468s # 8468s # comment 8468s # comment: Generated data ends here 8468s # Error: 8469s ok 18 __main__.TestMkenums.test_with_double_quotes 8469s # glib-mkenums: /usr/bin/glib-mkenums 8469s # tmpdir: /tmp/tmp7gp3zq1_ 8469s # rspfile: False 8469s # /tmp/tmp7gp3zq1_/tmpnu9lpazo.h: 8469s # typedef enum { 8469s # FOO_VALUE /*< nick="eek, a comma" >*/ 8469s # } Foo; 8469s # 8469s # /tmp/tmp7gp3zq1_/tmpgi27rliu.template: 8469s # /*** BEGIN file-header ***/ 8469s # file-header 8469s # /*** END file-header ***/ 8469s # 8469s # /*** BEGIN file-production ***/ 8469s # file-production 8469s # filename: @filename@ 8469s # basename: @basename@ 8469s # /*** END file-production ***/ 8469s # 8469s # /*** BEGIN enumeration-production ***/ 8469s # enumeration-production 8469s # EnumName: @EnumName@ 8469s # enum_name: @enum_name@ 8469s # ENUMNAME: @ENUMNAME@ 8469s # ENUMSHORT: @ENUMSHORT@ 8469s # ENUMPREFIX: @ENUMPREFIX@ 8469s # enumsince: @enumsince@ 8469s # type: @type@ 8469s # Type: @Type@ 8469s # TYPE: @TYPE@ 8469s # /*** END enumeration-production ***/ 8469s # 8469s # /*** BEGIN value-header ***/ 8469s # value-header 8469s # EnumName: @EnumName@ 8469s # enum_name: @enum_name@ 8469s # ENUMNAME: @ENUMNAME@ 8469s # ENUMSHORT: @ENUMSHORT@ 8469s # ENUMPREFIX: @ENUMPREFIX@ 8469s # enumsince: @enumsince@ 8469s # type: @type@ 8469s # Type: @Type@ 8469s # TYPE: @TYPE@ 8469s # /*** END value-header ***/ 8469s # 8469s # /*** BEGIN value-production ***/ 8469s # value-production 8469s # VALUENAME: @VALUENAME@ 8469s # valuenick: @valuenick@ 8469s # valuenum: @valuenum@ 8469s # type: @type@ 8469s # Type: @Type@ 8469s # TYPE: @TYPE@ 8469s # /*** END value-production ***/ 8469s # 8469s # /*** BEGIN value-tail ***/ 8469s # value-tail 8469s # EnumName: @EnumName@ 8469s # enum_name: @enum_name@ 8469s # ENUMNAME: @ENUMNAME@ 8469s # ENUMSHORT: @ENUMSHORT@ 8469s # ENUMPREFIX: @ENUMPREFIX@ 8469s # enumsince: @enumsince@ 8469s # type: @type@ 8469s # Type: @Type@ 8469s # TYPE: @TYPE@ 8469s # /*** END value-tail ***/ 8469s # 8469s # /*** BEGIN comment ***/ 8469s # comment 8469s # comment: @comment@ 8469s # /*** END comment ***/ 8469s # 8469s # /*** BEGIN file-tail ***/ 8469s # file-tail 8469s # /*** END file-tail ***/ 8469s # 8469s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp7gp3zq1_/tmpgi27rliu.template', '/tmp/tmp7gp3zq1_/tmpnu9lpazo.h'] 8469s # Return code: 0 8469s # Output: 8469s # comment 8469s # 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. 8469s # 8469s # 8469s # file-header 8469s # file-production 8469s # filename: /tmp/tmp7gp3zq1_/tmpnu9lpazo.h 8469s # basename: tmpnu9lpazo.h 8469s # enumeration-production 8469s # EnumName: Foo 8469s # enum_name: foo_ 8469s # ENUMNAME: FOO_ 8469s # ENUMSHORT: 8469s # ENUMPREFIX: FOO 8469s # enumsince: 8469s # type: enum 8469s # Type: Enum 8469s # TYPE: ENUM 8469s # value-header 8469s # EnumName: Foo 8469s # enum_name: foo_ 8469s # ENUMNAME: FOO_ 8469s # ENUMSHORT: 8469s # ENUMPREFIX: FOO 8469s # enumsince: 8469s # type: enum 8469s # Type: Enum 8469s # TYPE: ENUM 8469s # value-production 8469s # VALUENAME: FOO_VALUE 8469s # valuenick: eek, a comma 8469s # valuenum: 0 8469s # type: enum 8469s # Type: Enum 8469s # TYPE: ENUM 8469s # value-tail 8469s # EnumName: Foo 8469s # enum_name: foo_ 8469s # ENUMNAME: FOO_ 8469s # ENUMSHORT: 8469s # ENUMPREFIX: FOO 8469s # enumsince: 8469s # type: enum 8469s # Type: Enum 8469s # TYPE: ENUM 8469s # file-tail 8469s # 8469s # comment 8469s # comment: Generated data ends here 8469s # Error: 8470s # Executing: glib/mkenums.py.test 8471s ok 19 __main__.TestRspMkenums.test_available_in 8471s # glib-mkenums: /usr/bin/glib-mkenums 8471s # tmpdir: /tmp/tmpze013h0d 8471s # rspfile: True 8471s # /tmp/tmpze013h0d/tmpftu76wg6.h: 8471s # typedef enum { 8471s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 8471s # } GDBusServerFlags; 8471s # 8471s # /tmp/tmpze013h0d/tmp5q0_z7e1.template: 8471s # /*** BEGIN file-header ***/ 8471s # file-header 8471s # /*** END file-header ***/ 8471s # 8471s # /*** BEGIN file-production ***/ 8471s # file-production 8471s # filename: @filename@ 8471s # basename: @basename@ 8471s # /*** END file-production ***/ 8471s # 8471s # /*** BEGIN enumeration-production ***/ 8471s # enumeration-production 8471s # EnumName: @EnumName@ 8471s # enum_name: @enum_name@ 8471s # ENUMNAME: @ENUMNAME@ 8471s # ENUMSHORT: @ENUMSHORT@ 8471s # ENUMPREFIX: @ENUMPREFIX@ 8471s # enumsince: @enumsince@ 8471s # type: @type@ 8471s # Type: @Type@ 8471s # TYPE: @TYPE@ 8471s # /*** END enumeration-production ***/ 8471s # 8471s # /*** BEGIN value-header ***/ 8471s # value-header 8471s # EnumName: @EnumName@ 8471s # enum_name: @enum_name@ 8471s # ENUMNAME: @ENUMNAME@ 8471s # ENUMSHORT: @ENUMSHORT@ 8471s # ENUMPREFIX: @ENUMPREFIX@ 8471s # enumsince: @enumsince@ 8471s # type: @type@ 8471s # Type: @Type@ 8471s # TYPE: @TYPE@ 8471s # /*** END value-header ***/ 8471s # 8471s # /*** BEGIN value-production ***/ 8471s # value-production 8471s # VALUENAME: @VALUENAME@ 8471s # valuenick: @valuenick@ 8471s # valuenum: @valuenum@ 8471s # type: @type@ 8471s # Type: @Type@ 8471s # TYPE: @TYPE@ 8471s # /*** END value-production ***/ 8471s # 8471s # /*** BEGIN value-tail ***/ 8471s # value-tail 8471s # EnumName: @EnumName@ 8471s # enum_name: @enum_name@ 8471s # ENUMNAME: @ENUMNAME@ 8471s # ENUMSHORT: @ENUMSHORT@ 8471s # ENUMPREFIX: @ENUMPREFIX@ 8471s # enumsince: @enumsince@ 8471s # type: @type@ 8471s # Type: @Type@ 8471s # TYPE: @TYPE@ 8471s # /*** END value-tail ***/ 8471s # 8471s # /*** BEGIN comment ***/ 8471s # comment 8471s # comment: @comment@ 8471s # /*** END comment ***/ 8471s # 8471s # /*** BEGIN file-tail ***/ 8471s # file-tail 8471s # /*** END file-tail ***/ 8471s # 8471s # Response file contains: --template /tmp/tmpze013h0d/tmp5q0_z7e1.template /tmp/tmpze013h0d/tmpftu76wg6.h 8471s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpze013h0d/tmpqd5rhihw'] 8471s # Return code: 0 8471s # Output: 8471s # comment 8471s # 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. 8471s # 8471s # 8471s # file-header 8471s # file-production 8471s # filename: /tmp/tmpze013h0d/tmpftu76wg6.h 8471s # basename: tmpftu76wg6.h 8471s # enumeration-production 8471s # EnumName: GDBusServerFlags 8471s # enum_name: g_dbus_server_flags 8471s # ENUMNAME: G_DBUS_SERVER_FLAGS 8471s # ENUMSHORT: DBUS_SERVER_FLAGS 8471s # ENUMPREFIX: G 8471s # enumsince: 8471s # type: flags 8471s # Type: Flags 8471s # TYPE: FLAGS 8471s # value-header 8471s # EnumName: GDBusServerFlags 8471s # enum_name: g_dbus_server_flags 8471s # ENUMNAME: G_DBUS_SERVER_FLAGS 8471s # ENUMSHORT: DBUS_SERVER_FLAGS 8471s # ENUMPREFIX: G 8471s # enumsince: 8471s # type: flags 8471s # Type: Flags 8471s # TYPE: FLAGS 8471s # value-production 8471s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 8471s # valuenick: user 8471s # valuenum: 4 8471s # type: flags 8471s # Type: Flags 8471s # TYPE: FLAGS 8471s # value-tail 8471s # EnumName: GDBusServerFlags 8471s # enum_name: g_dbus_server_flags 8471s # ENUMNAME: G_DBUS_SERVER_FLAGS 8471s # ENUMSHORT: DBUS_SERVER_FLAGS 8471s # ENUMPREFIX: G 8471s # enumsince: 8471s # type: flags 8471s # Type: Flags 8471s # TYPE: FLAGS 8471s # file-tail 8471s # 8471s # comment 8471s # comment: Generated data ends here 8471s # Error: 8472s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 8472s # glib-mkenums: /usr/bin/glib-mkenums 8472s # tmpdir: /tmp/tmpktj425__ 8472s # rspfile: True 8472s # /tmp/tmpktj425__/tmp6u0p6ddf.h: 8472s # typedef enum { 8472s # ENUM_VALUE_WITH_COMMA = ',', 8472s # } TestCommaEnum; 8472s # 8472s # /tmp/tmpktj425__/tmpl20ek6f7.template: 8472s # /*** BEGIN file-header ***/ 8472s # file-header 8472s # /*** END file-header ***/ 8472s # 8472s # /*** BEGIN file-production ***/ 8472s # file-production 8472s # filename: @filename@ 8472s # basename: @basename@ 8472s # /*** END file-production ***/ 8472s # 8472s # /*** BEGIN enumeration-production ***/ 8472s # enumeration-production 8472s # EnumName: @EnumName@ 8472s # enum_name: @enum_name@ 8472s # ENUMNAME: @ENUMNAME@ 8472s # ENUMSHORT: @ENUMSHORT@ 8472s # ENUMPREFIX: @ENUMPREFIX@ 8472s # enumsince: @enumsince@ 8472s # type: @type@ 8472s # Type: @Type@ 8472s # TYPE: @TYPE@ 8472s # /*** END enumeration-production ***/ 8472s # 8472s # /*** BEGIN value-header ***/ 8472s # value-header 8472s # EnumName: @EnumName@ 8472s # enum_name: @enum_name@ 8472s # ENUMNAME: @ENUMNAME@ 8472s # ENUMSHORT: @ENUMSHORT@ 8472s # ENUMPREFIX: @ENUMPREFIX@ 8472s # enumsince: @enumsince@ 8472s # type: @type@ 8472s # Type: @Type@ 8472s # TYPE: @TYPE@ 8472s # /*** END value-header ***/ 8472s # 8472s # /*** BEGIN value-production ***/ 8472s # value-production 8472s # VALUENAME: @VALUENAME@ 8472s # valuenick: @valuenick@ 8472s # valuenum: @valuenum@ 8472s # type: @type@ 8472s # Type: @Type@ 8472s # TYPE: @TYPE@ 8472s # /*** END value-production ***/ 8472s # 8472s # /*** BEGIN value-tail ***/ 8472s # value-tail 8472s # EnumName: @EnumName@ 8472s # enum_name: @enum_name@ 8472s # ENUMNAME: @ENUMNAME@ 8472s # ENUMSHORT: @ENUMSHORT@ 8472s # ENUMPREFIX: @ENUMPREFIX@ 8472s # enumsince: @enumsince@ 8472s # type: @type@ 8472s # Type: @Type@ 8472s # TYPE: @TYPE@ 8472s # /*** END value-tail ***/ 8472s # 8472s # /*** BEGIN comment ***/ 8472s # comment 8472s # comment: @comment@ 8472s # /*** END comment ***/ 8472s # 8472s # /*** BEGIN file-tail ***/ 8472s # file-tail 8472s # /*** END file-tail ***/ 8472s # 8472s # Response file contains: --template /tmp/tmpktj425__/tmpl20ek6f7.template /tmp/tmpktj425__/tmp6u0p6ddf.h 8472s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpktj425__/tmpnn0nbojo'] 8472s # Return code: 0 8472s # Output: 8472s # comment 8472s # 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. 8472s # 8472s # 8472s # file-header 8472s # file-production 8472s # filename: /tmp/tmpktj425__/tmp6u0p6ddf.h 8472s # basename: tmp6u0p6ddf.h 8472s # enumeration-production 8472s # EnumName: TestCommaEnum 8472s # enum_name: test_comma_enum 8472s # ENUMNAME: TEST_COMMA_ENUM 8472s # ENUMSHORT: COMMA_ENUM 8472s # ENUMPREFIX: TEST 8472s # enumsince: 8472s # type: enum 8472s # Type: Enum 8472s # TYPE: ENUM 8472s # value-header 8472s # EnumName: TestCommaEnum 8472s # enum_name: test_comma_enum 8472s # ENUMNAME: TEST_COMMA_ENUM 8472s # ENUMSHORT: COMMA_ENUM 8472s # ENUMPREFIX: TEST 8472s # enumsince: 8472s # type: enum 8472s # Type: Enum 8472s # TYPE: ENUM 8472s # value-production 8472s # VALUENAME: ENUM_VALUE_WITH_COMMA 8472s # valuenick: comma 8472s # valuenum: 44 8472s # type: enum 8472s # Type: Enum 8472s # TYPE: ENUM 8472s # value-tail 8472s # EnumName: TestCommaEnum 8472s # enum_name: test_comma_enum 8472s # ENUMNAME: TEST_COMMA_ENUM 8472s # ENUMSHORT: COMMA_ENUM 8472s # ENUMPREFIX: TEST 8472s # enumsince: 8472s # type: enum 8472s # Type: Enum 8472s # TYPE: ENUM 8472s # file-tail 8472s # 8472s # comment 8472s # comment: Generated data ends here 8472s # Error: 8474s ok 21 __main__.TestRspMkenums.test_deprecated_in 8474s # glib-mkenums: /usr/bin/glib-mkenums 8474s # tmpdir: /tmp/tmp_0m02r7h 8474s # rspfile: True 8474s # /tmp/tmp_0m02r7h/tmpdpbp9w5m.h: 8474s # typedef enum { 8474s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 8474s # } GDBusServerFlags; 8474s # 8474s # /tmp/tmp_0m02r7h/tmp23l5vruw.template: 8474s # /*** BEGIN file-header ***/ 8474s # file-header 8474s # /*** END file-header ***/ 8474s # 8474s # /*** BEGIN file-production ***/ 8474s # file-production 8474s # filename: @filename@ 8474s # basename: @basename@ 8474s # /*** END file-production ***/ 8474s # 8474s # /*** BEGIN enumeration-production ***/ 8474s # enumeration-production 8474s # EnumName: @EnumName@ 8474s # enum_name: @enum_name@ 8474s # ENUMNAME: @ENUMNAME@ 8474s # ENUMSHORT: @ENUMSHORT@ 8474s # ENUMPREFIX: @ENUMPREFIX@ 8474s # enumsince: @enumsince@ 8474s # type: @type@ 8474s # Type: @Type@ 8474s # TYPE: @TYPE@ 8474s # /*** END enumeration-production ***/ 8474s # 8474s # /*** BEGIN value-header ***/ 8474s # value-header 8474s # EnumName: @EnumName@ 8474s # enum_name: @enum_name@ 8474s # ENUMNAME: @ENUMNAME@ 8474s # ENUMSHORT: @ENUMSHORT@ 8474s # ENUMPREFIX: @ENUMPREFIX@ 8474s # enumsince: @enumsince@ 8474s # type: @type@ 8474s # Type: @Type@ 8474s # TYPE: @TYPE@ 8474s # /*** END value-header ***/ 8474s # 8474s # /*** BEGIN value-production ***/ 8474s # value-production 8474s # VALUENAME: @VALUENAME@ 8474s # valuenick: @valuenick@ 8474s # valuenum: @valuenum@ 8474s # type: @type@ 8474s # Type: @Type@ 8474s # TYPE: @TYPE@ 8474s # /*** END value-production ***/ 8474s # 8474s # /*** BEGIN value-tail ***/ 8474s # value-tail 8474s # EnumName: @EnumName@ 8474s # enum_name: @enum_name@ 8474s # ENUMNAME: @ENUMNAME@ 8474s # ENUMSHORT: @ENUMSHORT@ 8474s # ENUMPREFIX: @ENUMPREFIX@ 8474s # enumsince: @enumsince@ 8474s # type: @type@ 8474s # Type: @Type@ 8474s # TYPE: @TYPE@ 8474s # /*** END value-tail ***/ 8474s # 8474s # /*** BEGIN comment ***/ 8474s # comment 8474s # comment: @comment@ 8474s # /*** END comment ***/ 8474s # 8474s # /*** BEGIN file-tail ***/ 8474s # file-tail 8474s # /*** END file-tail ***/ 8474s # 8474s # Response file contains: --template /tmp/tmp_0m02r7h/tmp23l5vruw.template /tmp/tmp_0m02r7h/tmpdpbp9w5m.h 8474s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_0m02r7h/tmpu74yw160'] 8474s # Return code: 0 8474s # Output: 8474s # comment 8474s # 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. 8474s # 8474s # 8474s # file-header 8474s # file-production 8474s # filename: /tmp/tmp_0m02r7h/tmpdpbp9w5m.h 8474s # basename: tmpdpbp9w5m.h 8474s # enumeration-production 8474s # EnumName: GDBusServerFlags 8474s # enum_name: g_dbus_server_flags 8474s # ENUMNAME: G_DBUS_SERVER_FLAGS 8474s # ENUMSHORT: DBUS_SERVER_FLAGS 8474s # ENUMPREFIX: G 8474s # enumsince: 8474s # type: flags 8474s # Type: Flags 8474s # TYPE: FLAGS 8474s # value-header 8474s # EnumName: GDBusServerFlags 8474s # enum_name: g_dbus_server_flags 8474s # ENUMNAME: G_DBUS_SERVER_FLAGS 8474s # ENUMSHORT: DBUS_SERVER_FLAGS 8474s # ENUMPREFIX: G 8474s # enumsince: 8474s # type: flags 8474s # Type: Flags 8474s # TYPE: FLAGS 8474s # value-production 8474s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 8474s # valuenick: user 8474s # valuenum: 4 8474s # type: flags 8474s # Type: Flags 8474s # TYPE: FLAGS 8474s # value-tail 8474s # EnumName: GDBusServerFlags 8474s # enum_name: g_dbus_server_flags 8474s # ENUMNAME: G_DBUS_SERVER_FLAGS 8474s # ENUMSHORT: DBUS_SERVER_FLAGS 8474s # ENUMPREFIX: G 8474s # enumsince: 8474s # type: flags 8474s # Type: Flags 8474s # TYPE: FLAGS 8474s # file-tail 8474s # 8474s # comment 8474s # comment: Generated data ends here 8474s # Error: 8475s # Executing: glib/mkenums.py.test 8476s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 8476s # glib-mkenums: /usr/bin/glib-mkenums 8476s # tmpdir: /tmp/tmpce7saxzc 8476s # rspfile: True 8476s # /tmp/tmpce7saxzc/tmp17gly7xx.h: 8476s # typedef enum { 8476s # 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) 8476s # } GDBusServerFlags; 8476s # 8476s # /tmp/tmpce7saxzc/tmp4moukc4n.template: 8476s # /*** BEGIN file-header ***/ 8476s # file-header 8476s # /*** END file-header ***/ 8476s # 8476s # /*** BEGIN file-production ***/ 8476s # file-production 8476s # filename: @filename@ 8476s # basename: @basename@ 8476s # /*** END file-production ***/ 8476s # 8476s # /*** BEGIN enumeration-production ***/ 8476s # enumeration-production 8476s # EnumName: @EnumName@ 8476s # enum_name: @enum_name@ 8476s # ENUMNAME: @ENUMNAME@ 8476s # ENUMSHORT: @ENUMSHORT@ 8476s # ENUMPREFIX: @ENUMPREFIX@ 8476s # enumsince: @enumsince@ 8476s # type: @type@ 8476s # Type: @Type@ 8476s # TYPE: @TYPE@ 8476s # /*** END enumeration-production ***/ 8476s # 8476s # /*** BEGIN value-header ***/ 8476s # value-header 8476s # EnumName: @EnumName@ 8476s # enum_name: @enum_name@ 8476s # ENUMNAME: @ENUMNAME@ 8476s # ENUMSHORT: @ENUMSHORT@ 8476s # ENUMPREFIX: @ENUMPREFIX@ 8476s # enumsince: @enumsince@ 8476s # type: @type@ 8476s # Type: @Type@ 8476s # TYPE: @TYPE@ 8476s # /*** END value-header ***/ 8476s # 8476s # /*** BEGIN value-production ***/ 8476s # value-production 8476s # VALUENAME: @VALUENAME@ 8476s # valuenick: @valuenick@ 8476s # valuenum: @valuenum@ 8476s # type: @type@ 8476s # Type: @Type@ 8476s # TYPE: @TYPE@ 8476s # /*** END value-production ***/ 8476s # 8476s # /*** BEGIN value-tail ***/ 8476s # value-tail 8476s # EnumName: @EnumName@ 8476s # enum_name: @enum_name@ 8476s # ENUMNAME: @ENUMNAME@ 8476s # ENUMSHORT: @ENUMSHORT@ 8476s # ENUMPREFIX: @ENUMPREFIX@ 8476s # enumsince: @enumsince@ 8476s # type: @type@ 8476s # Type: @Type@ 8476s # TYPE: @TYPE@ 8476s # /*** END value-tail ***/ 8476s # 8476s # /*** BEGIN comment ***/ 8476s # comment 8476s # comment: @comment@ 8476s # /*** END comment ***/ 8476s # 8476s # /*** BEGIN file-tail ***/ 8476s # file-tail 8476s # /*** END file-tail ***/ 8476s # 8476s # Response file contains: --template /tmp/tmpce7saxzc/tmp4moukc4n.template /tmp/tmpce7saxzc/tmp17gly7xx.h 8476s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpce7saxzc/tmpupxjjtd2'] 8476s # Return code: 0 8476s # Output: 8476s # comment 8476s # 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. 8476s # 8476s # 8476s # file-header 8476s # file-production 8476s # filename: /tmp/tmpce7saxzc/tmp17gly7xx.h 8476s # basename: tmp17gly7xx.h 8476s # enumeration-production 8476s # EnumName: GDBusServerFlags 8476s # enum_name: g_dbus_server_flags 8476s # ENUMNAME: G_DBUS_SERVER_FLAGS 8476s # ENUMSHORT: DBUS_SERVER_FLAGS 8476s # ENUMPREFIX: G 8476s # enumsince: 8476s # type: flags 8476s # Type: Flags 8476s # TYPE: FLAGS 8476s # value-header 8476s # EnumName: GDBusServerFlags 8476s # enum_name: g_dbus_server_flags 8476s # ENUMNAME: G_DBUS_SERVER_FLAGS 8476s # ENUMSHORT: DBUS_SERVER_FLAGS 8476s # ENUMPREFIX: G 8476s # enumsince: 8476s # type: flags 8476s # Type: Flags 8476s # TYPE: FLAGS 8476s # value-production 8476s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 8476s # valuenick: user 8476s # valuenum: 4 8476s # type: flags 8476s # Type: Flags 8476s # TYPE: FLAGS 8476s # value-tail 8476s # EnumName: GDBusServerFlags 8476s # enum_name: g_dbus_server_flags 8476s # ENUMNAME: G_DBUS_SERVER_FLAGS 8476s # ENUMSHORT: DBUS_SERVER_FLAGS 8476s # ENUMPREFIX: G 8476s # enumsince: 8476s # type: flags 8476s # Type: Flags 8476s # TYPE: FLAGS 8476s # file-tail 8476s # 8476s # comment 8476s # comment: Generated data ends here 8476s # Error: 8478s ok 23 __main__.TestRspMkenums.test_empty_header 8478s # glib-mkenums: /usr/bin/glib-mkenums 8478s # tmpdir: /tmp/tmpu6v_mrpy 8478s # rspfile: True 8478s # /tmp/tmpu6v_mrpy/tmp90zlumn8.h: 8478s # /tmp/tmpu6v_mrpy/tmpwacttv3y.template: 8478s # /*** BEGIN file-header ***/ 8478s # file-header 8478s # /*** END file-header ***/ 8478s # 8478s # /*** BEGIN file-production ***/ 8478s # file-production 8478s # filename: @filename@ 8478s # basename: @basename@ 8478s # /*** END file-production ***/ 8478s # 8478s # /*** BEGIN enumeration-production ***/ 8478s # enumeration-production 8478s # EnumName: @EnumName@ 8478s # enum_name: @enum_name@ 8478s # ENUMNAME: @ENUMNAME@ 8478s # ENUMSHORT: @ENUMSHORT@ 8478s # ENUMPREFIX: @ENUMPREFIX@ 8478s # enumsince: @enumsince@ 8478s # type: @type@ 8478s # Type: @Type@ 8478s # TYPE: @TYPE@ 8478s # /*** END enumeration-production ***/ 8478s # 8478s # /*** BEGIN value-header ***/ 8478s # value-header 8478s # EnumName: @EnumName@ 8478s # enum_name: @enum_name@ 8478s # ENUMNAME: @ENUMNAME@ 8478s # ENUMSHORT: @ENUMSHORT@ 8478s # ENUMPREFIX: @ENUMPREFIX@ 8478s # enumsince: @enumsince@ 8478s # type: @type@ 8478s # Type: @Type@ 8478s # TYPE: @TYPE@ 8478s # /*** END value-header ***/ 8478s # 8478s # /*** BEGIN value-production ***/ 8478s # value-production 8478s # VALUENAME: @VALUENAME@ 8478s # valuenick: @valuenick@ 8478s # valuenum: @valuenum@ 8478s # type: @type@ 8478s # Type: @Type@ 8478s # TYPE: @TYPE@ 8478s # /*** END value-production ***/ 8478s # 8478s # /*** BEGIN value-tail ***/ 8478s # value-tail 8478s # EnumName: @EnumName@ 8478s # enum_name: @enum_name@ 8478s # ENUMNAME: @ENUMNAME@ 8478s # ENUMSHORT: @ENUMSHORT@ 8478s # ENUMPREFIX: @ENUMPREFIX@ 8478s # enumsince: @enumsince@ 8478s # type: @type@ 8478s # Type: @Type@ 8478s # TYPE: @TYPE@ 8478s # /*** END value-tail ***/ 8478s # 8478s # /*** BEGIN comment ***/ 8478s # comment 8478s # comment: @comment@ 8478s # /*** END comment ***/ 8478s # 8478s # /*** BEGIN file-tail ***/ 8478s # file-tail 8478s # /*** END file-tail ***/ 8478s # 8478s # Response file contains: --template /tmp/tmpu6v_mrpy/tmpwacttv3y.template /tmp/tmpu6v_mrpy/tmp90zlumn8.h 8478s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpu6v_mrpy/tmp2m3t2k_6'] 8478s # Return code: 0 8478s # Output: 8478s # comment 8478s # 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. 8478s # 8478s # 8478s # file-header 8478s # file-tail 8478s # 8478s # comment 8478s # comment: Generated data ends here 8478s # Error: 8479s ok 24 __main__.TestRspMkenums.test_empty_template 8479s # glib-mkenums: /usr/bin/glib-mkenums 8479s # tmpdir: /tmp/tmph6d5mudj 8479s # rspfile: True 8479s # /tmp/tmph6d5mudj/tmpl50lck6j.template: 8479s # Response file contains: --template /tmp/tmph6d5mudj/tmpl50lck6j.template 8479s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmph6d5mudj/tmptjzr0ytr'] 8479s # Return code: 0 8479s # Output: 8479s # /* 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. */ 8479s # 8479s # 8479s # /* Generated data ends here */ 8479s # Error: 8480s # Executing: glib/mkenums.py.test 8481s ok 25 __main__.TestRspMkenums.test_enum_name 8481s # glib-mkenums: /usr/bin/glib-mkenums 8481s # tmpdir: /tmp/tmpvowsmyri 8481s # rspfile: True 8481s # /tmp/tmpvowsmyri/tmpjugisv2g.h: 8481s # typedef enum _SomeEnumIdentifier { 8481s # ENUM_VALUE 8481s # } SomeEnumIdentifier; 8481s # 8481s # /tmp/tmpvowsmyri/tmpx69km80p.template: 8481s # /*** BEGIN file-header ***/ 8481s # file-header 8481s # /*** END file-header ***/ 8481s # 8481s # /*** BEGIN file-production ***/ 8481s # file-production 8481s # filename: @filename@ 8481s # basename: @basename@ 8481s # /*** END file-production ***/ 8481s # 8481s # /*** BEGIN enumeration-production ***/ 8481s # enumeration-production 8481s # EnumName: @EnumName@ 8481s # enum_name: @enum_name@ 8481s # ENUMNAME: @ENUMNAME@ 8481s # ENUMSHORT: @ENUMSHORT@ 8481s # ENUMPREFIX: @ENUMPREFIX@ 8481s # enumsince: @enumsince@ 8481s # type: @type@ 8481s # Type: @Type@ 8481s # TYPE: @TYPE@ 8481s # /*** END enumeration-production ***/ 8481s # 8481s # /*** BEGIN value-header ***/ 8481s # value-header 8481s # EnumName: @EnumName@ 8481s # enum_name: @enum_name@ 8481s # ENUMNAME: @ENUMNAME@ 8481s # ENUMSHORT: @ENUMSHORT@ 8481s # ENUMPREFIX: @ENUMPREFIX@ 8481s # enumsince: @enumsince@ 8481s # type: @type@ 8481s # Type: @Type@ 8481s # TYPE: @TYPE@ 8481s # /*** END value-header ***/ 8481s # 8481s # /*** BEGIN value-production ***/ 8481s # value-production 8481s # VALUENAME: @VALUENAME@ 8481s # valuenick: @valuenick@ 8481s # valuenum: @valuenum@ 8481s # type: @type@ 8481s # Type: @Type@ 8481s # TYPE: @TYPE@ 8481s # /*** END value-production ***/ 8481s # 8481s # /*** BEGIN value-tail ***/ 8481s # value-tail 8481s # EnumName: @EnumName@ 8481s # enum_name: @enum_name@ 8481s # ENUMNAME: @ENUMNAME@ 8481s # ENUMSHORT: @ENUMSHORT@ 8481s # ENUMPREFIX: @ENUMPREFIX@ 8481s # enumsince: @enumsince@ 8481s # type: @type@ 8481s # Type: @Type@ 8481s # TYPE: @TYPE@ 8481s # /*** END value-tail ***/ 8481s # 8481s # /*** BEGIN comment ***/ 8481s # comment 8481s # comment: @comment@ 8481s # /*** END comment ***/ 8481s # 8481s # /*** BEGIN file-tail ***/ 8481s # file-tail 8481s # /*** END file-tail ***/ 8481s # 8481s # Response file contains: --template /tmp/tmpvowsmyri/tmpx69km80p.template /tmp/tmpvowsmyri/tmpjugisv2g.h 8481s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpvowsmyri/tmpnz7kkqd7'] 8481s # Return code: 0 8481s # Output: 8481s # comment 8481s # 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. 8481s # 8481s # 8481s # file-header 8481s # file-production 8481s # filename: /tmp/tmpvowsmyri/tmpjugisv2g.h 8481s # basename: tmpjugisv2g.h 8481s # enumeration-production 8481s # EnumName: SomeEnumIdentifier 8481s # enum_name: some_enum_identifier 8481s # ENUMNAME: SOME_ENUM_IDENTIFIER 8481s # ENUMSHORT: ENUM_IDENTIFIER 8481s # ENUMPREFIX: SOME 8481s # enumsince: 8481s # type: enum 8481s # Type: Enum 8481s # TYPE: ENUM 8481s # value-header 8481s # EnumName: SomeEnumIdentifier 8481s # enum_name: some_enum_identifier 8481s # ENUMNAME: SOME_ENUM_IDENTIFIER 8481s # ENUMSHORT: ENUM_IDENTIFIER 8481s # ENUMPREFIX: SOME 8481s # enumsince: 8481s # type: enum 8481s # Type: Enum 8481s # TYPE: ENUM 8481s # value-production 8481s # VALUENAME: ENUM_VALUE 8481s # valuenick: value 8481s # valuenum: 0 8481s # type: enum 8481s # Type: Enum 8481s # TYPE: ENUM 8481s # value-tail 8481s # EnumName: SomeEnumIdentifier 8481s # enum_name: some_enum_identifier 8481s # ENUMNAME: SOME_ENUM_IDENTIFIER 8481s # ENUMSHORT: ENUM_IDENTIFIER 8481s # ENUMPREFIX: SOME 8481s # enumsince: 8481s # type: enum 8481s # Type: Enum 8481s # TYPE: ENUM 8481s # file-tail 8481s # 8481s # comment 8481s # comment: Generated data ends here 8481s # Error: 8484s ok 26 __main__.TestRspMkenums.test_enum_private_public 8484s # glib-mkenums: /usr/bin/glib-mkenums 8484s # tmpdir: /tmp/tmpd3e51aia 8484s # rspfile: True 8484s # /tmp/tmpd3e51aia/tmpjbsatl8x.h: 8484s # typedef enum { 8484s # ENUM_VALUE_PUBLIC1, 8484s # /*< private >*/ 8484s # ENUM_VALUE_PRIVATE, 8484s # } SomeEnumA 8484s # 8484s # /tmp/tmpd3e51aia/tmpdl88htxg.template: 8484s # /*** BEGIN file-header ***/ 8484s # file-header 8484s # /*** END file-header ***/ 8484s # 8484s # /*** BEGIN file-production ***/ 8484s # file-production 8484s # filename: @filename@ 8484s # basename: @basename@ 8484s # /*** END file-production ***/ 8484s # 8484s # /*** BEGIN enumeration-production ***/ 8484s # enumeration-production 8484s # EnumName: @EnumName@ 8484s # enum_name: @enum_name@ 8484s # ENUMNAME: @ENUMNAME@ 8484s # ENUMSHORT: @ENUMSHORT@ 8484s # ENUMPREFIX: @ENUMPREFIX@ 8484s # enumsince: @enumsince@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END enumeration-production ***/ 8484s # 8484s # /*** BEGIN value-header ***/ 8484s # value-header 8484s # EnumName: @EnumName@ 8484s # enum_name: @enum_name@ 8484s # ENUMNAME: @ENUMNAME@ 8484s # ENUMSHORT: @ENUMSHORT@ 8484s # ENUMPREFIX: @ENUMPREFIX@ 8484s # enumsince: @enumsince@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END value-header ***/ 8484s # 8484s # /*** BEGIN value-production ***/ 8484s # value-production 8484s # VALUENAME: @VALUENAME@ 8484s # valuenick: @valuenick@ 8484s # valuenum: @valuenum@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END value-production ***/ 8484s # 8484s # /*** BEGIN value-tail ***/ 8484s # value-tail 8484s # EnumName: @EnumName@ 8484s # enum_name: @enum_name@ 8484s # ENUMNAME: @ENUMNAME@ 8484s # ENUMSHORT: @ENUMSHORT@ 8484s # ENUMPREFIX: @ENUMPREFIX@ 8484s # enumsince: @enumsince@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END value-tail ***/ 8484s # 8484s # /*** BEGIN comment ***/ 8484s # comment 8484s # comment: @comment@ 8484s # /*** END comment ***/ 8484s # 8484s # /*** BEGIN file-tail ***/ 8484s # file-tail 8484s # /*** END file-tail ***/ 8484s # 8484s # Response file contains: --template /tmp/tmpd3e51aia/tmpdl88htxg.template /tmp/tmpd3e51aia/tmpjbsatl8x.h 8484s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpd3e51aia/tmp88c9_08h'] 8484s # Return code: 0 8484s # Output: 8484s # comment 8484s # 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. 8484s # 8484s # 8484s # file-header 8484s # file-production 8484s # filename: /tmp/tmpd3e51aia/tmpjbsatl8x.h 8484s # basename: tmpjbsatl8x.h 8484s # enumeration-production 8484s # EnumName: SomeEnumA 8484s # enum_name: some_enum_a 8484s # ENUMNAME: SOME_ENUM_A 8484s # ENUMSHORT: ENUM_A 8484s # ENUMPREFIX: SOME 8484s # enumsince: 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # value-header 8484s # EnumName: SomeEnumA 8484s # enum_name: some_enum_a 8484s # ENUMNAME: SOME_ENUM_A 8484s # ENUMSHORT: ENUM_A 8484s # ENUMPREFIX: SOME 8484s # enumsince: 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # value-production 8484s # VALUENAME: ENUM_VALUE_PUBLIC1 8484s # valuenick: public1 8484s # valuenum: 0 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # value-tail 8484s # EnumName: SomeEnumA 8484s # enum_name: some_enum_a 8484s # ENUMNAME: SOME_ENUM_A 8484s # ENUMSHORT: ENUM_A 8484s # ENUMPREFIX: SOME 8484s # enumsince: 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # file-tail 8484s # 8484s # comment 8484s # comment: Generated data ends here 8484s # Error: 8484s # 8484s # /tmp/tmpd3e51aia/tmp2egebdg5.h: 8484s # typedef enum { 8484s # /*< private >*/ 8484s # ENUM_VALUE_PRIVATE, 8484s # /*< public >*/ 8484s # ENUM_VALUE_PUBLIC2, 8484s # } SomeEnumB; 8484s # 8484s # /tmp/tmpd3e51aia/tmpmrsqo75o.template: 8484s # /*** BEGIN file-header ***/ 8484s # file-header 8484s # /*** END file-header ***/ 8484s # 8484s # /*** BEGIN file-production ***/ 8484s # file-production 8484s # filename: @filename@ 8484s # basename: @basename@ 8484s # /*** END file-production ***/ 8484s # 8484s # /*** BEGIN enumeration-production ***/ 8484s # enumeration-production 8484s # EnumName: @EnumName@ 8484s # enum_name: @enum_name@ 8484s # ENUMNAME: @ENUMNAME@ 8484s # ENUMSHORT: @ENUMSHORT@ 8484s # ENUMPREFIX: @ENUMPREFIX@ 8484s # enumsince: @enumsince@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END enumeration-production ***/ 8484s # 8484s # /*** BEGIN value-header ***/ 8484s # value-header 8484s # EnumName: @EnumName@ 8484s # enum_name: @enum_name@ 8484s # ENUMNAME: @ENUMNAME@ 8484s # ENUMSHORT: @ENUMSHORT@ 8484s # ENUMPREFIX: @ENUMPREFIX@ 8484s # enumsince: @enumsince@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END value-header ***/ 8484s # 8484s # /*** BEGIN value-production ***/ 8484s # value-production 8484s # VALUENAME: @VALUENAME@ 8484s # valuenick: @valuenick@ 8484s # valuenum: @valuenum@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END value-production ***/ 8484s # 8484s # /*** BEGIN value-tail ***/ 8484s # value-tail 8484s # EnumName: @EnumName@ 8484s # enum_name: @enum_name@ 8484s # ENUMNAME: @ENUMNAME@ 8484s # ENUMSHORT: @ENUMSHORT@ 8484s # ENUMPREFIX: @ENUMPREFIX@ 8484s # enumsince: @enumsince@ 8484s # type: @type@ 8484s # Type: @Type@ 8484s # TYPE: @TYPE@ 8484s # /*** END value-tail ***/ 8484s # 8484s # /*** BEGIN comment ***/ 8484s # comment 8484s # comment: @comment@ 8484s # /*** END comment ***/ 8484s # 8484s # /*** BEGIN file-tail ***/ 8484s # file-tail 8484s # /*** END file-tail ***/ 8484s # 8484s # Response file contains: --template /tmp/tmpd3e51aia/tmpmrsqo75o.template /tmp/tmpd3e51aia/tmp2egebdg5.h 8484s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpd3e51aia/tmp_4c11tf6'] 8484s # Return code: 0 8484s # Output: 8484s # comment 8484s # 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. 8484s # 8484s # 8484s # file-header 8484s # file-production 8484s # filename: /tmp/tmpd3e51aia/tmp2egebdg5.h 8484s # basename: tmp2egebdg5.h 8484s # enumeration-production 8484s # EnumName: SomeEnumB 8484s # enum_name: some_enum_b 8484s # ENUMNAME: SOME_ENUM_B 8484s # ENUMSHORT: ENUM_B 8484s # ENUMPREFIX: SOME 8484s # enumsince: 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # value-header 8484s # EnumName: SomeEnumB 8484s # enum_name: some_enum_b 8484s # ENUMNAME: SOME_ENUM_B 8484s # ENUMSHORT: ENUM_B 8484s # ENUMPREFIX: SOME 8484s # enumsince: 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # value-production 8484s # VALUENAME: ENUM_VALUE_PUBLIC2 8484s # valuenick: public2 8484s # valuenum: 1 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # value-tail 8484s # EnumName: SomeEnumB 8484s # enum_name: some_enum_b 8484s # ENUMNAME: SOME_ENUM_B 8484s # ENUMSHORT: ENUM_B 8484s # ENUMPREFIX: SOME 8484s # enumsince: 8484s # type: enum 8484s # Type: Enum 8484s # TYPE: ENUM 8484s # file-tail 8484s # 8484s # comment 8484s # comment: Generated data ends here 8484s # Error: 8485s # Executing: glib/mkenums.py.test 8486s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 8486s # glib-mkenums: /usr/bin/glib-mkenums 8486s # tmpdir: /tmp/tmpw1zo24mi 8486s # rspfile: True 8486s # /tmp/tmpw1zo24mi/tmp3hc755zl.h: 8486s # typedef enum { 8486s # /*< private >*/ 8486s # ENUM_VALUE_PRIVATE = 5, 8486s # /*< public >*/ 8486s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 8486s # } TestSymbolicEnum; 8486s # 8486s # /tmp/tmpw1zo24mi/tmp7_g9rpai.template: 8486s # /*** BEGIN file-header ***/ 8486s # file-header 8486s # /*** END file-header ***/ 8486s # 8486s # /*** BEGIN file-production ***/ 8486s # file-production 8486s # filename: @filename@ 8486s # basename: @basename@ 8486s # /*** END file-production ***/ 8486s # 8486s # /*** BEGIN enumeration-production ***/ 8486s # enumeration-production 8486s # EnumName: @EnumName@ 8486s # enum_name: @enum_name@ 8486s # ENUMNAME: @ENUMNAME@ 8486s # ENUMSHORT: @ENUMSHORT@ 8486s # ENUMPREFIX: @ENUMPREFIX@ 8486s # enumsince: @enumsince@ 8486s # type: @type@ 8486s # Type: @Type@ 8486s # TYPE: @TYPE@ 8486s # /*** END enumeration-production ***/ 8486s # 8486s # /*** BEGIN value-header ***/ 8486s # value-header 8486s # EnumName: @EnumName@ 8486s # enum_name: @enum_name@ 8486s # ENUMNAME: @ENUMNAME@ 8486s # ENUMSHORT: @ENUMSHORT@ 8486s # ENUMPREFIX: @ENUMPREFIX@ 8486s # enumsince: @enumsince@ 8486s # type: @type@ 8486s # Type: @Type@ 8486s # TYPE: @TYPE@ 8486s # /*** END value-header ***/ 8486s # 8486s # /*** BEGIN value-production ***/ 8486s # value-production 8486s # VALUENAME: @VALUENAME@ 8486s # valuenick: @valuenick@ 8486s # valuenum: @valuenum@ 8486s # type: @type@ 8486s # Type: @Type@ 8486s # TYPE: @TYPE@ 8486s # /*** END value-production ***/ 8486s # 8486s # /*** BEGIN value-tail ***/ 8486s # value-tail 8486s # EnumName: @EnumName@ 8486s # enum_name: @enum_name@ 8486s # ENUMNAME: @ENUMNAME@ 8486s # ENUMSHORT: @ENUMSHORT@ 8486s # ENUMPREFIX: @ENUMPREFIX@ 8486s # enumsince: @enumsince@ 8486s # type: @type@ 8486s # Type: @Type@ 8486s # TYPE: @TYPE@ 8486s # /*** END value-tail ***/ 8486s # 8486s # /*** BEGIN comment ***/ 8486s # comment 8486s # comment: @comment@ 8486s # /*** END comment ***/ 8486s # 8486s # /*** BEGIN file-tail ***/ 8486s # file-tail 8486s # /*** END file-tail ***/ 8486s # 8486s # Response file contains: --template /tmp/tmpw1zo24mi/tmp7_g9rpai.template /tmp/tmpw1zo24mi/tmp3hc755zl.h 8486s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpw1zo24mi/tmpk3j5dq1y'] 8486s # Return code: 0 8486s # Output: 8486s # comment 8486s # 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. 8486s # 8486s # 8486s # file-header 8486s # file-production 8486s # filename: /tmp/tmpw1zo24mi/tmp3hc755zl.h 8486s # basename: tmp3hc755zl.h 8486s # enumeration-production 8486s # EnumName: TestSymbolicEnum 8486s # enum_name: test_symbolic_enum 8486s # ENUMNAME: TEST_SYMBOLIC_ENUM 8486s # ENUMSHORT: SYMBOLIC_ENUM 8486s # ENUMPREFIX: TEST 8486s # enumsince: 8486s # type: enum 8486s # Type: Enum 8486s # TYPE: ENUM 8486s # value-header 8486s # EnumName: TestSymbolicEnum 8486s # enum_name: test_symbolic_enum 8486s # ENUMNAME: TEST_SYMBOLIC_ENUM 8486s # ENUMSHORT: SYMBOLIC_ENUM 8486s # ENUMPREFIX: TEST 8486s # enumsince: 8486s # type: enum 8486s # Type: Enum 8486s # TYPE: ENUM 8486s # value-production 8486s # VALUENAME: ENUM_VALUE_PUBLIC 8486s # valuenick: public 8486s # valuenum: 7 8486s # type: enum 8486s # Type: Enum 8486s # TYPE: ENUM 8486s # value-tail 8486s # EnumName: TestSymbolicEnum 8486s # enum_name: test_symbolic_enum 8486s # ENUMNAME: TEST_SYMBOLIC_ENUM 8486s # ENUMSHORT: SYMBOLIC_ENUM 8486s # ENUMPREFIX: TEST 8486s # enumsince: 8486s # type: enum 8486s # Type: Enum 8486s # TYPE: ENUM 8486s # file-tail 8486s # 8486s # comment 8486s # comment: Generated data ends here 8486s # Error: 8488s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 8488s # glib-mkenums: /usr/bin/glib-mkenums 8488s # tmpdir: /tmp/tmp2o_ns0ow 8488s # rspfile: True 8488s # /tmp/tmp2o_ns0ow/tmpxoysxl8b.template: 8488s # /*** BEGIN file-header ***/ 8488s # file-header 8488s # filename: @filename@ 8488s # basename: @basename@ 8488s # /*** END file-header ***/ 8488s # 8488s # /*** BEGIN comment ***/ 8488s # comment 8488s # comment: @comment@ 8488s # /*** END comment ***/ 8488s # 8488s # /*** BEGIN file-tail ***/ 8488s # file-tail 8488s # filename: @filename@ 8488s # basename: @basename@ 8488s # /*** END file-tail ***/ 8488s # Response file contains: --template /tmp/tmp2o_ns0ow/tmpxoysxl8b.template 8488s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp2o_ns0ow/tmp3uykx7ct'] 8488s # Return code: 0 8488s # Output: 8488s # comment 8488s # 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. 8488s # 8488s # 8488s # file-header 8488s # filename: @filename@ 8488s # basename: @basename@ 8488s # file-tail 8488s # filename: @filename@ 8488s # basename: @basename@ 8488s # 8488s # comment 8488s # comment: Generated data ends here 8488s # Error: 8488s # WARNING: @filename@ used in file-header section. 8488s # WARNING: @basename@ used in file-header section. 8488s # WARNING: @filename@ used in file-tail section. 8488s # WARNING: @basename@ used in file-tail section. 8489s ok 29 __main__.TestRspMkenums.test_help 8489s # glib-mkenums: /usr/bin/glib-mkenums 8489s # tmpdir: /tmp/tmp2t54posc 8489s # rspfile: True 8489s # Response file contains: --help 8489s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp2t54posc/tmp1ei0v6d_'] 8489s # Return code: 0 8489s # Output: 8489s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 8489s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 8489s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 8489s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 8489s # [--comments COMMENT_TMPL] [--template TEMPLATE] 8489s # [--output OUTPUT] [--version] 8489s # [args ...] 8489s # 8489s # positional arguments: 8489s # args One or more input files, or a single argument 8489s # @rspfile_path pointing to a file that contains the 8489s # actual arguments 8489s # 8489s # options: 8489s # -h, --help show this help message and exit 8489s # --identifier-prefix IDPREFIX 8489s # Identifier prefix 8489s # --symbol-prefix SYMPREFIX 8489s # Symbol prefix 8489s # --fhead FHEAD Output file header 8489s # --ftail FTAIL Output file footer 8489s # --fprod FPROD Put out TEXT every time a new input file is being 8489s # processed. 8489s # --eprod EPROD Per enum text, produced prior to value iterations 8489s # --vhead VHEAD Value header, produced before iterating over enum 8489s # values 8489s # --vprod VPROD Value text, produced for each enum value. 8489s # --vtail VTAIL Value tail, produced after iterating over enum values 8489s # --comments COMMENT_TMPL 8489s # Comment structure 8489s # --template TEMPLATE Template file 8489s # --output OUTPUT 8489s # --version, -v Print version information 8489s # 8489s # Production text substitutions: 8489s # @EnumName@ PrefixTheXEnum 8489s # @enum_name@ prefix_the_xenum 8489s # @ENUMNAME@ PREFIX_THE_XENUM 8489s # @ENUMSHORT@ THE_XENUM 8489s # @ENUMPREFIX@ PREFIX 8489s # @enumsince@ the user-provided since value given 8489s # @VALUENAME@ PREFIX_THE_XVALUE 8489s # @valuenick@ the-xvalue 8489s # @valuenum@ the integer value (limited support, Since: 2.26) 8489s # @type@ either enum or flags 8489s # @Type@ either Enum or Flags 8489s # @TYPE@ either ENUM or FLAGS 8489s # @filename@ name of current input file 8489s # @basename@ base name of the current input file (Since: 2.22) 8489s # Error: 8490s # Executing: glib/mkenums.py.test 8491s ok 30 __main__.TestRspMkenums.test_no_args 8491s # glib-mkenums: /usr/bin/glib-mkenums 8491s # tmpdir: /tmp/tmp7cqn6dv0 8491s # rspfile: True 8491s # Response file contains: 8491s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp7cqn6dv0/tmpr801oafm'] 8491s # Return code: 0 8491s # Output: 8491s # /* 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. */ 8491s # 8491s # 8491s # /* Generated data ends here */ 8491s # Error: 8492s ok 31 __main__.TestRspMkenums.test_no_headers 8492s # glib-mkenums: /usr/bin/glib-mkenums 8492s # tmpdir: /tmp/tmprucn8dz4 8492s # rspfile: True 8492s # /tmp/tmprucn8dz4/tmpkozzysgw.template: 8492s # /*** BEGIN file-header ***/ 8492s # file-header 8492s # /*** END file-header ***/ 8492s # 8492s # /*** BEGIN file-production ***/ 8492s # file-production 8492s # filename: @filename@ 8492s # basename: @basename@ 8492s # /*** END file-production ***/ 8492s # 8492s # /*** BEGIN enumeration-production ***/ 8492s # enumeration-production 8492s # EnumName: @EnumName@ 8492s # enum_name: @enum_name@ 8492s # ENUMNAME: @ENUMNAME@ 8492s # ENUMSHORT: @ENUMSHORT@ 8492s # ENUMPREFIX: @ENUMPREFIX@ 8492s # enumsince: @enumsince@ 8492s # type: @type@ 8492s # Type: @Type@ 8492s # TYPE: @TYPE@ 8492s # /*** END enumeration-production ***/ 8492s # 8492s # /*** BEGIN value-header ***/ 8492s # value-header 8492s # EnumName: @EnumName@ 8492s # enum_name: @enum_name@ 8492s # ENUMNAME: @ENUMNAME@ 8492s # ENUMSHORT: @ENUMSHORT@ 8492s # ENUMPREFIX: @ENUMPREFIX@ 8492s # enumsince: @enumsince@ 8492s # type: @type@ 8492s # Type: @Type@ 8492s # TYPE: @TYPE@ 8492s # /*** END value-header ***/ 8492s # 8492s # /*** BEGIN value-production ***/ 8492s # value-production 8492s # VALUENAME: @VALUENAME@ 8492s # valuenick: @valuenick@ 8492s # valuenum: @valuenum@ 8492s # type: @type@ 8492s # Type: @Type@ 8492s # TYPE: @TYPE@ 8492s # /*** END value-production ***/ 8492s # 8492s # /*** BEGIN value-tail ***/ 8492s # value-tail 8492s # EnumName: @EnumName@ 8492s # enum_name: @enum_name@ 8492s # ENUMNAME: @ENUMNAME@ 8492s # ENUMSHORT: @ENUMSHORT@ 8492s # ENUMPREFIX: @ENUMPREFIX@ 8492s # enumsince: @enumsince@ 8492s # type: @type@ 8492s # Type: @Type@ 8492s # TYPE: @TYPE@ 8492s # /*** END value-tail ***/ 8492s # 8492s # /*** BEGIN comment ***/ 8492s # comment 8492s # comment: @comment@ 8492s # /*** END comment ***/ 8492s # 8492s # /*** BEGIN file-tail ***/ 8492s # file-tail 8492s # /*** END file-tail ***/ 8492s # 8492s # Response file contains: --template /tmp/tmprucn8dz4/tmpkozzysgw.template 8492s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmprucn8dz4/tmppi7jxgzd'] 8492s # Return code: 0 8492s # Output: 8492s # comment 8492s # 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. 8492s # 8492s # 8492s # file-header 8492s # file-tail 8492s # 8492s # comment 8492s # comment: Generated data ends here 8492s # Error: 8494s ok 32 __main__.TestRspMkenums.test_no_nick 8494s # glib-mkenums: /usr/bin/glib-mkenums 8494s # tmpdir: /tmp/tmp5_n1e75q 8494s # rspfile: True 8494s # /tmp/tmp5_n1e75q/tmp2m6lwg8o.h: 8494s # typedef enum { 8494s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 8494s # } GeglSamplerType; 8494s # 8494s # /tmp/tmp5_n1e75q/tmpwvn3l86q.template: 8494s # /*** BEGIN file-header ***/ 8494s # file-header 8494s # /*** END file-header ***/ 8494s # 8494s # /*** BEGIN file-production ***/ 8494s # file-production 8494s # filename: @filename@ 8494s # basename: @basename@ 8494s # /*** END file-production ***/ 8494s # 8494s # /*** BEGIN enumeration-production ***/ 8494s # enumeration-production 8494s # EnumName: @EnumName@ 8494s # enum_name: @enum_name@ 8494s # ENUMNAME: @ENUMNAME@ 8494s # ENUMSHORT: @ENUMSHORT@ 8494s # ENUMPREFIX: @ENUMPREFIX@ 8494s # enumsince: @enumsince@ 8494s # type: @type@ 8494s # Type: @Type@ 8494s # TYPE: @TYPE@ 8494s # /*** END enumeration-production ***/ 8494s # 8494s # /*** BEGIN value-header ***/ 8494s # value-header 8494s # EnumName: @EnumName@ 8494s # enum_name: @enum_name@ 8494s # ENUMNAME: @ENUMNAME@ 8494s # ENUMSHORT: @ENUMSHORT@ 8494s # ENUMPREFIX: @ENUMPREFIX@ 8494s # enumsince: @enumsince@ 8494s # type: @type@ 8494s # Type: @Type@ 8494s # TYPE: @TYPE@ 8494s # /*** END value-header ***/ 8494s # 8494s # /*** BEGIN value-production ***/ 8494s # value-production 8494s # VALUENAME: @VALUENAME@ 8494s # valuenick: @valuenick@ 8494s # valuenum: @valuenum@ 8494s # type: @type@ 8494s # Type: @Type@ 8494s # TYPE: @TYPE@ 8494s # /*** END value-production ***/ 8494s # 8494s # /*** BEGIN value-tail ***/ 8494s # value-tail 8494s # EnumName: @EnumName@ 8494s # enum_name: @enum_name@ 8494s # ENUMNAME: @ENUMNAME@ 8494s # ENUMSHORT: @ENUMSHORT@ 8494s # ENUMPREFIX: @ENUMPREFIX@ 8494s # enumsince: @enumsince@ 8494s # type: @type@ 8494s # Type: @Type@ 8494s # TYPE: @TYPE@ 8494s # /*** END value-tail ***/ 8494s # 8494s # /*** BEGIN comment ***/ 8494s # comment 8494s # comment: @comment@ 8494s # /*** END comment ***/ 8494s # 8494s # /*** BEGIN file-tail ***/ 8494s # file-tail 8494s # /*** END file-tail ***/ 8494s # 8494s # Response file contains: --template /tmp/tmp5_n1e75q/tmpwvn3l86q.template /tmp/tmp5_n1e75q/tmp2m6lwg8o.h 8494s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp5_n1e75q/tmp97covcv0'] 8494s # Return code: 0 8494s # Output: 8494s # comment 8494s # 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. 8494s # 8494s # 8494s # file-header 8494s # file-production 8494s # filename: /tmp/tmp5_n1e75q/tmp2m6lwg8o.h 8494s # basename: tmp2m6lwg8o.h 8494s # enumeration-production 8494s # EnumName: GeglSamplerType 8494s # enum_name: gegl_sampler_type 8494s # ENUMNAME: GEGL_SAMPLER_TYPE 8494s # ENUMSHORT: SAMPLER_TYPE 8494s # ENUMPREFIX: GEGL 8494s # enumsince: 8494s # type: enum 8494s # Type: Enum 8494s # TYPE: ENUM 8494s # value-header 8494s # EnumName: GeglSamplerType 8494s # enum_name: gegl_sampler_type 8494s # ENUMNAME: GEGL_SAMPLER_TYPE 8494s # ENUMSHORT: SAMPLER_TYPE 8494s # ENUMPREFIX: GEGL 8494s # enumsince: 8494s # type: enum 8494s # Type: Enum 8494s # TYPE: ENUM 8494s # value-production 8494s # VALUENAME: GEGL_SAMPLER_NEAREST 8494s # valuenick: nearest 8494s # valuenum: 0 8494s # type: enum 8494s # Type: Enum 8494s # TYPE: ENUM 8494s # value-tail 8494s # EnumName: GeglSamplerType 8494s # enum_name: gegl_sampler_type 8494s # ENUMNAME: GEGL_SAMPLER_TYPE 8494s # ENUMSHORT: SAMPLER_TYPE 8494s # ENUMPREFIX: GEGL 8494s # enumsince: 8494s # type: enum 8494s # Type: Enum 8494s # TYPE: ENUM 8494s # file-tail 8494s # 8494s # comment 8494s # comment: Generated data ends here 8494s # Error: 8495s # Executing: glib/mkenums.py.test 8495s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 8495s # glib-mkenums: /usr/bin/glib-mkenums 8495s # tmpdir: /tmp/tmpnapsf1li 8495s # rspfile: True 8495s # /tmp/tmpnapsf1li/tmp2nvkeh38.h: 8495s # /* Copyright © La Peña */ 8495s # typedef enum { 8495s # ENUM_VALUE 8495s # } SomeEnumIdentifier; 8495s # 8495s # /tmp/tmpnapsf1li/tmpefpsfqhj.template: 8495s # /*** BEGIN file-header ***/ 8495s # file-header 8495s # /*** END file-header ***/ 8495s # 8495s # /*** BEGIN file-production ***/ 8495s # file-production 8495s # filename: @filename@ 8495s # basename: @basename@ 8495s # /*** END file-production ***/ 8495s # 8495s # /*** BEGIN enumeration-production ***/ 8495s # enumeration-production 8495s # EnumName: @EnumName@ 8495s # enum_name: @enum_name@ 8495s # ENUMNAME: @ENUMNAME@ 8495s # ENUMSHORT: @ENUMSHORT@ 8495s # ENUMPREFIX: @ENUMPREFIX@ 8495s # enumsince: @enumsince@ 8495s # type: @type@ 8495s # Type: @Type@ 8495s # TYPE: @TYPE@ 8495s # /*** END enumeration-production ***/ 8495s # 8495s # /*** BEGIN value-header ***/ 8495s # value-header 8495s # EnumName: @EnumName@ 8495s # enum_name: @enum_name@ 8495s # ENUMNAME: @ENUMNAME@ 8495s # ENUMSHORT: @ENUMSHORT@ 8495s # ENUMPREFIX: @ENUMPREFIX@ 8495s # enumsince: @enumsince@ 8495s # type: @type@ 8495s # Type: @Type@ 8495s # TYPE: @TYPE@ 8495s # /*** END value-header ***/ 8495s # 8495s # /*** BEGIN value-production ***/ 8495s # value-production 8495s # VALUENAME: @VALUENAME@ 8495s # valuenick: @valuenick@ 8495s # valuenum: @valuenum@ 8495s # type: @type@ 8495s # Type: @Type@ 8495s # TYPE: @TYPE@ 8495s # /*** END value-production ***/ 8495s # 8495s # /*** BEGIN value-tail ***/ 8495s # value-tail 8495s # EnumName: @EnumName@ 8495s # enum_name: @enum_name@ 8495s # ENUMNAME: @ENUMNAME@ 8495s # ENUMSHORT: @ENUMSHORT@ 8495s # ENUMPREFIX: @ENUMPREFIX@ 8495s # enumsince: @enumsince@ 8495s # type: @type@ 8495s # Type: @Type@ 8495s # TYPE: @TYPE@ 8495s # /*** END value-tail ***/ 8495s # 8495s # /*** BEGIN comment ***/ 8495s # comment 8495s # comment: @comment@ 8495s # /*** END comment ***/ 8495s # 8495s # /*** BEGIN file-tail ***/ 8495s # file-tail 8495s # /*** END file-tail ***/ 8495s # 8495s # Response file contains: --template /tmp/tmpnapsf1li/tmpefpsfqhj.template /tmp/tmpnapsf1li/tmp2nvkeh38.h 8495s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpnapsf1li/tmptgucznll'] 8495s # Return code: 0 8495s # Output: 8495s # comment 8495s # 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. 8495s # 8495s # 8495s # file-header 8495s # file-production 8495s # filename: /tmp/tmpnapsf1li/tmp2nvkeh38.h 8495s # basename: tmp2nvkeh38.h 8495s # enumeration-production 8495s # EnumName: SomeEnumIdentifier 8495s # enum_name: some_enum_identifier 8495s # ENUMNAME: SOME_ENUM_IDENTIFIER 8495s # ENUMSHORT: ENUM_IDENTIFIER 8495s # ENUMPREFIX: SOME 8495s # enumsince: 8495s # type: enum 8495s # Type: Enum 8495s # TYPE: ENUM 8495s # value-header 8495s # EnumName: SomeEnumIdentifier 8495s # enum_name: some_enum_identifier 8495s # ENUMNAME: SOME_ENUM_IDENTIFIER 8495s # ENUMSHORT: ENUM_IDENTIFIER 8495s # ENUMPREFIX: SOME 8495s # enumsince: 8495s # type: enum 8495s # Type: Enum 8495s # TYPE: ENUM 8495s # value-production 8495s # VALUENAME: ENUM_VALUE 8495s # valuenick: value 8495s # valuenum: 0 8495s # type: enum 8495s # Type: Enum 8495s # TYPE: ENUM 8495s # value-tail 8495s # EnumName: SomeEnumIdentifier 8495s # enum_name: some_enum_identifier 8495s # ENUMNAME: SOME_ENUM_IDENTIFIER 8495s # ENUMSHORT: ENUM_IDENTIFIER 8495s # ENUMPREFIX: SOME 8495s # enumsince: 8495s # type: enum 8495s # Type: Enum 8495s # TYPE: ENUM 8495s # file-tail 8495s # 8495s # comment 8495s # comment: Generated data ends here 8495s # Error: 8495s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 8495s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 8499s ok 34 __main__.TestRspMkenums.test_reproducible 8499s # glib-mkenums: /usr/bin/glib-mkenums 8499s # tmpdir: /tmp/tmp77e2mt9o 8499s # rspfile: True 8499s # /tmp/tmp77e2mt9o/tmptkwxtisk.template: template 8499s # Response file contains: --template /tmp/tmp77e2mt9o/tmptkwxtisk.template /tmp/tmp77e2mt9o/tmpbhtz2q2e1.h /tmp/tmp77e2mt9o/tmpx3ao71hl2.h 8499s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp77e2mt9o/tmp67dluvdo'] 8499s # Return code: 0 8499s # Output: 8499s # /* 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. */ 8499s # 8499s # 8499s # /* Generated data ends here */ 8499s # Error: 8499s # 8499s # /tmp/tmp77e2mt9o/tmpkhvvcbpu.template: template 8499s # Response file contains: --template /tmp/tmp77e2mt9o/tmpkhvvcbpu.template /tmp/tmp77e2mt9o/tmpx3ao71hl2.h /tmp/tmp77e2mt9o/tmpbhtz2q2e1.h 8499s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp77e2mt9o/tmpu_s4d8hz'] 8499s # Return code: 0 8499s # Output: 8499s # /* 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. */ 8499s # 8499s # 8499s # /* Generated data ends here */ 8499s # Error: 8500s # Executing: glib/mkenums.py.test 8500s ok 35 __main__.TestRspMkenums.test_since 8500s # glib-mkenums: /usr/bin/glib-mkenums 8500s # tmpdir: /tmp/tmp40s_scgc 8500s # rspfile: True 8500s # /tmp/tmp40s_scgc/tmpsg64z4g1.h: 8500s # typedef enum { /*< since=1.0 >*/ 8500s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 8500s # } QmiWmsMessageProtocol; 8500s # 8500s # /tmp/tmp40s_scgc/tmprdutepry.template: 8500s # /*** BEGIN file-header ***/ 8500s # file-header 8500s # /*** END file-header ***/ 8500s # 8500s # /*** BEGIN file-production ***/ 8500s # file-production 8500s # filename: @filename@ 8500s # basename: @basename@ 8500s # /*** END file-production ***/ 8500s # 8500s # /*** BEGIN enumeration-production ***/ 8500s # enumeration-production 8500s # EnumName: @EnumName@ 8500s # enum_name: @enum_name@ 8500s # ENUMNAME: @ENUMNAME@ 8500s # ENUMSHORT: @ENUMSHORT@ 8500s # ENUMPREFIX: @ENUMPREFIX@ 8500s # enumsince: @enumsince@ 8500s # type: @type@ 8500s # Type: @Type@ 8500s # TYPE: @TYPE@ 8500s # /*** END enumeration-production ***/ 8500s # 8500s # /*** BEGIN value-header ***/ 8500s # value-header 8500s # EnumName: @EnumName@ 8500s # enum_name: @enum_name@ 8500s # ENUMNAME: @ENUMNAME@ 8500s # ENUMSHORT: @ENUMSHORT@ 8500s # ENUMPREFIX: @ENUMPREFIX@ 8500s # enumsince: @enumsince@ 8500s # type: @type@ 8500s # Type: @Type@ 8500s # TYPE: @TYPE@ 8500s # /*** END value-header ***/ 8500s # 8500s # /*** BEGIN value-production ***/ 8500s # value-production 8500s # VALUENAME: @VALUENAME@ 8500s # valuenick: @valuenick@ 8500s # valuenum: @valuenum@ 8500s # type: @type@ 8500s # Type: @Type@ 8500s # TYPE: @TYPE@ 8500s # /*** END value-production ***/ 8500s # 8500s # /*** BEGIN value-tail ***/ 8500s # value-tail 8500s # EnumName: @EnumName@ 8500s # enum_name: @enum_name@ 8500s # ENUMNAME: @ENUMNAME@ 8500s # ENUMSHORT: @ENUMSHORT@ 8500s # ENUMPREFIX: @ENUMPREFIX@ 8500s # enumsince: @enumsince@ 8500s # type: @type@ 8500s # Type: @Type@ 8500s # TYPE: @TYPE@ 8500s # /*** END value-tail ***/ 8500s # 8500s # /*** BEGIN comment ***/ 8500s # comment 8500s # comment: @comment@ 8500s # /*** END comment ***/ 8500s # 8500s # /*** BEGIN file-tail ***/ 8500s # file-tail 8500s # /*** END file-tail ***/ 8500s # 8500s # Response file contains: --template /tmp/tmp40s_scgc/tmprdutepry.template /tmp/tmp40s_scgc/tmpsg64z4g1.h 8500s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp40s_scgc/tmp01vbf94b'] 8500s # Return code: 0 8500s # Output: 8500s # comment 8500s # 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. 8500s # 8500s # 8500s # file-header 8500s # file-production 8500s # filename: /tmp/tmp40s_scgc/tmpsg64z4g1.h 8500s # basename: tmpsg64z4g1.h 8500s # enumeration-production 8500s # EnumName: QmiWmsMessageProtocol 8500s # enum_name: qmi_wms_message_protocol 8500s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 8500s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 8500s # ENUMPREFIX: QMI 8500s # enumsince: 1.0 8500s # type: enum 8500s # Type: Enum 8500s # TYPE: ENUM 8500s # value-header 8500s # EnumName: QmiWmsMessageProtocol 8500s # enum_name: qmi_wms_message_protocol 8500s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 8500s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 8500s # ENUMPREFIX: QMI 8500s # enumsince: 1.0 8500s # type: enum 8500s # Type: Enum 8500s # TYPE: ENUM 8500s # value-production 8500s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 8500s # valuenick: cdma 8500s # valuenum: 0 8500s # type: enum 8500s # Type: Enum 8500s # TYPE: ENUM 8500s # value-tail 8500s # EnumName: QmiWmsMessageProtocol 8500s # enum_name: qmi_wms_message_protocol 8500s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 8500s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 8500s # ENUMPREFIX: QMI 8500s # enumsince: 1.0 8500s # type: enum 8500s # Type: Enum 8500s # TYPE: ENUM 8500s # file-tail 8500s # 8500s # comment 8500s # comment: Generated data ends here 8500s # Error: 8502s ok 36 __main__.TestRspMkenums.test_with_double_quotes 8502s # glib-mkenums: /usr/bin/glib-mkenums 8502s # tmpdir: /tmp/tmp7nrjexnf 8502s # rspfile: True 8502s # /tmp/tmp7nrjexnf/tmpy5l0nzh6.h: 8502s # typedef enum { 8502s # FOO_VALUE /*< nick="eek, a comma" >*/ 8502s # } Foo; 8502s # 8502s # /tmp/tmp7nrjexnf/tmp53md_402.template: 8502s # /*** BEGIN file-header ***/ 8502s # file-header 8502s # /*** END file-header ***/ 8502s # 8502s # /*** BEGIN file-production ***/ 8502s # file-production 8502s # filename: @filename@ 8502s # basename: @basename@ 8502s # /*** END file-production ***/ 8502s # 8502s # /*** BEGIN enumeration-production ***/ 8502s # enumeration-production 8502s # EnumName: @EnumName@ 8502s # enum_name: @enum_name@ 8502s # ENUMNAME: @ENUMNAME@ 8502s # ENUMSHORT: @ENUMSHORT@ 8502s # ENUMPREFIX: @ENUMPREFIX@ 8502s # enumsince: @enumsince@ 8502s # type: @type@ 8502s # Type: @Type@ 8502s # TYPE: @TYPE@ 8502s # /*** END enumeration-production ***/ 8502s # 8502s # /*** BEGIN value-header ***/ 8502s # value-header 8502s # EnumName: @EnumName@ 8502s # enum_name: @enum_name@ 8502s # ENUMNAME: @ENUMNAME@ 8502s # ENUMSHORT: @ENUMSHORT@ 8502s # ENUMPREFIX: @ENUMPREFIX@ 8502s # enumsince: @enumsince@ 8502s # type: @type@ 8502s # Type: @Type@ 8502s # TYPE: @TYPE@ 8502s # /*** END value-header ***/ 8502s # 8502s # /*** BEGIN value-production ***/ 8502s # value-production 8502s # VALUENAME: @VALUENAME@ 8502s # valuenick: @valuenick@ 8502s # valuenum: @valuenum@ 8502s # type: @type@ 8502s # Type: @Type@ 8502s # TYPE: @TYPE@ 8502s # /*** END value-production ***/ 8502s # 8502s # /*** BEGIN value-tail ***/ 8502s # value-tail 8502s # EnumName: @EnumName@ 8502s # enum_name: @enum_name@ 8502s # ENUMNAME: @ENUMNAME@ 8502s # ENUMSHORT: @ENUMSHORT@ 8502s # ENUMPREFIX: @ENUMPREFIX@ 8502s # enumsince: @enumsince@ 8502s # type: @type@ 8502s # Type: @Type@ 8502s # TYPE: @TYPE@ 8502s # /*** END value-tail ***/ 8502s # 8502s # /*** BEGIN comment ***/ 8502s # comment 8502s # comment: @comment@ 8502s # /*** END comment ***/ 8502s # 8502s # /*** BEGIN file-tail ***/ 8502s # file-tail 8502s # /*** END file-tail ***/ 8502s # 8502s # Response file contains: --template /tmp/tmp7nrjexnf/tmp53md_402.template /tmp/tmp7nrjexnf/tmpy5l0nzh6.h 8502s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp7nrjexnf/tmpng81tcfd'] 8502s # Return code: 0 8502s # Output: 8502s # comment 8502s # 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. 8502s # 8502s # 8502s # file-header 8502s # file-production 8502s # filename: /tmp/tmp7nrjexnf/tmpy5l0nzh6.h 8502s # basename: tmpy5l0nzh6.h 8502s # enumeration-production 8502s # EnumName: Foo 8502s # enum_name: foo_ 8502s # ENUMNAME: FOO_ 8502s # ENUMSHORT: 8502s # ENUMPREFIX: FOO 8502s # enumsince: 8502s # type: enum 8502s # Type: Enum 8502s # TYPE: ENUM 8502s # value-header 8502s # EnumName: Foo 8502s # enum_name: foo_ 8502s # ENUMNAME: FOO_ 8502s # ENUMSHORT: 8502s # ENUMPREFIX: FOO 8502s # enumsince: 8502s # type: enum 8502s # Type: Enum 8502s # TYPE: ENUM 8502s # value-production 8502s # VALUENAME: FOO_VALUE 8502s # valuenick: eek, a comma 8502s # valuenum: 0 8502s # type: enum 8502s # Type: Enum 8502s # TYPE: ENUM 8502s # value-tail 8502s # EnumName: Foo 8502s # enum_name: foo_ 8502s # ENUMNAME: FOO_ 8502s # ENUMSHORT: 8502s # ENUMPREFIX: FOO 8502s # enumsince: 8502s # type: enum 8502s # Type: Enum 8502s # TYPE: ENUM 8502s # file-tail 8502s # 8502s # comment 8502s # comment: Generated data ends here 8502s # Error: 8502s 1..36 8502s ok - glib/mkenums.py.test 8502s # Running test: glib/1bit-mutex.test 8503s TAP version 14 8503s # random seed: R02S897eb42b1f24d1ad224839e195c43bd5 8503s 1..2 8503s # Start of glib tests 8503s # Start of 1bit-mutex tests 8505s # Executing: glib/1bit-mutex.test 8510s # Executing: glib/1bit-mutex.test 8515s # Executing: glib/1bit-mutex.test 8520s # Executing: glib/1bit-mutex.test 8525s # Executing: glib/1bit-mutex.test 8530s # Executing: glib/1bit-mutex.test 8535s # Executing: glib/1bit-mutex.test 8540s # Executing: glib/1bit-mutex.test 8545s # Executing: glib/1bit-mutex.test 8550s # Executing: glib/1bit-mutex.test 8555s # Executing: glib/1bit-mutex.test 8560s # Executing: glib/1bit-mutex.test 8565s # Executing: glib/1bit-mutex.test 8570s # Executing: glib/1bit-mutex.test 8575s # Executing: glib/1bit-mutex.test 8580s ok 1 /glib/1bit-mutex/int 8580s # slow test /glib/1bit-mutex/int executed in 76.95 secs 8580s # Executing: glib/1bit-mutex.test 8585s # Executing: glib/1bit-mutex.test 8590s # Executing: glib/1bit-mutex.test 8595s # Executing: glib/1bit-mutex.test 8600s # Executing: glib/1bit-mutex.test 8605s # Executing: glib/1bit-mutex.test 8610s # Executing: glib/1bit-mutex.test 8615s # Executing: glib/1bit-mutex.test 8620s # Executing: glib/1bit-mutex.test 8625s # Executing: glib/1bit-mutex.test 8630s # Executing: glib/1bit-mutex.test 8635s # Executing: glib/1bit-mutex.test 8640s # Executing: glib/1bit-mutex.test 8645s # Executing: glib/1bit-mutex.test 8650s # Executing: glib/1bit-mutex.test 8655s # Executing: glib/1bit-mutex.test 8660s # Executing: glib/1bit-mutex.test 8661s ok 2 /glib/1bit-mutex/pointer 8661s # slow test /glib/1bit-mutex/pointer executed in 81.27 secs 8661s # End of 1bit-mutex tests 8661s # End of glib tests 8661s ok - glib/1bit-mutex.test 8661s # Running test: glib/strfuncs.test 8661s TAP version 14 8661s # random seed: R02Sf350ebabed9812ab0d82aeae2f3732ca 8661s 1..51 8661s # Start of strfuncs tests 8661s ok 1 /strfuncs/ascii-strcasecmp 8661s ok 2 /strfuncs/ascii_strdown 8661s ok 3 /strfuncs/ascii_strdup 8661s ok 4 /strfuncs/ascii_strtod 8661s ok 5 /strfuncs/bounds-check 8661s ok 6 /strfuncs/has-prefix 8661s ok 7 /strfuncs/has-prefix-macro 8661s ok 8 /strfuncs/has-suffix 8661s ok 9 /strfuncs/has-suffix-macro 8661s ok 10 /strfuncs/memdup 8661s ok 11 /strfuncs/memdup2 8661s ok 12 /strfuncs/set_str 8661s ok 13 /strfuncs/stpcpy 8661s ok 14 /strfuncs/str_match_string 8661s ok 15 /strfuncs/str_tokenize_and_fold 8661s ok 16 /strfuncs/strcanon 8661s ok 17 /strfuncs/strchomp 8661s ok 18 /strfuncs/strchug 8661s ok 19 /strfuncs/strcompress-strescape 8661s ok 20 /strfuncs/strconcat 8661s ok 21 /strfuncs/strdelimit 8661s ok 22 /strfuncs/strdup 8661s ok 23 /strfuncs/strdup-printf 8661s ok 24 /strfuncs/strdupv 8661s ok 25 /strfuncs/strerror 8661s ok 26 /strfuncs/strip-context 8661s ok 27 /strfuncs/strjoin 8661s ok 28 /strfuncs/strjoinv 8661s ok 29 /strfuncs/strlcat 8661s ok 30 /strfuncs/strlcpy 8661s ok 31 /strfuncs/strncasecmp 8661s ok 32 /strfuncs/strndup 8661s ok 33 /strfuncs/strnfill 8661s ok 34 /strfuncs/strreverse 8661s ok 35 /strfuncs/strsignal 8661s ok 36 /strfuncs/strsplit 8661s ok 37 /strfuncs/strsplit-set 8661s ok 38 /strfuncs/strstr 8661s ok 39 /strfuncs/strtod 8661s ok 40 /strfuncs/strtoull-strtoll 8661s ok 41 /strfuncs/strup 8661s ok 42 /strfuncs/strv-contains 8661s ok 43 /strfuncs/strv-equal 8661s ok 44 /strfuncs/strv-length 8661s ok 45 /strfuncs/test-is-to-digit 8661s ok 46 /strfuncs/transliteration 8661s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 8661s ok 47 /strfuncs/str-equal 8661s ok 48 /strfuncs/str-is-ascii 8661s # Start of ascii-string-to-num tests 8661s ok 49 /strfuncs/ascii-string-to-num/pathological 8661s ok 50 /strfuncs/ascii-string-to-num/usual 8661s # End of ascii-string-to-num tests 8661s # Start of strdup tests 8661s ok 51 /strfuncs/strdup/inline 8661s # End of strdup tests 8661s # End of strfuncs tests 8661s ok - glib/strfuncs.test 8661s # Running test: glib/markup-parse.test 8662s TAP version 14 8662s # random seed: R02Sff029d2bf462d69a24e25c4a2cd2a428 8662s 1..71 8662s # Start of markup tests 8662s # Start of parse tests 8662s ok 1 /markup/parse/valid-17.gmarkup 8662s ok 2 /markup/parse/fail-23.gmarkup 8662s ok 3 /markup/parse/fail-47.gmarkup 8662s ok 4 /markup/parse/fail-20.gmarkup 8662s ok 5 /markup/parse/fail-40.gmarkup 8662s ok 6 /markup/parse/fail-27.gmarkup 8662s ok 7 /markup/parse/fail-14.gmarkup 8662s ok 8 /markup/parse/fail-13.gmarkup 8662s ok 9 /markup/parse/fail-15.gmarkup 8662s ok 10 /markup/parse/fail-30.gmarkup 8662s ok 11 /markup/parse/fail-32.gmarkup 8662s ok 12 /markup/parse/valid-6.gmarkup 8662s ok 13 /markup/parse/fail-8.gmarkup 8662s ok 14 /markup/parse/fail-9.gmarkup 8662s ok 15 /markup/parse/fail-26.gmarkup 8662s ok 16 /markup/parse/fail-33.gmarkup 8662s ok 17 /markup/parse/fail-11.gmarkup 8662s ok 18 /markup/parse/fail-39.gmarkup 8662s ok 19 /markup/parse/fail-3.gmarkup 8662s ok 20 /markup/parse/fail-17.gmarkup 8662s ok 21 /markup/parse/fail-2.gmarkup 8662s ok 22 /markup/parse/fail-1.gmarkup 8662s ok 23 /markup/parse/valid-3.gmarkup 8662s ok 24 /markup/parse/valid-11.gmarkup 8662s ok 25 /markup/parse/valid-10.gmarkup 8662s ok 26 /markup/parse/fail-41.gmarkup 8662s ok 27 /markup/parse/fail-54.gmarkup 8662s ok 28 /markup/parse/fail-19.gmarkup 8662s ok 29 /markup/parse/fail-48.gmarkup 8662s ok 30 /markup/parse/valid-7.gmarkup 8662s ok 31 /markup/parse/fail-24.gmarkup 8662s ok 32 /markup/parse/valid-8.gmarkup 8662s ok 33 /markup/parse/valid-1.gmarkup 8662s ok 34 /markup/parse/fail-16.gmarkup 8662s ok 35 /markup/parse/fail-44.gmarkup 8662s ok 36 /markup/parse/valid-9.gmarkup 8662s ok 37 /markup/parse/valid-15.gmarkup 8662s ok 38 /markup/parse/fail-5.gmarkup 8662s ok 39 /markup/parse/valid-14.gmarkup 8662s ok 40 /markup/parse/fail-28.gmarkup 8662s ok 41 /markup/parse/fail-43.gmarkup 8662s ok 42 /markup/parse/fail-35.gmarkup 8662s ok 43 /markup/parse/fail-38.gmarkup 8662s ok 44 /markup/parse/fail-6.gmarkup 8662s ok 45 /markup/parse/fail-46.gmarkup 8662s ok 46 /markup/parse/fail-51.gmarkup 8662s ok 47 /markup/parse/fail-42.gmarkup 8662s ok 48 /markup/parse/fail-4.gmarkup 8662s ok 49 /markup/parse/valid-13.gmarkup 8662s ok 50 /markup/parse/fail-49.gmarkup 8662s ok 51 /markup/parse/valid-4.gmarkup 8662s ok 52 /markup/parse/valid-2.gmarkup 8662s ok 53 /markup/parse/fail-36.gmarkup 8662s ok 54 /markup/parse/valid-5.gmarkup 8662s ok 55 /markup/parse/fail-29.gmarkup 8662s ok 56 /markup/parse/fail-12.gmarkup 8662s ok 57 /markup/parse/fail-52.gmarkup 8662s ok 58 /markup/parse/fail-7.gmarkup 8662s ok 59 /markup/parse/fail-31.gmarkup 8662s ok 60 /markup/parse/fail-10.gmarkup 8662s ok 61 /markup/parse/fail-53.gmarkup 8662s ok 62 /markup/parse/fail-37.gmarkup 8662s ok 63 /markup/parse/valid-16.gmarkup 8662s ok 64 /markup/parse/valid-12.gmarkup 8662s ok 65 /markup/parse/fail-25.gmarkup 8662s ok 66 /markup/parse/fail-45.gmarkup 8662s ok 67 /markup/parse/fail-50.gmarkup 8662s ok 68 /markup/parse/fail-22.gmarkup 8662s ok 69 /markup/parse/fail-18.gmarkup 8662s ok 70 /markup/parse/fail-21.gmarkup 8662s ok 71 /markup/parse/fail-34.gmarkup 8662s # End of parse tests 8662s # End of markup tests 8662s ok - glib/markup-parse.test 8662s # Running test: glib/async-splice-output-stream.test 8662s TAP version 14 8662s # random seed: R02S257c00497e61d084720a11cbfac80113 8662s 1..5 8662s # Start of async-splice tests 8662s ok 1 /async-splice/copy-chunks 8662s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 8662s ok 2 /async-splice/copy-chunks-threaded-input 8662s ok 3 /async-splice/copy-chunks-threaded-output 8662s ok 4 /async-splice/copy-chunks-threaded 8662s ok 5 /async-splice/cancelled 8662s # End of async-splice tests 8662s ok - glib/async-splice-output-stream.test 8663s # Running test: glib/markup-escape.test 8663s TAP version 14 8663s ok - glib/markup-escape.test 8663s # random seed: R02S0157a13015b990d2eb77e977f4008bda 8663s 1..41 8663s # Start of markup tests 8663s ok 1 /markup/format 8663s # Start of escape-text tests 8663s ok 2 /markup/escape-text/0 8663s ok 3 /markup/escape-text/1 8663s ok 4 /markup/escape-text/2 8663s ok 5 /markup/escape-text/3 8663s ok 6 /markup/escape-text/4 8663s ok 7 /markup/escape-text/5 8663s ok 8 /markup/escape-text/6 8663s ok 9 /markup/escape-text/7 8663s ok 10 /markup/escape-text/8 8663s ok 11 /markup/escape-text/9 8663s ok 12 /markup/escape-text/10 8663s ok 13 /markup/escape-text/11 8663s ok 14 /markup/escape-text/12 8663s ok 15 /markup/escape-text/13 8663s ok 16 /markup/escape-text/14 8663s ok 17 /markup/escape-text/15 8663s ok 18 /markup/escape-text/16 8663s ok 19 /markup/escape-text/17 8663s ok 20 /markup/escape-text/18 8663s ok 21 /markup/escape-text/19 8663s ok 22 /markup/escape-text/20 8663s ok 23 /markup/escape-text/21 8663s ok 24 /markup/escape-text/22 8663s # End of escape-text tests 8663s # Start of escape-unichar tests 8663s ok 25 /markup/escape-unichar/0 8663s ok 26 /markup/escape-unichar/1 8663s ok 27 /markup/escape-unichar/2 8663s ok 28 /markup/escape-unichar/3 8663s ok 29 /markup/escape-unichar/4 8663s ok 30 /markup/escape-unichar/5 8663s ok 31 /markup/escape-unichar/6 8663s ok 32 /markup/escape-unichar/7 8663s ok 33 /markup/escape-unichar/8 8663s ok 34 /markup/escape-unichar/9 8663s ok 35 /markup/escape-unichar/10 8663s ok 36 /markup/escape-unichar/11 8663s ok 37 /markup/escape-unichar/12 8663s ok 38 /markup/escape-unichar/13 8663s ok 39 /markup/escape-unichar/14 8663s ok 40 /markup/escape-unichar/15 8663s ok 41 /markup/escape-unichar/16 8663s # End of escape-unichar tests 8663s # End of markup tests 8663s # Running test: glib/giomodule.test 8663s TAP version 14 8663s # random seed: R02Se607a9c64260a58ce0a70b7f4846e35c 8663s 1..3 8663s # Start of giomodule tests 8663s ok 1 /giomodule/extension-point 8663s ok 2 /giomodule/module-scan-all 8663s ok 3 /giomodule/module-scan-all-with-scope 8663s # End of giomodule tests 8663s ok - glib/giomodule.test 8664s # Running test: glib/tree.test 8664s TAP version 14 8664s # random seed: R02S7d9056e5c65041d8dc95bf210686722e 8664s 1..7 8664s # Start of tree tests 8664s ok 1 /tree/search 8664s ok 2 /tree/remove 8664s ok 3 /tree/destroy 8664s ok 4 /tree/traverse 8664s ok 5 /tree/insert 8664s ok 6 /tree/bounds 8664s ok 7 /tree/remove-all 8664s # End of tree tests 8664s ok - glib/tree.test 8664s # Running test: glib/tls-interaction.test 8664s TAP version 14 8664s # random seed: R02S02b912ba097eea5a5829eec8e9a9d4d5 8664s 1..42 8664s # Start of tls-interaction tests 8664s # Start of ask-password tests 8664s # Start of invoke-with-loop tests 8664s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 8664s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 8664s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 8664s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 8664s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 8664s # End of invoke-with-loop tests 8664s # Start of invoke-without-loop tests 8664s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 8664s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 8664s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 8664s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 8664s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 8664s # End of invoke-without-loop tests 8664s # Start of invoke-in-loop tests 8664s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 8664s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 8664s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 8664s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 8664s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 8664s # End of invoke-in-loop tests 8664s # Start of sync tests 8664s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 8664s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 8664s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 8664s # End of sync tests 8664s # Start of async tests 8664s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 8664s ok 20 /tls-interaction/ask-password/async/async-implementation-success 8664s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 8664s # End of async tests 8664s # End of ask-password tests 8664s # Start of request-certificate tests 8664s # Start of invoke-with-loop tests 8664s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 8664s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 8664s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 8664s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 8664s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 8664s # End of invoke-with-loop tests 8664s # Start of invoke-without-loop tests 8664s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 8664s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 8664s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 8664s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 8664s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 8664s # End of invoke-without-loop tests 8664s # Start of invoke-in-loop tests 8664s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 8664s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 8664s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 8664s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 8664s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 8664s # End of invoke-in-loop tests 8664s # Start of sync tests 8664s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 8664s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 8664s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 8664s # End of sync tests 8664s # Start of async tests 8664s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 8664s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 8664s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 8664s # End of async tests 8664s # End of request-certificate tests 8664s # End of tls-interaction tests 8664s ok - glib/tls-interaction.test 8664s # Running test: glib/sort.test 8664s TAP version 14 8664s # random seed: R02S144f83a1ad3fcc5afbada4207cf0848c 8664s 1..5 8664s # Start of sort tests 8664s ok 1 /sort/basic 8664s ok 2 /sort/zero-elements 8664s ok 3 /sort/stable 8664s ok 4 /sort/big 8664s ok 5 /sort/deprecated 8664s # End of sort tests 8664s ok - glib/sort.test 8665s # Running test: glib/keyfile.test 8665s TAP version 14 8665s # random seed: R02Se18c8b339f5ee02dedcf81404cf8f3c6 8665s 1..36 8665s # Start of keyfile tests 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/line-ends/.dirs/runtime 8665s ok 1 /keyfile/line-ends 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/whitespace/.dirs/runtime 8665s ok 2 /keyfile/whitespace 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/comments/.dirs/runtime 8665s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 8665s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 8665s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 8665s ok 3 /keyfile/comments 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/listing/.dirs/runtime 8665s ok 4 /keyfile/listing 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/string/.dirs/runtime 8665s ok 5 /keyfile/string 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/boolean/.dirs/runtime 8665s ok 6 /keyfile/boolean 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/number/.dirs/runtime 8665s ok 7 /keyfile/number 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/.dirs/runtime 8665s ok 8 /keyfile/locale-string 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/lists/.dirs/runtime 8665s ok 9 /keyfile/lists 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/lists-set-get/.dirs/runtime 8665s ok 10 /keyfile/lists-set-get 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/group-remove/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 8665s ok 11 /keyfile/group-remove 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/key-remove/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 8665s ok 12 /keyfile/key-remove 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/groups/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 8665s ok 13 /keyfile/groups 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-keys/.dirs/runtime 8665s ok 14 /keyfile/duplicate-keys 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 8665s ok 15 /keyfile/duplicate-groups 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/duplicate-groups2/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 8665s ok 16 /keyfile/duplicate-groups2 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/group-names/.dirs/runtime 8665s ok 17 /keyfile/group-names 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/key-names/.dirs/runtime 8665s ok 18 /keyfile/key-names 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/reload/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 8665s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 8665s ok 19 /keyfile/reload 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/int64/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 8665s ok 20 /keyfile/int64 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/load/.dirs/runtime 8665s ok 21 /keyfile/load 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/save/.dirs/runtime 8665s ok 22 /keyfile/save 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/load-fail/.dirs/runtime 8665s # Executing: glib/keyfile.test 8665s ok 23 /keyfile/load-fail 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/non-utf8/.dirs/runtime 8665s ok 24 /keyfile/non-utf8 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/page-boundary/.dirs/runtime 8665s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 8665s ok 25 /keyfile/page-boundary 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/ref/.dirs/runtime 8665s ok 26 /keyfile/ref 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/replace-value/.dirs/runtime 8665s ok 27 /keyfile/replace-value 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/list-separator/.dirs/runtime 8665s ok 28 /keyfile/list-separator 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/empty-string/.dirs/runtime 8665s ok 29 /keyfile/empty-string 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/limbo/.dirs/runtime 8665s ok 30 /keyfile/limbo 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/utf8/.dirs/runtime 8665s # Testing invalid encoding ?non-UTF-8? 8665s # Testing invalid encoding ?UTF? 8665s # Testing invalid encoding ?UTF-9? 8665s ok 31 /keyfile/utf8 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/roundtrip/.dirs/runtime 8665s ok 32 /keyfile/roundtrip 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/bytes/.dirs/runtime 8665s ok 33 /keyfile/bytes 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/get-locale/.dirs/runtime 8665s ok 34 /keyfile/get-locale 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/free-when-not-last-ref/.dirs/runtime 8665s ok 35 /keyfile/free-when-not-last-ref 8665s # Start of locale-string tests 8665s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/home 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/cache 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/system-config2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/config 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/system-data2 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/data 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/state 8665s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_A2DZ52/keyfile/locale-string/multiple-loads/.dirs/runtime 8665s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 8665s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 8665s ok 36 /keyfile/locale-string/multiple-loads 8665s # End of locale-string tests 8665s # End of keyfile tests 8665s ok - glib/keyfile.test 8665s # Running test: glib/utf8-performance.test 8666s TAP version 14 8666s # random seed: R02S797516a219aac0c7b4af2966169927f0 8666s 1..36 8666s # Start of utf8 tests 8666s # Start of perf tests 8666s # Start of get_char tests 8666s # max perf: 0.1 MB/s 8666s ok 1 /utf8/perf/get_char/ascii 8666s # max perf: 0.7 MB/s 8666s ok 2 /utf8/perf/get_char/latin1 8666s # max perf: 0.6 MB/s 8666s ok 3 /utf8/perf/get_char/cyrillic 8666s # max perf: 5.4 MB/s 8666s ok 4 /utf8/perf/get_char/han 8666s # End of get_char tests 8666s # Start of get_char-backwards tests 8666s # max perf: 0.3 MB/s 8666s ok 5 /utf8/perf/get_char-backwards/ascii 8666s # max perf: 2.0 MB/s 8666s ok 6 /utf8/perf/get_char-backwards/latin1 8666s # max perf: 6.7 MB/s 8666s ok 7 /utf8/perf/get_char-backwards/cyrillic 8666s # max perf: 9.8 MB/s 8666s ok 8 /utf8/perf/get_char-backwards/han 8666s # End of get_char-backwards tests 8666s # Start of get_char_validated tests 8666s # max perf: 0.2 MB/s 8666s ok 9 /utf8/perf/get_char_validated/ascii 8666s # max perf: 0.6 MB/s 8666s ok 10 /utf8/perf/get_char_validated/latin1 8666s # max perf: 13.3 MB/s 8666s ok 11 /utf8/perf/get_char_validated/cyrillic 8666s # max perf: 2.5 MB/s 8666s ok 12 /utf8/perf/get_char_validated/han 8666s # End of get_char_validated tests 8666s # Start of utf8_to_ucs4 tests 8666s # max perf: 0.1 MB/s 8666s ok 13 /utf8/perf/utf8_to_ucs4/ascii 8666s # max perf: 0.6 MB/s 8666s ok 14 /utf8/perf/utf8_to_ucs4/latin1 8666s # max perf: 8.4 MB/s 8666s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 8666s # max perf: 2.2 MB/s 8666s ok 16 /utf8/perf/utf8_to_ucs4/han 8666s # End of utf8_to_ucs4 tests 8666s # Start of utf8_to_ucs4-sized tests 8666s # max perf: 0.3 MB/s 8666s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 8666s # max perf: 1.4 MB/s 8666s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 8666s # max perf: 10.0 MB/s 8666s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 8666s # max perf: 3.4 MB/s 8666s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 8666s # End of utf8_to_ucs4-sized tests 8666s # Start of utf8_to_ucs4_fast tests 8666s # max perf: 0.2 MB/s 8666s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 8666s # max perf: 1.6 MB/s 8666s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 8666s # max perf: 32.0 MB/s 8666s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 8666s # max perf: 2.8 MB/s 8666s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 8666s # End of utf8_to_ucs4_fast tests 8666s # Start of utf8_to_ucs4_fast-sized tests 8666s # max perf: 0.3 MB/s 8666s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 8666s # max perf: 13.4 MB/s 8666s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 8666s # max perf: 26.7 MB/s 8666s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 8666s # max perf: 26.0 MB/s 8666s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 8666s # End of utf8_to_ucs4_fast-sized tests 8666s # Start of utf8_validate tests 8666s # max perf: 0.5 MB/s 8666s ok 29 /utf8/perf/utf8_validate/ascii 8666s # max perf: 0.4 MB/s 8666s ok 30 /utf8/perf/utf8_validate/latin1 8666s # max perf: 20.0 MB/s 8666s ok 31 /utf8/perf/utf8_validate/cyrillic 8666s # max perf: 0.5 MB/s 8666s ok 32 /utf8/perf/utf8_validate/han 8666s # End of utf8_validate tests 8666s # Start of utf8_validate-sized tests 8666s # max perf: 0.5 MB/s 8666s ok 33 /utf8/perf/utf8_validate-sized/ascii 8666s # max perf: 13.4 MB/s 8666s ok 34 /utf8/perf/utf8_validate-sized/latin1 8666s # max perf: 22.9 MB/s 8666s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 8666s # max perf: 39.0 MB/s 8666s ok 36 /utf8/perf/utf8_validate-sized/han 8666s # End of utf8_validate-sized tests 8666s # End of perf tests 8666s # End of utf8 tests 8666s ok - glib/utf8-performance.test 8666s # Running test: glib/queue.test 8666s TAP version 14 8666s # random seed: R02S12151cceeab65a7f78b5f7fae8126538 8666s 1..12 8666s # Start of queue tests 8666s ok 1 /queue/basic 8666s ok 2 /queue/copy 8666s ok 3 /queue/off-by-one 8666s ok 4 /queue/find-custom 8666s ok 5 /queue/static 8666s ok 6 /queue/clear 8666s ok 7 /queue/free-full 8666s ok 8 /queue/clear-full 8666s ok 9 /queue/insert-sibling-link 8666s ok 10 /queue/push-nth-link 8666s # Start of clear-full tests 8666s ok 11 /queue/clear-full/noop 8666s # End of clear-full tests 8666s # Start of random tests 8670s # Executing: glib/queue.test 8670s ok 12 /queue/random/seed:103139343 8670s # slow test /queue/random/seed:103139343 executed in 4.33 secs 8670s # End of random tests 8670s # End of queue tests 8670s ok - glib/queue.test 8670s # Running test: glib/gdbus-peer-object-manager.test 8671s TAP version 14 8671s # random seed: R02S4a1c1052969d3f336942164a9e5dc0b5 8671s 1..2 8671s # Start of gdbus tests 8671s # Start of peer-object-manager tests 8671s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/home 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/cache 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/system-config2 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/config 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/system-data2 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/data 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/state 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/normal/.dirs/runtime 8671s ok 1 /gdbus/peer-object-manager/normal 8671s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/home 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/cache 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/system-config2 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/config 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/system-data2 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/data 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/state 8671s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_TNCW52/gdbus/peer-object-manager/root/.dirs/runtime 8671s ok 2 /gdbus/peer-object-manager/root 8671s # End of peer-object-manager tests 8671s # End of gdbus tests 8671s ok - glib/gdbus-peer-object-manager.test 8671s # SUMMARY: total=323; passed=321; skipped=1; failed=1; user=1390.6s; system=996.2s; maxrss=145224 8671s # FAIL: glib/gi-compile-repository.py.test (Child process exited with code 1) 8674s autopkgtest [18:14:58]: test installed-tests: -----------------------] 8680s autopkgtest [18:15:04]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 8680s installed-tests FAIL non-zero exit status 2 8684s autopkgtest [18:15:08]: test closure-refcount: preparing testbed 8691s Reading package lists... 8695s Building dependency tree... 8695s Reading state information... 8699s Starting pkgProblemResolver with broken count: 0 8700s Starting 2 pkgProblemResolver with broken count: 0 8700s Done 8706s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 8715s autopkgtest [18:15:39]: test closure-refcount: [----------------------- 8719s Running test: glib/closure-refcount.test 8719s TAP version 14 8719s # random seed: R02Sb35eb1c9bc125cb51f5b4768c0be6948 8719s 1..1 8719s # Start of closure tests 8719s # Init 0x556451563d10 8719s # Yielding from main thread 8720s # Yielding from thread2 8720s # Yielding from thread1 8720s # Yielding from main thread 8720s # Yielding from main thread 8720s # Yielding from main thread 8721s # Yielding from thread2 8721s # Yielding from thread1 8721s # Yielding from main thread 8721s # Yielding from main thread 8721s # Yielding from thread2 8721s # Yielding from thread1 8722s # Yielding from main thread 8722s # Yielding from main thread 8722s # Yielding from thread1 8722s # Yielding from thread2 8722s # Yielding from main thread 8723s # Yielding from thread1 8723s # Yielding from main thread 8723s # Yielding from thread2 8723s # Yielding from main thread 8723s # Yielding from thread1 8723s # Yielding from main thread 8724s # Yielding from thread2 8724s # Yielding from thread1 8724s # Yielding from main thread 8724s # Yielding from thread2 8724s Executing: glib/closure-refcount.test 8724s # Yielding from main thread 8725s # Yielding from thread1 8725s # Yielding from main thread 8725s # Yielding from thread2 8725s # Yielding from thread1 8725s # Yielding from main thread 8726s # Yielding from thread2 8726s # Yielding from main thread 8726s # Yielding from thread1 8726s # Yielding from main thread 8726s # Yielding from main thread 8726s # Yielding from thread2 8726s # Yielding from thread1 8726s # Yielding from main thread 8727s # Yielding from main thread 8727s # Yielding from thread1 8727s # Yielding from thread2 8727s # Yielding from main thread 8727s # Yielding from thread1 8727s # Yielding from main thread 8727s # Yielding from thread2 8728s # Yielding from main thread 8728s # Yielding from thread1 8728s # Yielding from thread2 8728s # Yielding from main thread 8728s # Yielding from main thread 8728s # Yielding from thread1 8728s # Yielding from thread2 8729s # Yielding from main thread 8729s # Yielding from main thread 8729s # Yielding from thread1 8729s # Yielding from thread2 8729s # Yielding from main thread 8729s Executing: glib/closure-refcount.test 8730s # Yielding from main thread 8730s # Yielding from thread1 8730s # Yielding from thread2 8730s # Yielding from main thread 8730s # Yielding from main thread 8730s # Yielding from main thread 8730s # Yielding from thread1 8730s # Yielding from thread2 8731s # Yielding from main thread 8731s # Yielding from thread1 8731s # Yielding from main thread 8731s # Yielding from thread2 8731s # Yielding from main thread 8731s # Yielding from main thread 8731s # Yielding from thread1 8732s # Yielding from thread2 8732s # Yielding from main thread 8732s # Yielding from main thread 8732s # Yielding from thread1 8732s # Yielding from thread2 8732s # Yielding from main thread 8733s # Yielding from thread1 8733s # Yielding from main thread 8733s # Yielding from thread2 8733s # Yielding from main thread 8734s # Yielding from thread1 8734s # Yielding from main thread 8734s # Yielding from thread2 8734s # Yielding from main thread 8734s # Yielding from main thread 8734s # Yielding from thread1 8734s # Yielding from thread2 8734s Executing: glib/closure-refcount.test 8734s # Yielding from main thread 8735s # Yielding from main thread 8735s # Yielding from thread2 8735s # Yielding from thread1 8735s # Yielding from main thread 8735s # Yielding from main thread 8735s # Yielding from thread2 8735s # Yielding from main thread 8735s # Yielding from thread1 8736s # Yielding from main thread 8736s # Yielding from main thread 8736s # Yielding from thread2 8736s # Yielding from thread1 8736s # Yielding from main thread 8736s # Yielding from main thread 8737s # Yielding from main thread 8737s # Yielding from thread2 8737s # Yielding from thread1 8737s # Yielding from main thread 8737s # Yielding from main thread 8738s # Yielding from thread1 8738s # Yielding from thread2 8738s # Yielding from main thread 8738s # Yielding from thread2 8738s # Yielding from main thread 8738s # Yielding from thread1 8738s # Yielding from main thread 8739s # Yielding from main thread 8739s # Yielding from thread2 8739s # Yielding from thread1 8739s # Yielding from main thread 8739s # Yielding from main thread 8739s # Yielding from thread2 8739s Executing: glib/closure-refcount.test 8739s # Yielding from main thread 8740s # Yielding from thread1 8740s # Yielding from main thread 8740s # Yielding from thread2 8740s # Yielding from main thread 8740s # Yielding from thread1 8740s # Yielding from main thread 8741s # Yielding from thread2 8741s # Yielding from main thread 8741s # Yielding from main thread 8741s # Yielding from thread1 8741s # Yielding from main thread 8741s # Yielding from thread2 8741s # Yielding from main thread 8742s # Yielding from main thread 8742s # Yielding from thread1 8742s # Yielding from main thread 8742s # Yielding from thread2 8742s # Yielding from main thread 8742s # Yielding from thread1 8743s # Yielding from main thread 8743s # Yielding from thread2 8743s # Yielding from main thread 8743s # Yielding from thread1 8743s # Yielding from main thread 8743s # Yielding from thread2 8744s # Yielding from main thread 8744s # Yielding from thread1 8744s # Yielding from main thread 8744s # Yielding from thread2 8744s # Yielding from main thread 8744s Executing: glib/closure-refcount.test 8744s # Yielding from thread1 8744s # Yielding from main thread 8745s # Yielding from thread2 8745s # Yielding from main thread 8745s # Yielding from thread1 8745s # Yielding from main thread 8745s # Yielding from thread2 8745s # Yielding from main thread 8746s # Yielding from main thread 8746s # Yielding from thread1 8746s # Yielding from main thread 8746s # Yielding from thread2 8746s # Yielding from thread1 8746s # Yielding from main thread 8747s # Yielding from main thread 8747s # Yielding from thread2 8747s # Yielding from thread1 8747s # Yielding from main thread 8747s # Yielding from thread2 8747s # Yielding from thread1 8747s # Yielding from main thread 8748s # Yielding from main thread 8748s # Yielding from main thread 8748s # Yielding from thread1 8748s # Yielding from thread2 8748s # Yielding from main thread 8748s # Yielding from main thread 8749s # Yielding from thread2 8749s # Yielding from thread1 8749s # Yielding from main thread 8749s # Yielding from main thread 8749s # Yielding from thread1 8749s # Yielding from thread2 8749s # Yielding from main thread 8749s Executing: glib/closure-refcount.test 8749s # Yielding from main thread 8750s # Yielding from thread1 8750s # Yielding from thread2 8750s # Yielding from main thread 8750s # Yielding from thread1 8750s # Stopping 8750s # Stopped 8750s ok 1 /closure/refcount 8750s # slow test /closure/refcount executed in 31.04 secs 8750s # End of closure tests 8750s PASS: glib/closure-refcount.test 8750s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=61.0s; system=0.5s; maxrss=2832 8752s autopkgtest [18:16:16]: test closure-refcount: -----------------------] 8756s autopkgtest [18:16:20]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 8756s closure-refcount PASS 8760s autopkgtest [18:16:24]: test debugcontroller: preparing testbed 8768s Reading package lists... 8772s Building dependency tree... 8772s Reading state information... 8776s Starting pkgProblemResolver with broken count: 0 8777s Starting 2 pkgProblemResolver with broken count: 0 8777s Done 8782s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 8792s autopkgtest [18:16:56]: test debugcontroller: [----------------------- 8795s Running test: glib/debugcontroller.test 8795s TAP version 14 8795s # random seed: R02S21898335007a53422156e5457877cfe9 8795s 1..3 8795s # Start of debug-controller tests 8795s # Start of dbus tests 8795s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 8796s # GLib-GIO-DEBUG: Debug output enabled 8796s # GLib-GIO-DEBUG: Debug output disabled 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s ok 1 /debug-controller/dbus/basic 8796s # slow test /debug-controller/dbus/basic executed in 0.54 secs 8796s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8796s ok 2 /debug-controller/dbus/duplicate 8796s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8797s # GLib-GIO-DEBUG: Debug output enabled 8797s # GLib-GIO-DEBUG: Debug output disabled 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8797s ok 3 /debug-controller/dbus/properties 8797s # slow test /debug-controller/dbus/properties executed in 0.54 secs 8797s # End of dbus tests 8797s # End of debug-controller tests 8797s PASS: glib/debugcontroller.test 8797s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.6s; system=0.3s; maxrss=4976 8799s autopkgtest [18:17:03]: test debugcontroller: -----------------------] 8803s debugcontroller PASS 8803s autopkgtest [18:17:07]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 8808s autopkgtest [18:17:12]: test gdbus-server-auth: preparing testbed 8815s Reading package lists... 8819s Building dependency tree... 8819s Reading state information... 8823s Starting pkgProblemResolver with broken count: 0 8825s Starting 2 pkgProblemResolver with broken count: 0 8825s Done 8830s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 8840s autopkgtest [18:17:44]: test gdbus-server-auth: [----------------------- 8844s Running test: glib/gdbus-server-auth.test 8844s TAP version 14 8844s # random seed: R02Sb3f5909b2d60aa020a8a02ec95aa01a5 8844s 1..9 8844s # Start of gdbus tests 8844s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/home 8844s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/cache 8844s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/system-config2 8844s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/config 8844s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/system-data2 8844s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/data 8844s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/state 8844s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/.dirs/runtime 8844s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-O1M252 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 8844s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-O1M252/dbus-Ps0nAQCO 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15912 8845s ok 1 /gdbus/server-auth 8845s # slow test /gdbus/server-auth executed in 0.84 secs 8845s # Start of server-auth tests 8845s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/home 8845s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/cache 8845s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/system-config2 8845s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/config 8845s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/system-data2 8845s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/data 8845s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/state 8845s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/abstract/.dirs/runtime 8845s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-WTKB62 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 8845s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-WTKB62/dbus-OO83oFsm 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8845s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8845s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8845s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8845s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8845s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15912 8845s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15912 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15912 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15912 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15912 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15912 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15912 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15912 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8846s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15912 8846s ok 2 /gdbus/server-auth/abstract 8846s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/home 8846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/cache 8846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/system-config2 8846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/config 8846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/system-data2 8846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/data 8846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/state 8846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/tcp/.dirs/runtime 8846s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 8846s # Connectable address: tcp:host=127.0.0.1,port=41611 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 8846s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8846s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8846s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8846s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8846s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8846s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 8847s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 8847s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8847s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 8847s ok 3 /gdbus/server-auth/tcp 8847s # slow test /gdbus/server-auth/tcp executed in 1.53 secs 8847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/home 8847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/cache 8847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/system-config2 8847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/config 8847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/system-data2 8847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/data 8847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/state 8847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/.dirs/runtime 8847s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-YSMB62 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 8847s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-YSMB62/dbus-ETuF4pgp 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8847s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8847s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8847s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8847s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15912 8847s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15912 8848s ok 4 /gdbus/server-auth/anonymous 8848s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/home 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/cache 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/system-config2 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/config 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/system-data2 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/data 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/state 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/.dirs/runtime 8848s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-HZRW52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 8848s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-HZRW52/dbus-RytE9G0P 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8848s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15912 8848s ok 5 /gdbus/server-auth/external 8848s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/home 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/cache 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/system-config2 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/config 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/system-data2 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/data 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/state 8848s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/.dirs/runtime 8848s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-50MT52 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 8848s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-50MT52/dbus-n2PSKOd0 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8848s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15912 8848s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8848s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8848s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8848s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15912 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8849s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15912 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8849s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15912 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8849s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8849s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15912 8849s ok 6 /gdbus/server-auth/sha1 8849s # slow test /gdbus/server-auth/sha1 executed in 0.60 secs 8849s # Start of anonymous tests 8849s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/home 8849s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/cache 8849s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 8849s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/config 8849s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 8849s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/data 8849s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/state 8849s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/anonymous/tcp/.dirs/runtime 8849s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 8849s # Connectable address: tcp:host=127.0.0.1,port=44693 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s Executing: glib/gdbus-server-auth.test 8849s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 8849s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8849s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8849s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8849s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8849s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 8850s ok 7 /gdbus/server-auth/anonymous/tcp 8850s # slow test /gdbus/server-auth/anonymous/tcp executed in 1.35 secs 8850s # End of anonymous tests 8850s # Start of external tests 8850s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/home 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/cache 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/system-config2 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/config 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/system-data2 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/data 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/state 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/external/require-same-user/.dirs/runtime 8850s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-WV4V52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 8850s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_HIU152/gdbus-server-auth-WV4V52/dbus-OQFE7oeX 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15912 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 8850s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15912,uid=1000,gid=1000 8850s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15912 8850s ok 8 /gdbus/server-auth/external/require-same-user 8850s # End of external tests 8850s # Start of sha1 tests 8850s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/home 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/cache 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/system-config2 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/config 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/system-data2 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/data 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/state 8850s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_HIU152/gdbus/server-auth/sha1/tcp/.dirs/runtime 8850s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 8850s # Connectable address: tcp:host=127.0.0.1,port=44265 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8850s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8850s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 8850s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8850s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8850s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8850s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8850s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8850s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 8851s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8851s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8851s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8851s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8851s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 8852s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8852s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8852s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 8852s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8852s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8852s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 8852s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8852s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8852s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 8852s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 8852s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 8852s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 8852s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 8852s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 8852s ok 9 /gdbus/server-auth/sha1/tcp 8852s # slow test /gdbus/server-auth/sha1/tcp executed in 1.50 secs 8852s # End of sha1 tests 8852s # End of server-auth tests 8852s # End of gdbus tests 8852s PASS: glib/gdbus-server-auth.test 8852s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.5s; system=3.0s; maxrss=7008 8854s autopkgtest [18:17:58]: test gdbus-server-auth: -----------------------] 8859s autopkgtest [18:18:03]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 8859s gdbus-server-auth PASS 8863s autopkgtest [18:18:07]: test gdbus-threading: preparing testbed 8870s Reading package lists... 8873s Building dependency tree... 8873s Reading state information... 8877s Starting pkgProblemResolver with broken count: 0 8877s Starting 2 pkgProblemResolver with broken count: 0 8877s Done 8884s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 8892s autopkgtest [18:18:36]: test gdbus-threading: [----------------------- 8896s Running test: glib/gdbus-threading.test 8896s TAP version 14 8896s # random seed: R02S5f1fa0d932c671510f3448b13fd1111f 8896s 1..3 8896s # Start of gdbus tests 8896s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/home 8896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/cache 8896s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/system-config2 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/config 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/system-data2 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/data 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/state 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_UJAZ52/gdbus/delivery-in-thread/.dirs/runtime 8897s ok 1 /gdbus/delivery-in-thread 8897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/home 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/cache 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/system-config2 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/config 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/system-data2 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/data 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/state 8897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_UJAZ52/gdbus/method-calls-in-thread/.dirs/runtime 8898s ok 2 /gdbus/method-calls-in-thread 8898s # slow test /gdbus/method-calls-in-thread executed in 1.44 secs 8898s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/home 8898s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/cache 8898s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/system-config2 8898s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/config 8898s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/system-data2 8898s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/data 8898s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/state 8898s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_UJAZ52/gdbus/threaded-singleton/.dirs/runtime 8901s Executing: glib/gdbus-threading.test 8906s Executing: glib/gdbus-threading.test 8911s Executing: glib/gdbus-threading.test 8913s # GLib-GIO-DEBUG: refcount of 0x7ff230005090 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 8913s # GLib-GIO-DEBUG: refcount of 0x7ff230005090 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 8916s Executing: glib/gdbus-threading.test 8917s # GLib-GIO-DEBUG: refcount of 0x7ff230004090 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 8921s # GLib-GIO-DEBUG: refcount of 0x7ff230005090 is not right (2 rather than 1) in test_threaded_singleton(), sleeping 8921s Executing: glib/gdbus-threading.test 8924s # GLib-GIO-DEBUG: refcount of 0x7ff230004090 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 8926s ok 3 /gdbus/threaded-singleton 8926s # slow test /gdbus/threaded-singleton executed in 27.77 secs 8926s # End of gdbus tests 8926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 8926s PASS: glib/gdbus-threading.test 8926s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=12.5s; system=7.9s; maxrss=5008 8928s autopkgtest [18:19:12]: test gdbus-threading: -----------------------] 8932s gdbus-threading PASS 8932s autopkgtest [18:19:16]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 8937s autopkgtest [18:19:21]: test gmenumodel: preparing testbed 8944s Reading package lists... 8949s Building dependency tree... 8949s Reading state information... 8952s Starting pkgProblemResolver with broken count: 0 8953s Starting 2 pkgProblemResolver with broken count: 0 8953s Done 8959s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 8968s autopkgtest [18:19:52]: test gmenumodel: [----------------------- 8972s Running test: glib/gmenumodel.test 8972s TAP version 14 8972s # random seed: R02Sce2b9d103837c7d1a98845b2541cddaf 8973s 1..15 8973s # Start of gmenu tests 8977s Executing: glib/gmenumodel.test 8982s Executing: glib/gmenumodel.test 8987s Executing: glib/gmenumodel.test 8990s ok 1 /gmenu/equality 8990s # slow test /gmenu/equality executed in 17.25 secs 8992s Executing: glib/gmenumodel.test 8997s Executing: glib/gmenumodel.test 9002s Executing: glib/gmenumodel.test 9007s Executing: glib/gmenumodel.test 9009s ok 2 /gmenu/random 9009s # slow test /gmenu/random executed in 18.87 secs 9009s ok 3 /gmenu/attributes 9009s ok 4 /gmenu/links 9009s ok 5 /gmenu/mutable 9009s ok 6 /gmenu/convenience 9009s ok 7 /gmenu/menuitem 9009s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 9009s ok 8 /gmenu/input-validation 9009s # Start of dbus tests 9012s Executing: glib/gmenumodel.test 9014s ok 9 /gmenu/dbus/roundtrip 9014s # slow test /gmenu/dbus/roundtrip executed in 4.90 secs 9015s ok 10 /gmenu/dbus/subscriptions 9017s Executing: glib/gmenumodel.test 9022s Executing: glib/gmenumodel.test 9027s Executing: glib/gmenumodel.test 9032s Executing: glib/gmenumodel.test 9037s Executing: glib/gmenumodel.test 9040s ok 11 /gmenu/dbus/threaded 9040s # slow test /gmenu/dbus/threaded executed in 25.48 secs 9040s # Start of peer tests 9042s Executing: glib/gmenumodel.test 9043s ok 12 /gmenu/dbus/peer/roundtrip 9043s # slow test /gmenu/dbus/peer/roundtrip executed in 3.27 secs 9044s ok 13 /gmenu/dbus/peer/subscriptions 9044s # End of peer tests 9044s # Start of export tests 9044s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 9044s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 9044s ok 14 /gmenu/dbus/export/error-handling 9044s # End of export tests 9044s # End of dbus tests 9044s # Start of attributes tests 9044s ok 15 /gmenu/attributes/iterate 9044s # End of attributes tests 9044s # End of gmenu tests 9044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 9044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 9044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 9044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 9044s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 9044s PASS: glib/gmenumodel.test 9044s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=81.1s; system=9.5s; maxrss=7652 9046s autopkgtest [18:21:10]: test gmenumodel: -----------------------] 9050s autopkgtest [18:21:14]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 9050s gmenumodel PASS 9054s autopkgtest [18:21:18]: test mainloop: preparing testbed 9061s Reading package lists... 9064s Building dependency tree... 9064s Reading state information... 9067s Starting pkgProblemResolver with broken count: 0 9069s Starting 2 pkgProblemResolver with broken count: 0 9069s Done 9074s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9084s autopkgtest [18:21:48]: test mainloop: [----------------------- 9088s Running test: glib/mainloop.test 9088s TAP version 14 9088s # random seed: R02S0a4de80119921a80daa1e20018620892 9088s 1..45 9088s # Start of maincontext tests 9088s ok 1 /maincontext/basic 9089s # Add same-priority sources: 786 9089s # Find each source: 50 9090s # Remove in random order: 400 9090s ok 2 /maincontext/nsources_same_priority 9090s # slow test /maincontext/nsources_same_priority executed in 1.72 secs 9090s # Add different-priority sources: 381 9090s # Find each source: 41 9091s # Remove in random order: 309 9091s ok 3 /maincontext/nsources_different_priority 9091s # slow test /maincontext/nsources_different_priority executed in 1.20 secs 9093s Executing: glib/mainloop.test 9096s # Add sources from threads: 5149 9098s Executing: glib/mainloop.test 9101s # Remove sources from threads: 4268 9101s ok 4 /maincontext/nsources_threadpool 9101s # slow test /maincontext/nsources_threadpool executed in 9.53 secs 9101s ok 5 /maincontext/source_finalization 9101s # /maincontext/idle-once summary: Test g_idle_add_once() works 9101s ok 6 /maincontext/idle-once 9101s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 9101s ok 7 /maincontext/timeout-once 9101s # Start of source_finalization_from_source tests 9101s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 8 /maincontext/source_finalization_from_source/0 9101s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 9 /maincontext/source_finalization_from_source/1 9101s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 10 /maincontext/source_finalization_from_source/2 9101s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 11 /maincontext/source_finalization_from_source/3 9101s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 12 /maincontext/source_finalization_from_source/4 9101s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 13 /maincontext/source_finalization_from_source/5 9101s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 14 /maincontext/source_finalization_from_source/6 9101s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 15 /maincontext/source_finalization_from_source/7 9101s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 16 /maincontext/source_finalization_from_source/8 9101s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 9101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 9101s ok 17 /maincontext/source_finalization_from_source/9 9101s # End of source_finalization_from_source tests 9101s # Start of source_finalization_from_dispatch tests 9101s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 9101s ok 18 /maincontext/source_finalization_from_dispatch/0 9101s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 9101s ok 19 /maincontext/source_finalization_from_dispatch/1 9101s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 9101s ok 20 /maincontext/source_finalization_from_dispatch/2 9101s # End of source_finalization_from_dispatch tests 9101s # End of maincontext tests 9101s # Start of mainloop tests 9101s ok 21 /mainloop/basic 9101s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 9101s ok 23 /mainloop/priorities 9101s ok 24 /mainloop/invoke 9101s # slow test /mainloop/invoke executed in 0.51 secs 9103s ok 25 /mainloop/child_sources 9103s # slow test /mainloop/child_sources executed in 1.47 secs 9103s Executing: glib/mainloop.test 9106s ok 26 /mainloop/recursive_child_sources 9106s # slow test /mainloop/recursive_child_sources executed in 2.78 secs 9106s ok 27 /mainloop/recursive_loop_child_sources 9106s ok 28 /mainloop/swapping_child_sources 9106s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 9106s ok 29 /mainloop/blocked_child_sources 9107s ok 30 /mainloop/source_time 9107s # slow test /mainloop/source_time executed in 1.00 secs 9107s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 9107s ok 31 /mainloop/overflow 9107s ok 32 /mainloop/ready-time 9107s # slow test /mainloop/ready-time executed in 0.50 secs 9107s ok 33 /mainloop/wakeup 9107s ok 34 /mainloop/remove-invalid 9107s ok 35 /mainloop/unref-while-pending 9108s Executing: glib/mainloop.test 9113s Executing: glib/mainloop.test 9118s Executing: glib/mainloop.test 9123s Executing: glib/mainloop.test 9128s Executing: glib/mainloop.test 9133s Executing: glib/mainloop.test 9138s ok 36 /mainloop/unix-fd 9138s # slow test /mainloop/unix-fd executed in 30.15 secs 9138s ok 37 /mainloop/unix-fd-source 9138s ok 38 /mainloop/source-unix-fd-api 9138s ok 39 /mainloop/wait 9138s ok 40 /mainloop/unix-file-poll 9138s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 9138s ok 41 /mainloop/unix-fd-priority 9138s ok 42 /mainloop/nfds 9138s ok 43 /mainloop/steal-fd 9138s # Start of ownerless-polling tests 9138s ok 44 /mainloop/ownerless-polling/attach-first 9138s ok 45 /mainloop/ownerless-polling/pop-first 9138s # End of ownerless-polling tests 9138s # End of mainloop tests 9138s PASS: glib/mainloop.test 9138s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=9.7s; system=41.7s; maxrss=14908 9140s autopkgtest [18:22:44]: test mainloop: -----------------------] 9144s autopkgtest [18:22:48]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 9144s mainloop PASS 9147s autopkgtest [18:22:51]: test memory-monitor-dbus: preparing testbed 9154s Reading package lists... 9157s Building dependency tree... 9158s Reading state information... 9161s Starting pkgProblemResolver with broken count: 0 9162s Starting 2 pkgProblemResolver with broken count: 0 9162s Done 9168s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9178s autopkgtest [18:23:22]: test memory-monitor-dbus: [----------------------- 9181s Running test: glib/memory-monitor-dbus.test 9186s Executing: glib/memory-monitor-dbus.test 9191s Executing: glib/memory-monitor-dbus.test 9192s TAP version 13 9192s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 9192s # Received memory warning signal, level 9192s # Received memory warning signal, level 9192s # Received memory warning signal, level 9192s 1..1 9192s PASS: glib/memory-monitor-dbus.test 9193s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=9.8s; system=2.1s; maxrss=28280 9195s autopkgtest [18:23:39]: test memory-monitor-dbus: -----------------------] 9200s memory-monitor-dbus PASS 9200s autopkgtest [18:23:44]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 9204s autopkgtest [18:23:48]: test socket: preparing testbed 9211s Reading package lists... 9215s Building dependency tree... 9215s Reading state information... 9219s Starting pkgProblemResolver with broken count: 0 9221s Starting 2 pkgProblemResolver with broken count: 0 9221s Done 9226s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9236s autopkgtest [18:24:20]: test socket: [----------------------- 9239s Running test: glib/socket.test 9240s TAP version 14 9240s # random seed: R02Sd543471070b0060e528ad48162bb9c28 9240s 1..28 9240s # Start of socket tests 9241s ok 1 /socket/ipv4_sync 9241s # slow test /socket/ipv4_sync executed in 1.09 secs 9242s ok 2 /socket/ipv4_async 9242s # slow test /socket/ipv4_async executed in 1.02 secs 9242s ok 3 /socket/ipv6_sync 9242s ok 4 /socket/ipv6_async 9242s ok 5 /socket/ipv6_v4mapped 9243s ok 6 /socket/close_graceful 9243s # slow test /socket/close_graceful executed in 1.02 secs 9243s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 9243s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 9243s ok 8 /socket/fd_reuse 9243s ok 9 /socket/address 9243s ok 10 /socket/unix-from-fd 9243s ok 11 /socket/unix-connection 9243s ok 12 /socket/unix-connection-ancillary-data 9243s ok 13 /socket/source-postmortem 9243s ok 14 /socket/read_write 9243s ok 15 /socket/read_writev 9243s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 9243s ok 16 /socket/receive_bytes 9243s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 9243s ok 17 /socket/receive_bytes_from 9243s # Start of ipv4_sync tests 9243s ok 18 /socket/ipv4_sync/datagram 9243s # Start of datagram tests 9244s ok 19 /socket/ipv4_sync/datagram/timeouts 9244s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.11 secs 9244s # End of datagram tests 9244s # End of ipv4_sync tests 9244s # Start of ipv6_sync tests 9244s ok 20 /socket/ipv6_sync/datagram 9244s # Start of datagram tests 9245s Executing: glib/socket.test 9245s ok 21 /socket/ipv6_sync/datagram/timeouts 9245s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.11 secs 9245s # End of datagram tests 9245s # End of ipv6_sync tests 9245s # Start of reuse tests 9245s ok 22 /socket/reuse/tcp 9245s ok 23 /socket/reuse/udp 9245s # End of reuse tests 9245s # Start of get_available tests 9246s ok 24 /socket/get_available/datagram 9246s ok 25 /socket/get_available/stream 9246s # End of get_available tests 9246s # Start of credentials tests 9246s # Supported on this OS: GCredentials:linux-ucred:pid=0 9246s ok 26 /socket/credentials/tcp_client 9246s # Supported on this OS: GCredentials:linux-ucred:pid=0 9246s ok 27 /socket/credentials/tcp_server 9246s # Supported on this OS: GCredentials:linux-ucred:pid=17755,uid=1000,gid=1000 9246s ok 28 /socket/credentials/unix_socketpair 9246s # End of credentials tests 9246s # End of socket tests 9246s PASS: glib/socket.test 9246s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.4s; maxrss=4340 9248s autopkgtest [18:24:32]: test socket: -----------------------] 9252s socket PASS 9252s autopkgtest [18:24:36]: test socket: - - - - - - - - - - results - - - - - - - - - - 9255s autopkgtest [18:24:39]: test testfilemonitor: preparing testbed 9262s Reading package lists... 9266s Building dependency tree... 9266s Reading state information... 9268s Starting pkgProblemResolver with broken count: 0 9268s Starting 2 pkgProblemResolver with broken count: 0 9268s Done 9272s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9282s autopkgtest [18:25:06]: test testfilemonitor: [----------------------- 9286s Running test: glib/testfilemonitor.test 9286s TAP version 14 9286s # random seed: R02S5e76a6b0bf90962ab743932732a2b0ab 9286s 1..8 9286s # Start of monitor tests 9286s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 9286s # Using temporary directory: /tmp/gio-test-testfilemonitor_7ORV52 9286s # Using GFileMonitor GInotifyFileMonitor 9288s ok 1 /monitor/atomic-replace 9288s # slow test /monitor/atomic-replace executed in 2.12 secs 9288s # Using temporary directory: /tmp/gio-test-testfilemonitor_H5Z952 9288s # Using GFileMonitor GInotifyFileMonitor 9291s ok 2 /monitor/file-changes 9291s # slow test /monitor/file-changes executed in 2.55 secs 9291s # Using temporary directory: /tmp/gio-test-testfilemonitor_6KBX52 9291s # Using GFileMonitor GInotifyFileMonitor 9291s Executing: glib/testfilemonitor.test 9294s ok 3 /monitor/dir-monitor 9294s # slow test /monitor/dir-monitor executed in 3.52 secs 9294s # Using temporary directory: /tmp/gio-test-testfilemonitor_G6G852 9294s # Using GFileMonitor GInotifyFileMonitor 9296s Executing: glib/testfilemonitor.test 9301s Executing: glib/testfilemonitor.test 9306s Executing: glib/testfilemonitor.test 9311s Executing: glib/testfilemonitor.test 9316s Executing: glib/testfilemonitor.test 9319s ok 4 /monitor/dir-not-existent 9319s # slow test /monitor/dir-not-existent executed in 25.04 secs 9319s # Using temporary directory: /tmp/gio-test-testfilemonitor_477B62 9319s # Using GFileMonitor 0 GInotifyFileMonitor 9319s # Using GFileMonitor 1 GInotifyFileMonitor 9321s ok 5 /monitor/cross-dir-moves 9321s # slow test /monitor/cross-dir-moves executed in 2.03 secs 9321s # Using temporary directory: /tmp/gio-test-testfilemonitor_B5WC62 9321s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn?t cause a deadlock. 9321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 9321s Executing: glib/testfilemonitor.test 9321s ok 6 /monitor/finalize-in-callback 9321s # Using temporary directory: /tmp/gio-test-testfilemonitor_LT0552 9321s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 9321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 9321s ok 7 /monitor/root 9321s # Start of file tests 9321s # Using temporary directory: /tmp/gio-test-testfilemonitor_XEF652 9321s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 9321s # Running with hard link tests 9321s # Using GFileMonitor GInotifyFileMonitor 9325s # Event 0 at expected index 7 skipped because it is marked as optional 9325s # Event 2 at expected index 11 skipped because it is marked as optional 9325s ok 8 /monitor/file/hard-links 9325s # slow test /monitor/file/hard-links executed in 3.53 secs 9325s # End of file tests 9325s # End of monitor tests 9325s PASS: glib/testfilemonitor.test 9325s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.5s; maxrss=4624 9327s autopkgtest [18:25:51]: test testfilemonitor: -----------------------] 9331s testfilemonitor PASS 9331s autopkgtest [18:25:55]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 9334s autopkgtest [18:25:58]: test thread-pool-slow: preparing testbed 9341s Reading package lists... 9344s Building dependency tree... 9344s Reading state information... 9347s Starting pkgProblemResolver with broken count: 0 9348s Starting 2 pkgProblemResolver with broken count: 0 9348s Done 9353s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9362s autopkgtest [18:26:26]: test thread-pool-slow: [----------------------- 9365s Running test: glib/thread-pool-slow.test 9365s TAP version 14 9365s # random seed: R02Se996d95d23ce3c892171544ce855141d 9365s 1..7 9365s # Start of threadpool tests 9365s ok 1 /threadpool/functions 9366s ok 2 /threadpool/stop-unused 9366s # slow test /threadpool/stop-unused executed in 0.60 secs 9366s ok 3 /threadpool/pools 9366s # [unsorted] ===> pushed new thread with id:49, number of threads:1, unprocessed:0 9366s # [unsorted] ===> pushed new thread with id:28, number of threads:2, unprocessed:1 9366s # [unsorted] ===> pushed new thread with id:98, number of threads:3, unprocessed:2 9366s # [unsorted] ===> pushed new thread with id:85, number of threads:4, unprocessed:3 9366s # [unsorted] ===> pushed new thread with id:79, number of threads:5, unprocessed:4 9366s # [unsorted] ===> pushed new thread with id:42, number of threads:6, unprocessed:5 9366s # [unsorted] ===> pushed new thread with id:60, number of threads:7, unprocessed:6 9366s # [unsorted] ===> pushed new thread with id:97, number of threads:8, unprocessed:7 9366s # [unsorted] ===> pushed new thread with id:97, number of threads:9, unprocessed:8 9366s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:3 9366s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:4 9366s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:5 9366s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:5 9366s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:6 9366s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:6 9366s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:7 9366s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:7 9366s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:8 9366s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:9 9366s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:10 9366s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:11 9366s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:12 9366s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:13 9366s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:14 9366s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:14 9366s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:15 9366s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:16 9366s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:17 9366s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:18 9366s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:19 9366s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:20 9366s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:21 9366s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:22 9366s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:23 9366s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:24 9366s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:25 9366s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:26 9366s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:27 9366s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:28 9366s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:29 9366s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:30 9366s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:31 9366s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:32 9366s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:33 9366s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:34 9366s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:35 9366s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:36 9366s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:37 9366s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:38 9366s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:39 9366s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:40 9366s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:41 9366s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:42 9366s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:43 9366s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:44 9366s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:45 9366s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:46 9366s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:47 9366s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:48 9366s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:49 9366s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:50 9366s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:51 9366s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:52 9366s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:53 9366s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:54 9366s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:55 9366s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:56 9366s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:57 9366s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:58 9366s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:59 9366s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:55 9366s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:56 9366s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:57 9366s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:58 9366s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:59 9366s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:60 9366s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:61 9366s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:62 9366s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:63 9366s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:64 9366s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:65 9366s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:66 9366s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:67 9366s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:68 9366s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:69 9366s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:69 9366s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:70 9366s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:71 9366s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:72 9366s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:73 9366s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:74 9366s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:75 9366s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:76 9366s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:77 9366s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:78 9366s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:79 9366s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:80 9366s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:81 9366s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:82 9366s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:83 9366s ok 4 /threadpool/no-sort 9366s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:1 9366s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:2 9366s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:3 9366s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:4 9366s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:5 9366s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:6 9366s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:7 9366s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:8 9366s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:9 9366s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:10 9366s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:11 9366s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:12 9366s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:13 9366s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:14 9366s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:15 9366s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:16 9366s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:17 9366s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:18 9366s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:19 9366s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:20 9366s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:21 9366s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:22 9366s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:23 9366s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:24 9366s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:25 9366s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:26 9366s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:27 9366s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:28 9366s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:29 9366s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:30 9366s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:31 9366s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:32 9366s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:33 9366s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:34 9366s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:35 9366s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:36 9366s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:37 9366s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:38 9366s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:39 9366s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:40 9366s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:41 9366s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:42 9366s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:43 9366s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:44 9366s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:45 9366s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:46 9366s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:47 9366s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:48 9366s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:49 9366s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:50 9366s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:51 9366s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:52 9366s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:53 9366s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:54 9366s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:55 9366s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:56 9366s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:57 9366s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:58 9366s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:59 9366s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:60 9366s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:61 9366s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:62 9366s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:63 9366s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:64 9366s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:65 9366s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:66 9366s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:67 9366s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:68 9366s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:69 9366s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:70 9366s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:71 9366s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:72 9366s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:73 9366s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:74 9366s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:75 9366s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:76 9366s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:77 9366s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:78 9366s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:79 9366s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:80 9366s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:81 9366s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:82 9366s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:83 9366s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:84 9366s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:85 9366s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:86 9366s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:87 9366s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:88 9366s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:89 9366s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:90 9366s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:91 9366s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:92 9366s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:93 9366s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:94 9366s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:95 9366s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:96 9366s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:97 9366s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:98 9366s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:99 9366s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:100 9366s # Starting thread pool processing 9366s ok 5 /threadpool/sort 9367s ok 6 /threadpool/stop-unused-multiple 9367s # slow test /threadpool/stop-unused-multiple executed in 0.82 secs 9367s # Pool idle thread count: 0, unprocessed jobs: 39 9367s # Pool idle thread count: 0, unprocessed jobs: 0 9367s # Pool idle thread count: 0, unprocessed jobs: 0 9368s # Pool idle thread count: 10, unprocessed jobs: 0 9368s # Pool idle thread count: 10, unprocessed jobs: 0 9368s # Pool idle thread count: 10, unprocessed jobs: 0 9368s # Pool idle thread count: 10, unprocessed jobs: 0 9369s # Pool idle thread count: 10, unprocessed jobs: 0 9369s # Pool idle thread count: 10, unprocessed jobs: 0 9369s # Pool idle thread count: 10, unprocessed jobs: 0 9369s # Pool idle thread count: 10, unprocessed jobs: 0 9370s # Pool idle thread count: 10, unprocessed jobs: 0 9370s # Pool idle thread count: 10, unprocessed jobs: 0 9370s # Pool idle thread count: 10, unprocessed jobs: 0 9370s # Pool idle thread count: 10, unprocessed jobs: 0 9370s Executing: glib/thread-pool-slow.test 9371s # Pool idle thread count: 10, unprocessed jobs: 0 9371s # Pool idle thread count: 10, unprocessed jobs: 0 9371s # Pool idle thread count: 10, unprocessed jobs: 0 9371s # Pool idle thread count: 10, unprocessed jobs: 0 9372s # Pool idle thread count: 10, unprocessed jobs: 0 9372s # Pool idle thread count: 10, unprocessed jobs: 0 9372s # Pool idle thread count: 10, unprocessed jobs: 0 9372s # Pool idle thread count: 10, unprocessed jobs: 0 9373s # Pool idle thread count: 10, unprocessed jobs: 0 9373s # Pool idle thread count: 10, unprocessed jobs: 0 9373s # Pool idle thread count: 10, unprocessed jobs: 0 9373s # Pool idle thread count: 10, unprocessed jobs: 0 9374s # Pool idle thread count: 10, unprocessed jobs: 0 9374s # Pool idle thread count: 10, unprocessed jobs: 0 9374s # Pool idle thread count: 10, unprocessed jobs: 0 9374s # Pool idle thread count: 10, unprocessed jobs: 0 9375s # Pool idle thread count: 10, unprocessed jobs: 0 9375s # Pool idle thread count: 10, unprocessed jobs: 0 9375s # Pool idle thread count: 10, unprocessed jobs: 0 9375s # Pool idle thread count: 10, unprocessed jobs: 0 9375s Executing: glib/thread-pool-slow.test 9376s # Pool idle thread count: 9, unprocessed jobs: 1 9376s # Pool idle thread count: 8, unprocessed jobs: 0 9376s # Pool idle thread count: 8, unprocessed jobs: 0 9376s # Pool idle thread count: 8, unprocessed jobs: 0 9376s # Pool idle thread count: 10, unprocessed jobs: 0 9376s # Pool idle thread count: 10, unprocessed jobs: 0 9377s # Pool idle thread count: 10, unprocessed jobs: 0 9377s # Pool idle thread count: 10, unprocessed jobs: 0 9377s # Pool idle thread count: 6, unprocessed jobs: 0 9377s # Pool idle thread count: 5, unprocessed jobs: 0 9378s # Pool idle thread count: 2, unprocessed jobs: 0 9378s # Pool idle thread count: 2, unprocessed jobs: 0 9378s # Pool idle thread count: 2, unprocessed jobs: 0 9378s # Pool idle thread count: 2, unprocessed jobs: 0 9379s # Pool idle thread count: 2, unprocessed jobs: 0 9379s # Pool idle thread count: 2, unprocessed jobs: 0 9379s # Pool idle thread count: 2, unprocessed jobs: 0 9379s # Pool idle thread count: 2, unprocessed jobs: 0 9380s # Pool idle thread count: 2, unprocessed jobs: 0 9380s # Pool idle thread count: 2, unprocessed jobs: 0 9380s # Pool idle thread count: 2, unprocessed jobs: 0 9380s # Pool idle thread count: 2, unprocessed jobs: 0 9380s Executing: glib/thread-pool-slow.test 9381s # Pool idle thread count: 2, unprocessed jobs: 0 9381s # Pool idle thread count: 2, unprocessed jobs: 0 9381s # Pool idle thread count: 2, unprocessed jobs: 0 9381s # Pool idle thread count: 2, unprocessed jobs: 0 9382s # Pool idle thread count: 2, unprocessed jobs: 0 9382s # Pool idle thread count: 2, unprocessed jobs: 0 9382s # Pool idle thread count: 2, unprocessed jobs: 0 9382s # Pool idle thread count: 2, unprocessed jobs: 0 9383s # Pool idle thread count: 2, unprocessed jobs: 0 9383s # Pool idle thread count: 2, unprocessed jobs: 0 9383s # Pool idle thread count: 2, unprocessed jobs: 0 9383s # Pool idle thread count: 2, unprocessed jobs: 0 9384s # Pool idle thread count: 2, unprocessed jobs: 0 9384s # Pool idle thread count: 2, unprocessed jobs: 0 9384s # Pool idle thread count: 2, unprocessed jobs: 0 9384s # Pool idle thread count: 2, unprocessed jobs: 0 9385s # Pool idle thread count: 2, unprocessed jobs: 0 9385s # Pool idle thread count: 2, unprocessed jobs: 0 9385s # Pool idle thread count: 2, unprocessed jobs: 0 9385s # Pool idle thread count: 2, unprocessed jobs: 0 9385s Executing: glib/thread-pool-slow.test 9386s # Pool idle thread count: 2, unprocessed jobs: 0 9386s # Pool idle thread count: 2, unprocessed jobs: 0 9386s ok 7 /threadpool/idle-time 9386s # slow test /threadpool/idle-time executed in 19.59 secs 9386s # End of threadpool tests 9386s PASS: glib/thread-pool-slow.test 9386s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.9s; system=0.8s; maxrss=3232 9388s autopkgtest [18:26:52]: test thread-pool-slow: -----------------------] 9393s autopkgtest [18:26:57]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 9393s thread-pool-slow PASS 9396s autopkgtest [18:27:00]: test threadtests: preparing testbed 9403s Reading package lists... 9407s Building dependency tree... 9407s Reading state information... 9410s Starting pkgProblemResolver with broken count: 0 9411s Starting 2 pkgProblemResolver with broken count: 0 9411s Done 9417s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9425s autopkgtest [18:27:29]: test threadtests: [----------------------- 9428s Running test: glib/threadtests.test 9428s TAP version 14 9428s # random seed: R02S119984a114608d595fc355764b6d6e94 9428s 1..5 9428s # Start of GObject tests 9429s ok 1 /GObject/threaded-object-init 9429s # slow test /GObject/threaded-object-init executed in 0.75 secs 9433s Executing: glib/threadtests.test 9437s ok 2 /GObject/threaded-weak-ref 9437s # slow test /GObject/threaded-weak-ref executed in 7.95 secs 9437s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 9437s # /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 9438s Executing: glib/threadtests.test 9439s ok 3 /GObject/threaded-toggle-notify 9439s # slow test /GObject/threaded-toggle-notify executed in 2.05 secs 9439s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 9439s # Start of threaded-weak-ref tests 9439s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 9439s # /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. 9439s ok 5 /GObject/threaded-weak-ref/on-finalization 9439s # End of threaded-weak-ref tests 9439s # End of GObject tests 9439s PASS: glib/threadtests.test 9439s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=5.1s; system=8.0s; maxrss=2688 9441s autopkgtest [18:27:45]: test threadtests: -----------------------] 9444s threadtests PASS 9444s autopkgtest [18:27:48]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 9448s autopkgtest [18:27:52]: test timeout: preparing testbed 9455s Reading package lists... 9458s Building dependency tree... 9458s Reading state information... 9462s Starting pkgProblemResolver with broken count: 0 9462s Starting 2 pkgProblemResolver with broken count: 0 9463s Done 9468s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9477s autopkgtest [18:28:21]: test timeout: [----------------------- 9480s Running test: glib/timeout.test 9480s TAP version 14 9480s # random seed: R02S1c622ab1f20e339d79ce17c0db697303 9480s 1..5 9480s # Start of timeout tests 9480s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 9483s ok 1 /timeout/seconds 9483s # slow test /timeout/seconds executed in 2.11 secs 9485s ok 2 /timeout/seconds-once 9485s # slow test /timeout/seconds-once executed in 2.11 secs 9485s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 9485s Executing: glib/timeout.test 9487s ok 3 /timeout/weeks-overflow 9487s # slow test /timeout/weeks-overflow executed in 2.11 secs 9487s ok 4 /timeout/far-future-ready-time 9490s Executing: glib/timeout.test 9495s Executing: glib/timeout.test 9497s ok 5 /timeout/rounding 9497s # slow test /timeout/rounding executed in 10.59 secs 9497s # End of timeout tests 9497s PASS: glib/timeout.test 9498s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.1s; maxrss=2220 9499s autopkgtest [18:28:43]: test timeout: -----------------------] 9503s timeout PASS 9503s autopkgtest [18:28:47]: test timeout: - - - - - - - - - - results - - - - - - - - - - 9507s autopkgtest [18:28:51]: test timer: preparing testbed 9513s Reading package lists... 9517s Building dependency tree... 9517s Reading state information... 9520s Starting pkgProblemResolver with broken count: 0 9521s Starting 2 pkgProblemResolver with broken count: 0 9521s Done 9528s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9537s autopkgtest [18:29:21]: test timer: [----------------------- 9540s Running test: glib/timer.test 9540s TAP version 14 9540s # random seed: R02Sd495c7864aa72a842a8c7b34360ab03b 9540s 1..10 9540s # Start of timer tests 9540s ok 1 /timer/basic 9540s ok 2 /timer/stop 9540s ok 3 /timer/continue 9540s ok 4 /timer/reset 9540s ok 5 /timer/is_active 9540s # End of timer tests 9540s # Start of timeval tests 9540s ok 6 /timeval/add 9540s ok 7 /timeval/from-iso8601 9540s ok 8 /timeval/to-iso8601 9540s # Start of to-iso8601 tests 9540s ok 9 /timeval/to-iso8601/overflow 9540s # End of to-iso8601 tests 9540s # End of timeval tests 9540s # Start of usleep tests 9540s ok 10 /usleep/with-zero-wait 9540s # End of usleep tests 9540s PASS: glib/timer.test 9540s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=2372 9542s autopkgtest [18:29:26]: test timer: -----------------------] 9546s timer PASS 9546s autopkgtest [18:29:30]: test timer: - - - - - - - - - - results - - - - - - - - - - 9550s autopkgtest [18:29:34]: test 1065022-futureproofing: preparing testbed 9902s autopkgtest [18:35:26]: testbed dpkg architecture: riscv64 9904s autopkgtest [18:35:28]: testbed apt version: 3.0.0 9907s autopkgtest [18:35:31]: @@@@@@@@@@@@@@@@@@@@ test bed setup 9909s autopkgtest [18:35:33]: testbed release detected to be: questing 9915s autopkgtest [18:35:39]: updating testbed package index (apt update) 9918s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 9919s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 9919s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 9919s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 9920s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2005 kB] 9922s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [170 kB] 9922s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [43.1 kB] 9922s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [182 kB] 9922s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [812 kB] 9923s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8048 B] 9928s Fetched 3332 kB in 8s (396 kB/s) 9948s Reading package lists... 9954s autopkgtest [18:36:18]: upgrading testbed (apt dist-upgrade and autopurge) 9956s Reading package lists... 9958s Building dependency tree... 9958s Reading state information... 9961s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 9961s Starting 2 pkgProblemResolver with broken count: 0 9961s Done 9964s Entering ResolveByKeep 9965s 9966s Calculating upgrade... 9968s The following packages will be upgraded: 9968s fwupd htop libftdi1-2 libfwupd3 libnpth0t64 libperl5.40 libsensors-config 9968s libsensors5 liburcu8t64 nano perl perl-base perl-modules-5.40 tzdata usb.ids 9968s 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 9968s Need to get 16.4 MB of archives. 9968s After this operation, 48.1 kB of additional disk space will be used. 9968s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libperl5.40 riscv64 5.40.1-3 [4483 kB] 9969s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl riscv64 5.40.1-3 [262 kB] 9969s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-base riscv64 5.40.1-3 [1845 kB] 9970s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 perl-modules-5.40 all 5.40.1-3 [3217 kB] 9970s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 9970s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 tzdata all 2025b-3ubuntu1 [198 kB] 9970s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors-config all 1:3.6.2-2 [6756 B] 9970s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libsensors5 riscv64 1:3.6.2-2 [30.4 kB] 9970s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 liburcu8t64 riscv64 0.15.2-2 [67.0 kB] 9970s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 9970s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 9970s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 fwupd riscv64 2.0.8-3 [5406 kB] 9971s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libfwupd3 riscv64 2.0.8-3 [140 kB] 9971s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 9971s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libftdi1-2 riscv64 1.5-10 [31.3 kB] 9978s Preconfiguring packages ... 9980s Fetched 16.4 MB in 4s (4548 kB/s) 9982s (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 ... 114049 files and directories currently installed.) 9983s Preparing to unpack .../libperl5.40_5.40.1-3_riscv64.deb ... 9983s Unpacking libperl5.40:riscv64 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 9990s Preparing to unpack .../perl_5.40.1-3_riscv64.deb ... 9990s Unpacking perl (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 9991s Preparing to unpack .../perl-base_5.40.1-3_riscv64.deb ... 9991s Unpacking perl-base (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 9995s Setting up perl-base (5.40.1-3) ... 9997s (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 ... 114049 files and directories currently installed.) 9997s Preparing to unpack .../perl-modules-5.40_5.40.1-3_all.deb ... 9998s Unpacking perl-modules-5.40 (5.40.1-3) over (5.40.1-2ubuntu0.1) ... 10006s Preparing to unpack .../libnpth0t64_1.8-3_riscv64.deb ... 10006s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 10007s Setting up libnpth0t64:riscv64 (1.8-3) ... 10009s (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 ... 114049 files and directories currently installed.) 10009s Preparing to unpack .../0-tzdata_2025b-3ubuntu1_all.deb ... 10009s Unpacking tzdata (2025b-3ubuntu1) over (2025b-1ubuntu1) ... 10011s Preparing to unpack .../1-libsensors-config_1%3a3.6.2-2_all.deb ... 10011s Unpacking libsensors-config (1:3.6.2-2) over (1:3.6.0-10) ... 10012s Preparing to unpack .../2-libsensors5_1%3a3.6.2-2_riscv64.deb ... 10012s Unpacking libsensors5:riscv64 (1:3.6.2-2) over (1:3.6.0-10) ... 10013s Preparing to unpack .../3-liburcu8t64_0.15.2-2_riscv64.deb ... 10013s Unpacking liburcu8t64:riscv64 (0.15.2-2) over (0.15.1-1) ... 10014s Preparing to unpack .../4-nano_8.4-1_riscv64.deb ... 10014s Unpacking nano (8.4-1) over (8.3-1) ... 10015s Preparing to unpack .../5-usb.ids_2025.04.01-1_all.deb ... 10015s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 10016s Preparing to unpack .../6-fwupd_2.0.8-3_riscv64.deb ... 10027s Unpacking fwupd (2.0.8-3) over (2.0.7-1) ... 10034s Preparing to unpack .../7-libfwupd3_2.0.8-3_riscv64.deb ... 10034s Unpacking libfwupd3:riscv64 (2.0.8-3) over (2.0.7-1) ... 10035s Preparing to unpack .../8-htop_3.4.1-4_riscv64.deb ... 10035s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 10036s Preparing to unpack .../9-libftdi1-2_1.5-10_riscv64.deb ... 10036s Unpacking libftdi1-2:riscv64 (1.5-10) over (1.5-8build1) ... 10037s Setting up liburcu8t64:riscv64 (0.15.2-2) ... 10037s Setting up htop (3.4.1-4) ... 10037s Setting up libsensors-config (1:3.6.2-2) ... 10037s Installing new version of config file /etc/sensors3.conf ... 10037s Setting up libfwupd3:riscv64 (2.0.8-3) ... 10037s Setting up tzdata (2025b-3ubuntu1) ... 10041s 10041s Current default time zone: 'Etc/UTC' 10041s Local time is now: Fri May 2 18:37:45 UTC 2025. 10041s Universal Time is now: Fri May 2 18:37:45 UTC 2025. 10041s Run 'dpkg-reconfigure tzdata' if you wish to change it. 10041s 10042s Setting up libftdi1-2:riscv64 (1.5-10) ... 10042s Setting up usb.ids (2025.04.01-1) ... 10042s Setting up libsensors5:riscv64 (1:3.6.2-2) ... 10042s Setting up nano (8.4-1) ... 10042s Installing new version of config file /etc/nanorc ... 10042s Setting up perl-modules-5.40 (5.40.1-3) ... 10042s Setting up fwupd (2.0.8-3) ... 10059s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 10061s fwupd.service is a disabled or a static unit not running, not starting it. 10062s Setting up libperl5.40:riscv64 (5.40.1-3) ... 10062s Setting up perl (5.40.1-3) ... 10063s Processing triggers for install-info (7.1.1-1) ... 10069s Processing triggers for libc-bin (2.41-6ubuntu1) ... 10070s Processing triggers for man-db (2.13.0-1) ... 10078s Processing triggers for dbus (1.16.2-2ubuntu1) ... 10086s Reading package lists... 10088s Building dependency tree... 10089s Reading state information... 10091s Starting pkgProblemResolver with broken count: 0 10092s Starting 2 pkgProblemResolver with broken count: 0 10092s Done 10095s Solving dependencies... 10096s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 10099s autopkgtest [18:38:43]: rebooting testbed after setup commands that affected boot 10108s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 10141s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 10174s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 10207s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 10240s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 10293s Reading package lists... 10296s Building dependency tree... 10296s Reading state information... 10297s Starting pkgProblemResolver with broken count: 0 10297s Starting 2 pkgProblemResolver with broken count: 0 10297s Done 10300s The following NEW packages will be installed: 10300s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 10300s libdconf1 10301s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 10301s Need to get 156 kB of archives. 10301s After this operation, 654 kB of additional disk space will be used. 10301s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 libdconf1 riscv64 0.40.0-5 [44.3 kB] 10301s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 dconf-service riscv64 0.40.0-5 [33.6 kB] 10301s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 dconf-gsettings-backend riscv64 0.40.0-5 [29.0 kB] 10301s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 dpkg-repack all 1.54 [11.2 kB] 10301s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 gsettings-desktop-schemas all 48.0-1ubuntu1 [37.6 kB] 10308s Fetched 156 kB in 1s (147 kB/s) 10309s Selecting previously unselected package libdconf1:riscv64. 10310s (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 ... 114049 files and directories currently installed.) 10310s Preparing to unpack .../libdconf1_0.40.0-5_riscv64.deb ... 10310s Unpacking libdconf1:riscv64 (0.40.0-5) ... 10311s Selecting previously unselected package dconf-service. 10311s Preparing to unpack .../dconf-service_0.40.0-5_riscv64.deb ... 10311s Unpacking dconf-service (0.40.0-5) ... 10312s Selecting previously unselected package dconf-gsettings-backend:riscv64. 10312s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5_riscv64.deb ... 10312s Unpacking dconf-gsettings-backend:riscv64 (0.40.0-5) ... 10313s Selecting previously unselected package dpkg-repack. 10313s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 10313s Unpacking dpkg-repack (1.54) ... 10314s Selecting previously unselected package gsettings-desktop-schemas. 10314s Preparing to unpack .../gsettings-desktop-schemas_48.0-1ubuntu1_all.deb ... 10314s Unpacking gsettings-desktop-schemas (48.0-1ubuntu1) ... 10315s Setting up dpkg-repack (1.54) ... 10315s Setting up libdconf1:riscv64 (0.40.0-5) ... 10315s Setting up dconf-service (0.40.0-5) ... 10315s Setting up dconf-gsettings-backend:riscv64 (0.40.0-5) ... 10315s Setting up gsettings-desktop-schemas (48.0-1ubuntu1) ... 10315s Processing triggers for man-db (2.13.0-1) ... 10319s Processing triggers for libglib2.0-0t64:riscv64 (2.84.1-1) ... 10320s Processing triggers for libc-bin (2.41-6ubuntu1) ... 10357s autopkgtest [18:43:01]: test 1065022-futureproofing: [----------------------- 10359s + export DEBIAN_FRONTEND=noninteractive 10359s + n=0 10359s + failed=0 10359s + binary_package=libglib2.0-0t64 10359s + future_binary_package=libglib2.0-0xyz 10359s + pwd 10359s + srcdir=/tmp/autopkgtest.AUrJM5/build.Y5B/src 10359s + mktemp -d 10359s + tmpdir=/tmp/tmp.mOCDKeKaBu 10359s + cd /tmp/tmp.mOCDKeKaBu 10359s + [ -e /tmp/autopkgtest.AUrJM5/build.Y5B/src/debian/tests/manual/local-1065022.sources ] 10359s + dpkg-query -W dpkg-repack 10359s dpkg-repack 1.54 10359s + dpkg-repack --generate libglib2.0-0t64 10364s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 10364s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.rK_uaE for libglib2.0-0t64 10364s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.rK_uaE ." 10364s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.rK_uaE/DEBIAN/control 10365s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.rK_uaE/DEBIAN/control 10365s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.rK_uaE/DEBIAN/control 10365s + 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.rK_uaE/DEBIAN/control 10365s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.rK_uaE libglib2.0-0xyz.deb 10365s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 10390s + apt-get -y install ./libglib2.0-0xyz.deb 10394s Reading package lists... 10396s Building dependency tree... 10396s Reading state information... 10399s Solving dependencies... 10400s The following packages were automatically installed and are no longer required: 10400s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 10400s libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 10400s libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 10400s libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-certifi 10400s python3-chardet python3-configobj python3-debconf python3-markdown-it 10400s python3-mdurl python3-openssl python3-passlib python3-problem-report 10400s python3-pygments python3-requests python3-rich python3-systemd 10400s python3-urllib3 10400s Use 'sudo apt autoremove' to remove them. 10400s The following additional packages will be installed: 10400s xdg-user-dirs 10400s Suggested packages: 10400s low-memory-monitor 10400s Recommended packages: 10400s shared-mime-info 10401s The following packages will be REMOVED: 10401s apport apport-core-dump-handler bolt cloud-init cloud-init-base 10401s dconf-gsettings-backend dconf-service fwupd gir1.2-girepository-2.0 10401s gir1.2-glib-2.0 gsettings-desktop-schemas libblockdev-crypto3 10401s libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 10401s libblockdev-part3 libblockdev-swap3 libblockdev-utils3 libblockdev3 10401s libdconf1 libfwupd3 libgirepository-1.0-1 libglib2.0-0t64 libgudev-1.0-0 10401s libjcat1 libjson-glib-1.0-0 libmbim-glib4 libmbim-proxy libmm-glib0 10401s libnetplan1 libpolkit-agent-1-0 libpolkit-gobject-1-0 libqmi-glib5 10401s libqmi-proxy libqrtr-glib0 libudisks2-0 libvolume-key1 libxmlb2 10401s netplan-generator netplan.io networkd-dispatcher python3-dbus python3-gi 10401s python3-netplan shared-mime-info ubuntu-minimal udisks2 xfsprogs 10401s The following NEW packages will be installed: 10401s libglib2.0-0xyz xdg-user-dirs 10401s 0 upgraded, 2 newly installed, 49 to remove and 0 not upgraded. 10401s Need to get 18.7 kB/1699 kB of archives. 10401s After this operation, 35.0 MB disk space will be freed. 10401s Get:1 /tmp/tmp.mOCDKeKaBu/libglib2.0-0xyz.deb libglib2.0-0xyz riscv64 2.84.1-1 [1680 kB] 10401s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 xdg-user-dirs riscv64 0.18-2 [18.7 kB] 10409s Fetched 18.7 kB in 1s (25.6 kB/s) 10410s (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 ... 114118 files and directories currently installed.) 10410s Removing bolt (0.9.8-1) ... 10417s Removing cloud-init (25.1.1-0ubuntu2) ... 10417s Removing cloud-init-base (25.1.1-0ubuntu2) ... 10432s Removing gsettings-desktop-schemas (48.0-1ubuntu1) ... 10432s Removing dconf-gsettings-backend:riscv64 (0.40.0-5) ... 10433s Removing dconf-service (0.40.0-5) ... 10433s Removing fwupd (2.0.8-3) ... 10448s Removing networkd-dispatcher (2.2.4-1.1) ... 10455s Removing udisks2 (2.10.1-11ubuntu2) ... 10461s Removing libblockdev-crypto3:riscv64 (3.3.0-2) ... 10461s Removing libblockdev-fs3:riscv64 (3.3.0-2) ... 10461s Removing libblockdev-loop3:riscv64 (3.3.0-2) ... 10462s Removing libblockdev-mdraid3:riscv64 (3.3.0-2) ... 10462s Removing libblockdev-nvme3:riscv64 (3.3.0-2) ... 10462s Removing libblockdev-part3:riscv64 (3.3.0-2) ... 10462s Removing libblockdev-swap3:riscv64 (3.3.0-2) ... 10462s Removing libblockdev3:riscv64 (3.3.0-2) ... 10463s Removing libblockdev-utils3:riscv64 (3.3.0-2) ... 10463s Removing libdconf1:riscv64 (0.40.0-5) ... 10463s Removing libfwupd3:riscv64 (2.0.8-3) ... 10463s Removing shared-mime-info (2.4-5build1) ... 10464s Removing xfsprogs (6.13.0-2ubuntu1) ... 10469s Removing python3-dbus (1.3.2-5build5) ... 10472s Removing libgudev-1.0-0:riscv64 (1:238-6) ... 10473s Removing libjcat1:riscv64 (0.2.0-2build3) ... 10473s Removing libjson-glib-1.0-0:riscv64 (1.10.6+ds-2) ... 10473s Removing libqmi-proxy (1.35.6-1) ... 10473s Removing libqmi-glib5:riscv64 (1.35.6-1) ... 10473s Removing libmbim-proxy (1.31.2-0ubuntu4) ... 10474s Removing libmbim-glib4:riscv64 (1.31.2-0ubuntu4) ... 10474s Removing libmm-glib0:riscv64 (1.23.4-0ubuntu3) ... 10474s Removing ubuntu-minimal (1.549) ... 10474s Removing netplan.io (1.1.2-2ubuntu1) ... 10475s dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan_cli/cli/commands' not empty so not removed 10475s Removing python3-netplan (1.1.2-2ubuntu1) ... 10477s Removing netplan-generator (1.1.2-2ubuntu1) ... 10477s dpkg: warning: while removing netplan-generator, directory '/etc/netplan' not empty so not removed 10477s Removing libnetplan1:riscv64 (1.1.2-2ubuntu1) ... 10478s Removing libpolkit-agent-1-0:riscv64 (126-2) ... 10478s Removing libpolkit-gobject-1-0:riscv64 (126-2) ... 10478s Removing libqrtr-glib0:riscv64 (1.2.2-1ubuntu4) ... 10478s Removing libudisks2-0:riscv64 (2.10.1-11ubuntu2) ... 10478s Removing libvolume-key1:riscv64 (0.3.12-9) ... 10478s Removing libxmlb2:riscv64 (0.3.22-1) ... 10479s Removing apport (2.32.0-0ubuntu5) ... 10486s Removing apport-core-dump-handler (2.32.0-0ubuntu5) ... 10495s Removing python3-gi (3.50.0-4build1) ... 10498s Removing gir1.2-girepository-2.0:riscv64 (1.84.0-1) ... 10498s Removing gir1.2-glib-2.0:riscv64 (2.84.1-1) ... 10498s Removing libgirepository-1.0-1:riscv64 (1.84.0-1) ... 10498s Removing libglib2.0-0t64:riscv64 (2.84.1-1) ... 10499s Selecting previously unselected package xdg-user-dirs. 10501s (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 ... 112974 files and directories currently installed.) 10501s Preparing to unpack .../xdg-user-dirs_0.18-2_riscv64.deb ... 10501s Unpacking xdg-user-dirs (0.18-2) ... 10502s Selecting previously unselected package libglib2.0-0xyz:riscv64. 10502s Preparing to unpack .../libglib2.0-0xyz.deb ... 10502s Unpacking libglib2.0-0xyz:riscv64 (2.84.1-1) ... 10505s Setting up xdg-user-dirs (0.18-2) ... 10505s Setting up libglib2.0-0xyz:riscv64 (2.84.1-1) ... 10505s No schema files found: removed existing output file. 10506s Processing triggers for dbus (1.16.2-2ubuntu1) ... 10506s Processing triggers for initramfs-tools (0.147ubuntu1) ... 10508s update-initramfs: Generating /boot/initrd.img-6.14.0-13-generic 10508s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 10946s Processing triggers for libc-bin (2.41-6ubuntu1) ... 10946s Processing triggers for man-db (2.13.0-1) ... 10966s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 10966s + n=1 10966s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 10966s + echo not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 10966s not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 10966s not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 10966s + failed=1 10966s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 10966s + n=2 10966s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 10966s + echo not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 10966s + failed=1 10966s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 10966s + n=3 10966s + not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 10966s test -e /usr/lib/*/gio/modules/libdconfsettings.so 10966s + echo not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 10966s + failed=1not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 10966s 10966s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 10966s + n=4 10966s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 10966s + echo not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 10966s not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 10966s not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 10966s + failed=1 10966s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 10966s + n=5 10966s + test -e /usr/lib/*/gio/modules/giomodule.cache 10966s + echo not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 10966s + failed=1 10966s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 10966s + n=6 10966s + test -s /usr/lib/*/gio/modules/giomodule.cache 10966s + echo not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 10966s + failed=1 10966s + apt-get -y purge libglib2.0-0t64 10968s Reading package lists... 10973s Building dependency tree... 10973s Reading state information... 10980s The following packages were automatically installed and are no longer required: 10980s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 10980s libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 10980s libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 10980s libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-certifi 10980s python3-chardet python3-configobj python3-debconf python3-markdown-it 10980s python3-mdurl python3-openssl python3-passlib python3-problem-report 10980s python3-pygments python3-requests python3-rich python3-systemd 10980s python3-urllib3 10980s Use 'sudo apt autoremove' to remove them. 10981s The following packages will be REMOVED: 10981s libglib2.0-0t64* 10990s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 10990s After this operation, 0 B of additional disk space will be used. 10993s (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 ... 113009 files and directories currently installed.) 10993s Purging configuration files for libglib2.0-0t64:riscv64 (2.84.1-1) ... 11005s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 11005s + n=7 11005s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 11005s + echo not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 11005s not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 11005s + failed=1 11005s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 11005s + n=8 11005s not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 11005s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 11005s + echo not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 11005s + failed=1 11005s not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 11005s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 11005s + n=9 11005s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 11005s + echo not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 11005s + failed=1 11005s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 11005s not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 11005s not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 11005s not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 11005s + n=10 11005s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 11005s + echo not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 11005s + failed=1 11005s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 11005s + n=11 11005s + test -e /usr/lib/*/gio/modules/giomodule.cache 11005s + echo not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 11005s + failed=1 11005s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 11005s + n=12 11005s + test -s /usr/lib/*/gio/modules/giomodule.cache 11005s + echo not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 11005s + failed=1 11005s + apt-get -y purge libglib2.0-0xyz 11007s Reading package lists... 11011s Building dependency tree... 11011s Reading state information... 11017s The following packages were automatically installed and are no longer required: 11017s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 11017s libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 libglib2.0-data 11017s libgpgme11t64 libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 11017s libnss3 libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-certifi 11017s python3-chardet python3-configobj python3-debconf python3-markdown-it 11017s python3-mdurl python3-openssl python3-passlib python3-problem-report 11017s python3-pygments python3-requests python3-rich python3-systemd 11017s python3-urllib3 xdg-user-dirs 11017s Use 'sudo apt autoremove' to remove them. 11017s The following packages will be REMOVED: 11017s libglib2.0-0xyz* 11028s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 11028s After this operation, 4319 kB disk space will be freed. 11030s (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 ... 113009 files and directories currently installed.) 11030s Removing libglib2.0-0xyz:riscv64 (2.84.1-1) ... 11031s Processing triggers for libc-bin (2.41-6ubuntu1) ... 11035s (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 ... 112984 files and directories currently installed.) 11035s Purging configuration files for libglib2.0-0xyz:riscv64 (2.84.1-1) ... 11046s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 11046s + n=13 11046s ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 11046s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 11046s + echo ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 11046s + ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 11046s assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 11046s + n=14 11046s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 11046s + echo ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 11046s + assert_not test -e /usr/lib/*/gio/modules/libdconfsettings.so 11046s ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 11046s + n=15 11046s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 11046s + echo ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 11046s + assert_not test -e /usr/lib/*/gio/modules/giomodule.cache 11046s + n=16 11046s + test -e /usr/lib/*/gio/modules/giomodule.cache 11046s ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 11046s 1..16 11046s + echo ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 11046s + echo 1..16 11046s + exit 1 11048s autopkgtest [18:54:32]: test 1065022-futureproofing: -----------------------] 11053s autopkgtest [18:54:37]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 11053s 1065022-futureproofing FLAKY non-zero exit status 1 11057s autopkgtest [18:54:41]: @@@@@@@@@@@@@@@@@@@@ summary 11057s build PASS (superficial) 11057s build-static PASS (superficial) 11057s girepository-tools PASS (superficial) 11057s libgio-2.0-dev-bin PASS (superficial) 11057s libglib2.0-dev PASS (superficial) 11057s installed-tests FAIL non-zero exit status 2 11057s closure-refcount PASS 11057s debugcontroller PASS 11057s gdbus-server-auth PASS 11057s gdbus-threading PASS 11057s gmenumodel PASS 11057s mainloop PASS 11057s memory-monitor-dbus PASS 11057s socket PASS 11057s testfilemonitor PASS 11057s thread-pool-slow PASS 11057s threadtests PASS 11057s timeout PASS 11057s timer PASS 11057s 1065022-futureproofing FLAKY non-zero exit status 1 11090s nova [W] Using flock in prodstack6-riscv64 11090s Creating nova instance adt-questing-riscv64-glib2.0-20250502-155024-juju-7f2275-prod-proposed-migration-environment-15-852cb378-98ec-4252-99ce-c12ef883d384 from image adt/ubuntu-questing-riscv64-server-20250502.img (UUID e96973cf-c0c9-4143-9733-e32ebae9c1cb)... 11090s nova [W] Timed out waiting for 4377103c-a902-4427-a2d9-1cafec8124d1 to get deleted. 11090s nova [W] Using flock in prodstack6-riscv64 11090s Creating nova instance adt-questing-riscv64-glib2.0-20250502-155024-juju-7f2275-prod-proposed-migration-environment-15-852cb378-98ec-4252-99ce-c12ef883d384 from image adt/ubuntu-questing-riscv64-server-20250502.img (UUID e96973cf-c0c9-4143-9733-e32ebae9c1cb)... 11090s nova [W] Timed out waiting for ba01029a-431b-4c9d-bb9c-147099e92e9d to get deleted. 11090s nova [W] Using flock in prodstack6-riscv64 11090s Creating nova instance adt-questing-riscv64-glib2.0-20250502-155024-juju-7f2275-prod-proposed-migration-environment-15-852cb378-98ec-4252-99ce-c12ef883d384 from image adt/ubuntu-questing-riscv64-server-20250502.img (UUID e96973cf-c0c9-4143-9733-e32ebae9c1cb)... 11090s nova [W] Timed out waiting for b30a6ed5-5489-4086-a99c-eb353e5324d7 to get deleted. 11090s nova [W] Using flock in prodstack6-riscv64 11090s Creating nova instance adt-questing-riscv64-glib2.0-20250502-155024-juju-7f2275-prod-proposed-migration-environment-15-852cb378-98ec-4252-99ce-c12ef883d384 from image adt/ubuntu-questing-riscv64-server-20250502.img (UUID e96973cf-c0c9-4143-9733-e32ebae9c1cb)... 11090s nova [W] Timed out waiting for 23c8ebf1-c587-4934-899e-ebe9b7c3f146 to get deleted. 11090s nova [W] Using flock in prodstack6-riscv64 11090s Creating nova instance adt-questing-riscv64-glib2.0-20250502-155024-juju-7f2275-prod-proposed-migration-environment-15-852cb378-98ec-4252-99ce-c12ef883d384 from image adt/ubuntu-questing-riscv64-server-20250502.img (UUID e96973cf-c0c9-4143-9733-e32ebae9c1cb)... 11090s nova [W] Timed out waiting for 9a3eb1fe-ba0a-4745-a431-fc514c991dea to get deleted. 11090s nova [W] Using flock in prodstack6-riscv64 11090s Creating nova instance adt-questing-riscv64-glib2.0-20250502-155024-juju-7f2275-prod-proposed-migration-environment-15-852cb378-98ec-4252-99ce-c12ef883d384 from image adt/ubuntu-questing-riscv64-server-20250502.img (UUID e96973cf-c0c9-4143-9733-e32ebae9c1cb)... 11090s nova [W] Timed out waiting for 373fdc4f-bb36-42fd-ba7b-59830d572362 to get deleted.